collision simulations in python
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Callum David OBrien ad347e955f Merge branch 'master' of csolove/collisions into master vor 2 Jahren
.gitignore Initial commit vor 2 Jahren
LICENSE implemented getting arguments and outputting results in collision.py, add brief description to README.md, add copyrights to LICENSE vor 2 Jahren
README.md Tweaked README.md vor 2 Jahren
collision.py implemented getting arguments and outputting results in collision.py, add brief description to README.md, add copyrights to LICENSE vor 2 Jahren
simulation.py implemented getting arguments and outputting results in collision.py, add brief description to README.md, add copyrights to LICENSE vor 2 Jahren

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.