Function rk45_integrate

Source
pub fn rk45_integrate(
    system: &dyn OdeSystem,
    t0: f64,
    y0: &[f64],
    t_end: f64,
    config: &Rk45Config,
) -> Result<OdeResult, AnalyticsError>
Expand description

Integrate an ODE system from (t0, y0) to t_end using Dormand-Prince RK45.

The Dormand-Prince method uses 7 function evaluations per step with an embedded error estimate for adaptive step-size control.