Skip to main content

rosenbrock23

Function rosenbrock23 

Source
pub fn rosenbrock23<F, J>(
    f: F,
    jacobian: Option<J>,
    t0: f64,
    y0: &[f64],
    t1: f64,
    options: OdeOptions,
) -> Result<OdeSolution, ErrorsJSL>
where F: Fn(f64, &[f64]) -> Vec<f64>, J: Fn(f64, &[f64]) -> Vec<Vec<f64>>,
Expand description

Solves y' = f(t, y) from (t0, y0) to t1 with the Rosenbrock 2(3) pair of ode23s. ∂f/∂t is estimated by a forward difference.