Three masses interacting via Newtonian 1/r² gravity. Symplectic leapfrog (velocity-Verlet) preserves energy beautifully. The figure-8 choreography is a famous periodic solution discovered by Moore (1993) / Chenciner-Montgomery (2000).
Click-drag in the canvas to fling a body.