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 (right). At each rAF frame the mean anomaly ticks forward; the solver iterates on until and the planet is placed at on the ellipse.
The right panel shows successive on a log axis. Newton's method has quadratic local convergence: each iteration roughly squares the remaining error. For moderate eccentricity () the residual drops to machine precision in 4-6 iterations; near it takes 10-15.
e (eccentricity)0.500
speed1.00
M (rad):0
E, iter:0, 0
00, 0WHAT TO TRY
- Vary each control and watch the rail readouts respond.
- Compare the diagnostic plot against the live scene.