Butterfly-effect simulation using 500 double pendulums @animations_ag
Butterfly-effect simulation using 500 double pendulums  @animations_ag
Uploaded January 2021 | Updated September 2026, 2 weeks ago
Simulation of 500 double pendulums having initial start positions ranging between 2.2995 radians and 2.3 radians spanned from the vertical line. That is, the difference in starting angle between each adjacent pair of double pendulums is one millionth of a radian. Hence, the outermost apices of all the double pendulums sweeps only 1/2000 of a radian at the very start.


Despite such a tiny difference between the 500 initial conditions, the outermost apices of the pendulums rapidly spread out homogeneously all over their energetically allowed range, as the double pendulum is a chaotic system for certain criteria of the initial conditions, meaning that it is ridiculously sensitive to initial conditions. This is sometimes referred to as the "Butterfly effect".

CPU time was ~3 minutes for calculating all positions of the pendulums for all 3200 frames on a mid-2012 MacBook Air. Plotting/saving all frames took ~1 hour in total.

Here is a good example page to start out playing with one double pendulum in Python: scipython.com/blog/the-double-pendulum/. My scripts need a thorough clean-up before sharing.


Music by @gpcbass!


Done in Python and ffmpeg.
Butterfly-effect simulation using 500 double pendulums5000 balls falling in a circle and a parabola, plus a cute bugCircle billiard with 10 000 ballsQuantum tunneling visualization, including Mathematica codeGravity inside and outside a spherical shellDouble pendulum art | 8k60fpsLight ray hitting an elliptic water dropRigid body moose dropped in a moose contourMillions of particles forming cardioid caustics in a circle billiardMoose dropped on a parabolaMandelbrot set: simple equation - complex boundaryHow cats actually land (slo-mo softbody)
Alexander Gustafsson |

Butterfly-effect simulation using 500 double pendulums

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER