Skip to main content

yoshida4_step

Function yoshida4_step 

Source
pub fn yoshida4_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 Yoshida (1990) 4th-order symplectic step, built as a symmetric composition of three Verlet sub-steps with the Yoshida weights w1, w0, w1.