scipy.integrate.odeint和scipy.integrate.ode有什么区别?

Dip*_*ole 16 python scipy ode

我已经在这里阅读了这些文档,但它只是说odeint" 是一个基于来自ODEPACK的lsoda的简单接口的集成商 "

实际差异是什么?在什么情况下使用比另一个更合适的?

ask*_*han 12

如果你可以解决你的问题odeint,我会建议.它只是一个使用lsoda集成ode的功能.

如果你想要更多选项,那么ode这个类有很多方法和求解器:

  • @drN你是对的!出于某种原因,我将`z`转换为has,它应该保留在[cheeseburger](https://en.wikipedia.org/wiki/I_Can_Has_Cheezburger%3F)中,就像在经典的Happycat https:// i中一样. stack.imgur.com/BZ33g.jpg我经常遇到的`.odeint()`的问题是,你必须提前选择结束时间,不能发现问题并说"停止!不再进一步".但是,对于`.ode()`中的某些集成商,你有[`.set_solout()`](https://docs.scipy.org/doc/scipy-0.18.1/reference/generated/scipy.integrate.ode .set_solout.html#scipy.integrate.ode.set_solout) (2认同)