Skip to main content

ruth3_step

Function ruth3_step 

Source
pub fn ruth3_step<F, G>(
    q: f64,
    p: f64,
    h: f64,
    force: F,
    kinetic_velocity: G,
) -> (f64, f64)
where F: Fn(f64) -> f64, G: Fn(f64) -> f64,
Expand description

One Ruth (1983) 3rd-order symplectic step. Three (kick, drift) sub-stages with the canonical Ruth coefficients.