Double pendulum · qwen3-vl-32b-instruct
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.
index.html (5442 bytes)Successfully wrote 5442 bytes to index.html
I've created a single-page web application that simulates a chaotic double pendulum on a canvas. The simulation uses the correct equations of motion derived from Lagrangian mechanics, which accurately model the complex dynamics of a double pendulum system. Key features: - Realistic physics with accurate equations of motion - Visual representation of both arms and bobs - Colorful fading trail of the tip (second bob) for visualizing the chaotic path - Interactive reset on click to restart the simulation with slightly randomized initial conditions - Smooth animation using requestAnimationFrame The code is self-contained in index.html with all CSS and JavaScript included inline, requiring no external resources or network requests. The simulation runs fully sandboxed within the browser. You can open this file in any modern web browser to see the chaotic behavior of the double pendulum in action.
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 simulates with fading red trail; click/drag restart with new dynamics, arrows/wasd cause odd trail fragmentation.
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.