Skip to main content

solve_ivp_explicit

Function solve_ivp_explicit 

Source
pub fn solve_ivp_explicit<F>(
    f: F,
    t_span: (f64, f64),
    y0: &[f64],
    method: ExplicitMethod,
    options: &ExplicitOptions,
    events: &[Event<'_>],
) -> Result<IvpSolution, ErrorsJSL>
where F: Fn(f64, &[f64]) -> Vec<f64>,
Expand description

Solves y' = f(t, y), y(t0) = y0 from t0 to t1 with an explicit Runge-Kutta method (SciPy’s solve_ivp with method='RK45' or 'DOP853'). t1 < t0 integrates backwards. Returns the same IvpSolution as solve_ivp: every accepted step, a dense output, and the occurrences of each Event located on the interpolants.