Kepler orbit
Fastest ÷ slowest speed
Farthest ÷ nearest
A planet speeds up near the Sun and slows far away, so the line from Sun to planet sweeps out equal areas in equal times: Kepler's second law.
The maths
- Kepler's equation M = E − e sin E gives where the planet is at any time (M grows steadily with time; E is solved by Newton's method).
- Position from the Sun: x = a(cos E − e), y = b sin E, with b = a√(1 − e²).
- Speed at closest approach ÷ speed farthest out = (1 + e) ÷ (1 − e), the same as the ratio of the distances.
Tested: Kepler's equation is solved to 10⁻¹², and twelve equal time slices sweep equal areas to 10⁻⁶ (packages/mechanics/test/classics.test.ts). The wedges on screen are those twelve slices.
Example
With eccentricity × 100 = 60, seconds per orbit = 12: fastest ÷ slowest speed: 4.00; farthest ÷ nearest: 4.00. Open this setup, then change one thing at a time.
Related: Projectile motion · Pendulum period · Double pendulum