pub fn bdf<F, J>(
f: F,
jacobian: Option<J>,
t0: f64,
y0: &[f64],
t1: f64,
max_order: usize,
options: OdeOptions,
) -> Result<OdeSolution, ErrorsJSL>Expand description
Solves y' = f(t, y) from (t0, y0) to t1 with variable-step BDF formulas of order up to
max_order (1 to 5). Orders 1 and 2 are A-stable; higher orders are more efficient at tight
tolerances but only stable in a wedge about the negative real axis (fine for dissipative
problems, less so for lightly damped oscillations). The local error is estimated from the
difference between the Newton-corrected solution and the polynomial predictor.