Back

Kepler equation Newton iteration

What you are seeing: the orbit of a planet in a Keplerian ellipse (left) and the Newton-iteration history for the Kepler equation M=EesinEM = E - e \sin E (right). At each rAF frame the mean anomaly M=2πt/TM = 2\pi t / T ticks forward; the solver iterates on EE until En+1En<1012|E_{n+1} - E_n| \lt 10^{-12} and the planet is placed at (a(cosEe),bsinE)(a(\cos E - e), b \sin E) on the ellipse.

The right panel shows successive EnE|E_n - E_\infty| on a log axis. Newton's method has quadratic local convergence: each iteration roughly squares the remaining error. For moderate eccentricity (e0.9e \lesssim 0.9) the residual drops to machine precision in 4-6 iterations; near e=0.99e = 0.99 it takes 10-15.

Figure 1. Kepler-equation Newton iteration on an a-e ellipse. Method: closed-form residual + Newton step; quadratic convergence.
e (eccentricity)0.500
speed1.00

WHAT TO TRY

  • Vary each control and watch the rail readouts respond.
  • Compare the diagnostic plot against the live scene.