Double Pendulum Ensemble
30 pendulums start nearly identically โ€” chaos separates them exponentially fast, revealing the butterfly effect
Initial spread ฮ”ฮธโ‚ 0.010 rad
Ensemble size N 30
Damping ฮณ 0.00
Speed 3ร—
0.0
Time (s)
โ€”
Max separation (rad)
โ€”
Lyapunov ฮป (bit/s)
30
Still coherent
Coherent
Regime
How it works: Each pendulum solves the same Lagrangian equations (ฮธโ‚, ฮธโ‚‚ for upper and lower bobs) via RK4, but member k starts with ฮธโ‚ offset by kยทฮ”ฮธ. Left canvas: all pendulums rendered simultaneously โ€” colours range from violet (reference) to yellow (most different). As long as pendulums stay together, they look like one. When chaos kicks in they fan out. Right canvas: log-scale plot of |ฮธโ‚ โˆ’ ฮธโ‚ref| vs time; an exponential divergence (straight line on log plot) means chaos with positive Lyapunov exponent ฮปโ‚. The displayed ฮป is estimated by linear regression on the log-separation in the divergence window.

Left panel: Ensemble fan coloured violetโ†’yellow.   Right panel: logโ‚โ‚€ separation vs time โ€” exponential growth โ†’ chaos.