oneshotlm
Compare all models on this prompt →

Double pendulum · gpt-4o-mini-2024-07-18

Output generated Cost / run $0.0009 Runtime 12.2s

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

modelgpt-4o-mini-2024-07-18
vendorOpenAI
harnesspi-agent
generated2026-08-01

METRICS

runtime12.2s
tokens in3.2k
tokens out915
cached1.9k
cost / run$0.0009
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 (2983 bytes)
toolResult

Successfully wrote 2983 bytes to index.html

assistant

The simulation of a chaotic double pendulum has been created and written to `index.html`. You can open this file in a web browser to run the simulation.