← Labs
Symplectic Integrators
Pendulum
Kepler
Harmonic
Step size dt:
0.100
Trail length:
200
Reset
Euler: H drift =
—
Leapfrog: H drift =
—
RK4: H drift =
—
Step:
0
Symplectic (Leapfrog/Störmer-Verlet) integrators preserve the symplectic 2-form. Energy drift is bounded for exponentially long times. Euler grows unboundedly; RK4 is accurate but slowly dissipates. Phase portrait shows the difference.