r/programming • • Dec 23 '12

Simulating a solar system with Python

http://users.softlab.ntua.gr/~ttsiod/gravityRK4.html
244 Upvotes

72 comments sorted by

View all comments

Show parent comment

4

u/ttsiodras Dec 23 '12

You missed my related comment - from the code: "# Update all planets' positions and speeds (should normally double buffer the list of planet data, but turns out this is good enough :-)"

1

u/Bob_goes_up Dec 24 '12

Ah, see. I didn't notice that comment. I am sure that the code works fine, but you will get some errors whenever two planets get close to eachother.