collision simulations in python
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
Callum David OBrien ea60cb52e4 implemented getting arguments and outputting results in collision.py, add brief description to README.md, add copyrights to LICENSE 2年前
.gitignore Initial commit 2年前
LICENSE implemented getting arguments and outputting results in collision.py, add brief description to README.md, add copyrights to LICENSE 2年前
README.md implemented getting arguments and outputting results in collision.py, add brief description to README.md, add copyrights to LICENSE 2年前
collision.py implemented getting arguments and outputting results in collision.py, add brief description to README.md, add copyrights to LICENSE 2年前
simulation.py implemented getting arguments and outputting results in collision.py, add brief description to README.md, add copyrights to LICENSE 2年前

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.