oneshotlm
Compare all models on this prompt →

Double pendulum · mistral-large-2512

Output generated Cost / run $0.0044 Runtime 23.6s

Prompt for this run

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 ↗

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-large-2512
vendorMistral AI
harnesspi-agent
generated2026-08-01

METRICS

runtime23.6s
tokens in4.6k
tokens out1.8k
cached1.4k
cost / run$0.0044
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 /tmp/ws/index.html (5883 bytes)
toolResult

Successfully wrote 5883 bytes to /tmp/ws/index.html

assistant

The chaotic double pendulum simulation is ready! Open `/tmp/ws/index.html` in a web browser to see it in action. **Features:** - Physically accurate equations of motion for a double pendulum - Smooth animation with a colorful fading trail of the tip - Click anywhere to reset the pendulum with random initial angles - Responsive design that adapts to window resizing - Fully self-contained (no external resources)