collision simulations in python
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Callum David OBrien ad347e955f Merge branch 'master' of csolove/collisions into master 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 Tweaked README.md 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.