Lagrangian Sandbox
Analytical mechanics in action. Pick a system and its Euler-Lagrange equations, derived from , are integrated by RK4 (the verified shared engine). The left panel animates the mechanism; the right is the phase portrait . The readouts are the conserved quantities Noether's theorem guarantees: the Hamiltonian, because the Lagrangian has no explicit time dependence, and the angular momentum whenever the potential is rotationally symmetric, which the Kepler and gravity-free spring obey but the gravity-loaded pendulum does not. Watch the energy readout sit still while a chaotic double pendulum thrashes.
system
gravity g9.81
amplitude1.40
speed1.00
systempendulum
H0
dH/H0
L (ang)-
t0
pendulum00-0WHAT TO TRY
- Vary each control and watch the rail readouts respond.
- Compare the diagnostic plot against the live scene.