[ BENCHMARKS / v5.0 / TASKS / 124_rkf45 ]

RKF45 adaptive ODE integrator in Python.

An RKF45 adaptive ODE integrator that accepts, rejects and resizes steps exactly as the prompt specifies and lands on the end point.

Unit
124_rkf45
Category
PhysicsODE numerical integration
Language
Python
Difficulty
Hard900 s wall clock (15 min)
Origin
From v4, kept as defined
Ranked rows passed
5/7single seed each

The prompt

The agent receives exactly this text as its task, verbatim. The harness adds its own system prompt and, in some campaign arms, guidance of its own; the harness chapter describes those. The task’s setup also writes the files its working directory starts with (a worked sample, a repository or a service, where the prompt names them); they are not reproduced here.

Prompt · 124_rkf45
Create /tmp/eval_rkf/rkf.py with rkf45(f, t0, y0, t_end, tol=1e-8, h_init=0.01) integrating dy/dt = f(t, y) from t0 to t_end. Use the Runge-Kutta-Fehlberg 4(5) Butcher tableau: compute both 4th and 5th order updates, estimate the local error err = |y5 - y4|. Accept the 5th-order step when err < tol (advance t and y, append the point); when err >= tol REJECT the step — do NOT advance t or y, shrink h, and retry from the same t. Adapt via h_new = 0.9 * h * (tol/err)^0.2 clamped to [0.1*h, 5*h]; guard the err == 0 case (an exact step) so you never divide by zero — accept it and grow h by the max factor (5x). On every step clamp h so t never overshoots t_end: if t + h > t_end, set h = t_end - t (so the final accepted point lands exactly on t_end). Return a list of (t, y) tuples for accepted steps, including the initial point (t0, y0) and the final point (t_end, y(t_end)).

What it tests and why it is in the suite

What it asks. An RKF45 adaptive ODE integrator that accepts, rejects and resizes steps exactly as the prompt specifies and lands on the end point.

Why it is here. Kept from v4 as defined. With the n-body integrator it covers Physics after the stiff-kinetics family (186) did not clear review: adaptive step control.

In the suite README: evals/README.md:135 · evals/README.md:156

How it is graded

Graded by its v4 validator, sealed from the agent, after the agent stops. Two changes from v4: the prover can find a reference for it, and any wall-clock gate in its validator scales with the run’s timeout scale, as every v5 limit does. It is proven like every other unit (the reference passes; wrong and empty solutions and a leak probe fail), but in its v4 form it did not get the adversarial review the new families had.

Upstream: the prover’s controls · one unit’s life cycle · why v5 is built this way

How each ranked run did

One run per board row, the DGX Spark pair first, then the RTX 5090, then the gold standard. Each is a single seed: a pass or a fail on one unit is one draw, and a difference between two rows on one unit says little on its own. Claude Opus 5.5 is the unranked reference, in its own scaffold.

DGX Spark pair

One RTX 5090

Gold standard · unranked

  • Claude Opus 5.5Claude Code tools, no turn cap, 2× wallPassedPassed the validator.