rk45_method

Function rk45_method 

Source
pub fn rk45_method<F, Func>(
    f: Func,
    t_span: [F; 2],
    y0: Array1<F>,
    opts: ODEOptions<F>,
) -> IntegrateResult<ODEResult<F>>
where F: IntegrateFloat, Func: Fn(F, ArrayView1<'_, F>) -> Array1<F>,
Expand description

Re-exports Solve ODE using the Dormand-Prince method (RK45)

This is an adaptive step size method based on embedded Runge-Kutta formulas. It uses a 5th-order method with a 4th-order error estimate.

§Arguments

  • f - ODE function dy/dt = f(t, y)
  • t_span - Time span [t_start, t_end]
  • y0 - Initial condition
  • opts - Solver options

§Returns

The solution as an ODEResult or an error