Skip to main content

rk4

Function rk4 

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

Classical 4th-order Runge-Kutta.