Double Pendulum Simulator (2D)
2D companion to the 3D double pendulum: a single Lagrangian double pendulum integrated with RK4, with adjustable arm lengths, bob masses and release angles, a fading trail, and a live kinetic/potential energy split.
This 2D companion runs the exact same Lagrangian double-pendulum equations as the 3D scene — RK4-integrated, no small-angle shortcuts — but draws them as a plain flat side view built for reading the physics rather than orbiting a camera around it. Adjust both release angles, both arm lengths and both bob masses, watch the lower bob's fading trail trace out its path, and follow the live kinetic/potential energy split to see mechanical energy sloshing between the two forms as the pendulum swings, while the total stays flat — a direct check that the numerical integration is behaving.
A 2D canvas companion to the 3D double pendulum: a single RK4-integrated Lagrangian double pendulum with adjustable arm lengths, bob masses and release angles, a fading trail, and a live kinetic/potential energy split.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install