Skip to main content

Module runge_kutta_4

Module runge_kutta_4 

Source
Expand description

The classical fourth-order Runge-Kutta method with a fixed step.

See the book entry Runge-Kutta methods.

Functionsยง

rk4_solve
Solves y' = f(t, y) from (t0, y0) to t1 with n_steps steps of the classical fourth-order Runge-Kutta method (RK4), returning the state after every step.