Planar Double Pendulum

Two equal point masses joined by equal massless rigid rods, swinging under gravity with no damping or driving. Motion comes from the coupled nonlinear equations of the double pendulum, integrated with fixed-step RK4. The lower bob leaves a bounded, fading multicolour trail.

Running
time0.00 s θ1120.0° θ2-10.0° trail0