Created
November 17, 2016 18:03
-
-
Save benrules2/a04a4d318625516877a0f3302331d407 to your computer and use it in GitHub Desktop.
Python N-Body Orbit Simulation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def compute_gravity_step(bodies, time_step = 1): | |
| compute_velocity(bodies, time_step = time_step) | |
| update_location(bodies, time_step = time_step) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment