Placeholder (demo). Description only: there is no reference implementation or verification for this entry yet. It belongs to a demonstration set of textbook methods.
What it does
If a quantity computed with step has error , then two runs at and give an improved estimate , and the correction term itself estimates the error of . With three runs at , , , the observed order is , so the order does not have to be known in advance.
Mind the sign. Write the error of a result as computed minus exact. The correction is what you add to ; it equals minus the estimated error of , and it continues the trend the results already show as shrinks.
Which to use: if the method's theoretical order is known and the observed order agrees with it, use the theoretical value; otherwise use the observed one. Three runs give only one estimate of ; a fourth run at shows whether the observed order is stable, which means the step sizes are in the asymptotic range. The extrapolated value has a smaller error of higher order whose size is not estimated by this procedure.
Worked example. A second-order method gives , , :
- observed order: , matching the theoretical order;
- correction for the best result: ;
- so the error of is about (it is too high by about );
- improved estimate: .
Check: the results decrease as shrinks (), and the improved value continues that trend.
When to use
- You have, or can cheaply compute, results at two or more step sizes and want an error estimate or a more accurate value.
- Checking a new implementation: the observed order should match the method's theoretical order.
When not to use (and what to use instead)
| Situation | Use instead |
|---|---|
| The error does not behave like : step too large (not yet asymptotic), non-smooth solution, chaotic long-time dynamics | Reduce the step until the observed order is stable, or report the spread between runs instead |
| Rounding error dominates (very small steps) | Use larger steps; extrapolation amplifies noise |
| You only need step-size control during an ODE run | An adaptive method such as dormand-prince-rk45, which estimates the error at every step |
Key facts
Needs the order (two runs) or estimates it (three runs). Outputs: an improved estimate, an error estimate and the observed order.
Sources
- L. F. Richardson. The approximate arithmetical solution by finite differences of physical problems involving differential equations. Philosophical Transactions of the Royal Society A 210 (1911) 307–357. https://doi.org/10.1098/rsta.1911.0009
- L. F. Richardson, J. A. Gaunt. The deferred approach to the limit. Philosophical Transactions of the Royal Society A 226 (1927) 299–361. https://doi.org/10.1098/rsta.1927.0008