问题
I have a large system of differential equations I am trying to solve. I get the same results using scipy.odeint
and scipy.solve_ivp
, however the former is ~17 times faster in my case. I read that solve_ivp
is recommended for initial value problems, but can't find more on why I can't use odeint
(when it's giving me the same results).
Do I need to use solve_ivp
when I am getting the same results as from odeint
? When would I use one vs the other?
Thanks.
来源:https://stackoverflow.com/questions/61237298/scipy-solve-ivp-vs-odeint