collision simulations in python
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Chris Sean O'Brien af8f8b9393 Tweaked README.md il y a 2 ans
.gitignore Initial commit il y a 2 ans
LICENSE implemented getting arguments and outputting results in collision.py, add brief description to README.md, add copyrights to LICENSE il y a 2 ans
README.md Tweaked README.md il y a 2 ans
collision.py implemented getting arguments and outputting results in collision.py, add brief description to README.md, add copyrights to LICENSE il y a 2 ans
simulation.py implemented getting arguments and outputting results in collision.py, add brief description to README.md, add copyrights to LICENSE il y a 2 ans

README.md

Collisions

Collision simulations in python.

Usage:

collision [cart | pol] [cart | pol] velocity_1 velocity_2

where

  • velocity_1 is the velocity of the first particle, in the form "r theta" if the input vector type is polar, or in the form "x y" if the input vector type is cartesian

  • velocity_2 is the velocity of the second particle, in the form "r theta" if the input vector type is polar, or in the form "x y" if the input vector type is cartesian

The program outputs the velocities of the particles after the collision, in the form specified by the output vector type.