[SciPy-User] Problems with odeint

Adam Higuera ahig321@gmail....
Sun Oct 3 18:26:25 CDT 2010

I am on Mac OS X 10.5, and I am using the copy of SciPy that comes bundled
with sage.

I am having what seems like a pretty basic problem.  Entering the following

def b(y, t):
    [0.0, 0.0]

y_0 = [1.0, 0.0]

t = linspace(0, 10, 100)

print odeint(b, y_0, t)

results in a solution vector that looks like

[[  1.00000000e+000   0.00000000e+000]
 [              NaN   2.14766595e-315]
 [              NaN   4.29533808e-315]
 [              NaN   6.44301043e-315]
 [              NaN   8.59068278e-315]

Can other people runt this code without problems?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20101003/5c5affcd/attachment.html 

More information about the SciPy-User mailing list