[SciPy-user] I'm a newbie in Python ans SciPy... so i've a little question

Alan G Isaac aisaac at american.edu
Thu Jan 10 09:55:18 EST 2008


I no longer have numarray, but that is probably not the 
issue. I do not see this behavior with the NumPy and SciPy 
Windows binaries.

Cheers,
Alan Isaac


Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 
32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as N
>>> N.__version__
'1.0.4'
>>> import scipy as S
>>> S.__version__
'0.6.0'
>>> import numpy.linalg as L
>>> ar = N.array([[4.0, -2.0, 1.0], \
...             [-2.0, 4.0, -2.0], \
...             [1.0, -2.0, 3.0]])
>>> ar
array([[ 4., -2.,  1.],
       [-2.,  4., -2.],
       [ 1., -2.,  3.]])
>>> L.det(ar)
24.0
>>> ar
array([[ 4., -2.,  1.],
       [-2.,  4., -2.],
       [ 1., -2.,  3.]])
>>> import scipy.linalg as Ls
>>> Ls.det(ar)
24.0
>>> ar
array([[ 4., -2.,  1.],
       [-2.,  4., -2.],
       [ 1., -2.,  3.]])





More information about the SciPy-User mailing list