Double pendulum

A double pendulum is a famous example of a chaotic system.

(15)
(112)

3 chains of 2 rods. Each copy is released 0.0001 rad further along than the last. Past one rod the motion is chaotic, and that initial difference separates exponentially. Changing any setting restarts the run. Drag on the canvas to pose the chain — the joint nearest your pointer follows it, and the rods below swing along rigidly — then let go to drop it from there.

The controls above set how many links each pendulum has and how many are released together. With a single link the system is not chaotic: the copies stay locked on top of one another indefinitely. Add a second link and the same experiment quickly descends into chaos.

You can also set the starting position by hand: drag anywhere on the canvas to swing the chain into a pose, and let go to release it from rest. Try dropping it from almost the same place twice.