Simulators / N bodies: integrators and chaos
SecondaryHigher
RK4 versus symplectic leapfrog on an eccentric two-body orbit, the figure-eight and the Pythagorean problem; energy error on a log scale and divergence of neighboring trajectories (Lyapunov).
Library: src/lib/math/nbody.tssrc/lib/math/integrators.ts
src/lib/math/nbody.ts
src/lib/math/integrators.ts