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
Each step computes two solutions, of order 5 and order 4, from the same seven stages. Their difference estimates the local error, which drives the step size up or down to meet the requested tolerance. The last stage of one step is the first stage of the next (FSAL), so each accepted step costs six new evaluations. A built-in interpolant gives output at any time between steps without shortening them.
When to use
- General non-stiff ODEs, including damped, driven or velocity-dependent dynamics.
- When you do not know a good step size, the dynamics speed up and slow down, or you need output at prescribed times.
When not to use (and what to use instead)
| Situation | Use instead |
|---|---|
| Very long runs of a conservative mechanical system where energy must not drift | stormer-verlet or yoshida4 at a fixed step |
| Stiff problem: the step size collapses and runs become very slow | backward-euler, or a higher-order stiff solver (BDF, Radau IIA; not in this library) |
| Holonomic constraints (fixed bond lengths) | A constrained integrator such as RATTLE (not in this library) |
Key facts
Order 5 with an embedded order-4 error estimate, explicit, adaptive step size, dense output, not symplectic, conditionally stable, six new evaluations per accepted step.
Sources
- J. R. Dormand, P. J. Prince. A family of embedded Runge-Kutta formulae. Journal of Computational and Applied Mathematics 6 (1980) 19–26. https://doi.org/10.1016/0771-050X(80)90013-3
- E. Hairer, S. P. Nørsett, G. Wanner. Solving Ordinary Differential Equations I, 2nd rev. ed. Springer, 1993. https://doi.org/10.1007/978-3-540-78862-1