Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

Which Simulation Steps Need More Work?

Spending Calculation Where the Curve Changes

BOTIE

A simulation estimates a changing state at a sequence of times. Very short fixed intervals can waste calculations while the state barely changes. Long intervals can miss the change a training example was meant to capture. Numerical differential-equation solvers therefore needed a way to assess a proposed advance before accepting it.

One approach compares two approximations for the same future time while sharing some of the intermediate rate calculations. Embedded Runge-Kutta methods are a family that uses this arrangement. Dormand and Prince published one such pair in 1980; SciPy’s RK45 uses that pair to control local error and choose its internal steps.

We will build the idea with the simpler Euler update from the earlier timestep lesson. One full step and two successive half steps give us an inspectable disagreement. That can guide a retry with a shorter interval, while leaving the question of the physical model’s accuracy separate.

Sources for this history