I can calculate the motion of heavenly bodies, but not the madness of people.Isaac Newton, after a market collapse in 17th century England
It should be apparent that our Solar system is not a two-body system since the planets themselves exert gravitational forces on one another. Although the planetary forces are small in magnitude compared to the gravitational force of the Sun, they can still produce measureable effects. For example, the existence of the planets Neptune and Pluto was conjectured on the basis of a discrepancy between the experimentally measured orbit of Uranus and its predicted orbit that was calculated from known gravitational forces.
For simplicity, the model considered here is planar and not three-dimensional, and it is also assumed the force interaction is not strictly central since this is clearly not the case. Additional details are in the Notes.
This program simulates a miniature Solar system of two planets about a fixed Sun-like star.