num::rk4_2nd¶
Defined in header <ode/ode.hpp>
template <typename Accel = accel_fn, typename State = vec<real>>
requires vector_space<State> && std::invocable<Accel &, const State &, State &>
basic_rk4_2nd_steps<Accel, State> rk4_2nd(Accel accel, State q0, State v0,
ode_params p = {});
Return the steps of the Runge–Kutta–Nyström method (order 4), computed as they are read: \(\ddot{q} = a(q)\).