oneshotlm
Compare all models on this prompt →

Double pendulum · qwen3-coder-30b-a3b-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.

⛨ sandboxed Open in new tab ↗
transcript · 4 messages
user

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.

assistant

# Chaotic Double Pendulum Simulation I'll create a self-contained HTML file that simulates a chaotic double pendulum with colorful fading trails and accurate physics equations.

write index.html (11260 bytes)
toolResult

Successfully wrote 11260 bytes to index.html

assistant

I've created a complete, self-contained HTML file that simulates a chaotic double pendulum using accurate physics equations. Here's what the implementation includes: 1. **Realistic Physics Simulation**: - Uses Lagrangian mechanics to calculate the equations of motion - Implements 4th-order Runge-Kutta integration for accurate numerical solving - Accounts for both pendulum masses and lengths 2. **Visual Features**: - Colorful fading trail that shows the path of the second pendulum bob - Smooth animation with proper physics-based motion - Color-coded pendulum arms and bobs (cyan for first, magenta for second) - Center pivot point visualization 3. **User Controls**: - Reset button to restart with slightly different initial conditions - Toggle trail visibility - Adjustable trail length slider 4. **Aesthetic Design**: - Dark background with glowing text and elements - Semi-transparent fading effect on the trail - Gradient color scheme for the trail - Responsive layout that works on different screen sizes The simulation demonstrates the chaotic nature of double pendulums where tiny changes in initial conditions lead to dramatically different outcomes. The physics equations are implemented according to the Lagrangian approach for maximum accuracy. The file is completely self-contained with no external dependencies - all HTML, CSS, and JavaScript are included in a single file.

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

modelqwen3-coder-30b-a3b-instruct
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Double pendulum simulates with proper motion and fading trail; keyboard inputs oddly reset it to a straight resting position.

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.

idle motion1.1%
on click0.9%
on drag0.9%
on wheel0.7%
on enter + space0.5%
on arrow keys0.4%
on w/a/s/d0.5%
frame spread19.1 / 255
console errors0
js errors none

METRICS

runtime84.6s
tokens in6.4k
tokens out3.3k
cached0
cost / run$0.0013