DGS Studio

Physics Simulations

Chaos Rainbow — 100 Pendulums

Independent double pendulums reveal deterministic chaos. Initial first angles differ by 0.1 degrees.

The scene runs 100 independent double pendulums whose starting angles differ by 0.1 degrees. They share the same laws and almost the same start, then fan apart.

That spread is the butterfly effect for this deterministic system. Nothing random is added. The only difference at t = 0 is the tiny angle gap. A smaller count makes the pair easier to track. A larger count makes the fan.

Equation

chaos_pendulum(count=100)

What the simulation is integrating

Physics examples are simulations with a fixed mathematical model. Generate Graph starts the scene and its controls. It does not fit a curve through measured data. Sliders and presets change initial conditions or parameters that the integrator already understands.

Read the conserved quantities and the trails, not only the moving shape. A chaotic system can look smooth for a short time and then diverge. A small change in the input, such as a count or a separation, is part of the example rather than a different kind of physics.

Reading the input

Try a change

Generate Graph starts the simulation that this command names. Playback controls belong to that scene. The expression does not become a static y = f(x) plot.

Edit and generate

Generate Graph opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples