Why is my astronomy simulation inaccurate?
I've made a program that simulates movement of bodies in the solar system, however, I'm getting various inaccuracies in my results. I believe that it probably has something to do with my integration method. tl;dr there's a slight difference between the position and velocity of Earth between my simulation and NASA's data, if you could please look at my code below and tell me whether my math is wrong. The test I've ran is a 10 day long (864000 seconds) simulation, that starts at Thu Mar 13 18:30:59 2006 and ends at Thu Mar 23 18:30:59 2006 . After the simulation the program reported the