I have added all the solutions to my html5 gravity simulation project here: http://jbochi.github.com/planets/
PS: Some of the configurations are not stable with my code. I'll try Runge-Kutta.
PS: Some of the configurations are not stable with my code. I'll try Runge-Kutta.
You might want to try Stormer-Cowell, it's sort of a gold standard in orbit simulation.
UPDATED: Hmm, now that I think of it, this would probably profit more from a variable step method. Some of the close approaches seem to be really close for a fixed-step integrator.
I'll try both if I find the time :)
Good times.
https://en.wikipedia.org/wiki/Bulirsch%E2%80%93Stoer_algorit...
I really like you simulation.