[SciPy-user] why signature of func in odeint != ode ?

Emanuele Olivetti emanuele@relativita....
Mon Nov 17 10:38:06 CST 2008


Why signature of func in odeint is swapped (y,t0 -> t0,y) with
respect to func in ode ?

It would be nice to have same signature in order to be able
to play with both of them more transparently.

Details from docstrings:

scipy.integrate.odeint:
----
Inputs:
    
      func -- func(y,t0,...) computes the derivative of y at t0.
----

scipy.integrate.ode:
----
where f and jac have the following signatures:
        def f(t,y[,arg1,..]):
            return <f(t,y)>
----

Is there a reason for this or is it just a little defect?


Regards,

Emanuele



More information about the SciPy-user mailing list