Scipy solve_ivp vs odeint

隐身守侯 提交于 2021-02-11 16:58:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!