|
3 years ago | |
---|---|---|
.gitignore | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
collision.py | 3 years ago | |
simulation.py | 3 years ago |
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.