Skip to content
Ravino Juwono
Work

Double pendulum

Two pendulums released a thousandth of a radian apart, and how quickly they stop agreeing.

reference 0.001 rad off
Starting difference
Divergence, rad
0.0000
Elapsed
0.0 s

Notes

A double pendulum is the classic small system with chaotic motion. Two copies run side by side from nearly identical starting angles, with a divergence readout that shows when their paths part ways. The equations are integrated with fourth-order Runge–Kutta at a fixed step, the trails are drawn on canvas, and every control is keyboard reachable.

Built with

  • TypeScript
  • Canvas
  • Runge–Kutta 4