Claude.ia

"Write HTML/CSS/JS code that animates a double pendulum using gravity-based equations. The motion should be chaotic and continuous, and the last bob should leave a fading trail showing its path."

Double Pendulum

A double pendulum consists of two pendulums attached end to end. Despite following simple physical laws, its motion is highly chaotic and unpredictable.

The colorful trail shows the path of the second bob, revealing the complex, never-repeating patterns that emerge from the system's sensitivity to initial conditions.

This is a classic example of deterministic chaos - where tiny differences in starting position lead to vastly different outcomes.

Double Pendulum

Watch the chaotic motion unfold