Double pendulum · gpt-4.1-mini
Simulate a chaotic double pendulum on a canvas using the correct equations of motion, drawing the arms and a colorful fading trail of the tip.
transcript · 4 messages
Simulate a chaotic double pendulum on a canvas using the correct equations of motion, drawing the arms and a colorful fading trail of the tip.
I'll create a single-page web app with a canvas that simulates a chaotic double pendulum using the exact equations of motion. The pendulum arms will be drawn, and the tip will leave a colorful fading trail. The code will be self-contained within index.html. Starting now.
index.html (3946 bytes)Successfully wrote 3946 bytes to index.html
I created the file index.html with a self-contained chaotic double pendulum simulation. It uses the correct equations of motion with Runge-Kutta integration, draws the pendulum arms and bobs, and leaves a colorful fading trail from the tip. You can open index.html in a browser to see the simulation. If you want me to improve or add any features, just ask!
TAKE IT TO CODE
A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.
RUN
EVALUATION
Double pendulum simulation with correct-looking arm motion and colorful fading trail; keyboard/mouse inputs don't alter physics but animation runs continuously.
Vision grade · anthropic/claude-sonnet-5
MEASUREMENTS
Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.