solve_ivp_euler
solve_ivp_euler¶
- solve_ivp_euler(fun, t_span, y0, Nt)[source]¶
Solve the specified IVP using Euler’s method.
- 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.