solve_ivp_rk4
solve_ivp_rk4¶
- solve_ivp_rk4(fun, t_span, y0, Nt)[source]¶
Solve the specified IVP using 4th order Runge-Kutta.
- Parameters
Nt (int) – Number of steps. The time-step will be (t_span[1] - t_span[0])/Nt.
- Returns
res (OdeResult) – Bunch object.
The remaining arguments should match those of
scipy.integrate.solve_ivp().Don’t worry about optimizations like allowing fun to be vectorized etc.