Double Pendulum
Interactive simulation — adjust parameters and watch the visualization update in real time.
Live graphs
How it works
A classic chaotic system: two point masses on massless rods. Tiny changes in initial angles produce wildly different trajectories. RK4 integration with optional light damping keeps long runs stable.
Key equations
Coupled nonlinear ODEs for θ₁(t), θ₂(t); see standard references for explicit θ¨₁, θ¨₂ (Wikipedia: double pendulum).
E = T + V with T from rod-end velocities and V = −m₁gL₁cos θ₁ − m₂g(L₁cos θ₁ + L₂cos θ₂) + const.