I am wondering, what are the differences between ODEINT
and solve_ivp
for solving a differential equation. What could be advantages and disadvantages between them?
f1 = solve_ivp(f, [0,1], y0) #y0 is the initial point
f2 = odeint(f, y0, [0, 1], args=(a, b)) # a and b are arguments of function f
Thank you
solve_ivp
is better to solve the ODEs, but is slower thanODEINT
. – Incipit