Skip to content

estim

Taylor-expand the solution of an initial value problem (IVP).

make_runge_kutta_starter(dt, *, atol=1e-12, rtol=1e-10) ¤

Create an estimator that uses a Runge-Kutta starter.

Source code in probdiffeq/taylor/estim.py
10
11
12
13
def make_runge_kutta_starter(dt, *, atol=1e-12, rtol=1e-10):
    """Create an estimator that uses a Runge-Kutta starter."""
    # If the accuracy of the initialisation is bad, play around with dt.
    return functools.partial(_runge_kutta_starter, dt0=dt, atol=atol, rtol=rtol)