Skip to content

Instantly share code, notes, and snippets.

@benrules2
Created November 17, 2016 18:03
Show Gist options
  • Select an option

  • Save benrules2/a04a4d318625516877a0f3302331d407 to your computer and use it in GitHub Desktop.

Select an option

Save benrules2/a04a4d318625516877a0f3302331d407 to your computer and use it in GitHub Desktop.
Python N-Body Orbit Simulation
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