Double Pendulum: Phase-Space & Poincaré Explorer (2D)
2D companion to the 3D double pendulum: instead of just watching it swing, this RK4-integrated Lagrangian double pendulum plots its own phase-space trajectory and builds a live Poincare section, with an energy-conservation readout, to show the chaos directly as geometry.
This 2D companion sets aside the usual swinging-arm view and instead plots the double pendulum's own state space. The same RK4-integrated Lagrangian equations of motion drive a small reference arm at the top, while the large panel below traces either arm's angle against its angular velocity as a continuous trajectory, or — in Poincaré mode — records a single point every time the first arm crosses vertical moving forward. A regular pendulum would retrace the same closed loop or land on the same handful of Poincaré points forever; this one fills the plane, and a live energy-drift readout confirms that the spreading pattern is the real chaotic dynamics rather than integrator error.
Canvas2D companion: an RK4-integrated Lagrangian double pendulum plotted as its own phase-space trajectory and a live Poincaré section, showing chaos directly as geometry instead of a swinging arm.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install