Skip to main content

adams_bashforth4

Function adams_bashforth4 

Source
pub fn adams_bashforth4(
    f: impl Fn(f64, &[f64]) -> Vec<f64>,
    t0: f64,
    y0: &[f64],
    dt: f64,
    steps: usize,
) -> Vec<Vec<f64>>
Expand description

Adams-Bashforth 4-step method. Seeds first 4 steps with RK4, then applies the multi-step formula.