[SciPy-user] ode45 replacment

A. M. Archibald peridot.faceted at gmail.com
Fri Nov 3 17:55:29 CST 2006


On 03/11/06, Ryan Krauss <ryanlists at gmail.com> wrote:
> What is the best scipy replacement for Matlab's ode45?  Is it
> scipy.integrate.odeint?  What is the difference between odeint and
> ode?

Either one will probably suit your needs. For practical purposes, the
difference is one of interface - odeint has a more procedural
interface, while ode has a more object-oriented one. Underneath, both
use well-established fortran ODE integrators (odeint uses LSODA from
ODEPACK, and ode uses VODE). odeint may also have problems on a 64-bit
system, IIRC.

If you need a more sophisticated integrator (stopping based on the y
value, for example) look at the PyDSTool package.

A. M. Archibald


More information about the SciPy-user mailing list