oneshotlm
Compare all models on this prompt →

Double pendulum · mistral-small-3.2-24b-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
write index.html (4157 bytes)
toolResult

Successfully wrote 4157 bytes to index.html

assistant

The file `index.html` has been created with a simulation of a chaotic double pendulum. The simulation includes: - A canvas that fills the entire window - Pendulum parameters (lengths, masses, gravity) - Initial conditions for the angles and angular velocities - Equations of motion for the double pendulum - A trail that follows the tip of the second pendulum - Drawing functions for the pendulum arms, bobs, and trail - An animation loop to update and draw the pendulum - Event listener to handle window resizing You can open this file in a web browser to see the double pendulum simulation 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

modelmistral-small-3.2-24b-instruct
vendorMistral AI
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Double pendulum simulates with fading trail, but trail is gray/faint with only red tip highlighted, not very colorful.

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 motion0.6%
on click1.9%
on drag4.1%
on wheel6.7%
on enter + space4.0%
on arrow keys2.3%
on w/a/s/d2.3%
frame spread25.6 / 255
console errors0
js errors none

METRICS

runtime32.7s
tokens in4.2k
tokens out1.4k
cached0
cost / run$0.0008