tags:

views:

2275

answers:

1

Hi, All,

This confused me a lot. I read the manual of Numpy that there is function det(M) that can calculate the determinant. However, I can't find the det() in Numpy. By the way, I use Python 2.5. There should be no compatabile problem with Numpy.

Thanks very much for your help!

+8  A: 

Try:

>>> import numpy
>>> M=[[1, 2], [3, 4]]
>>> numpy.linalg.det(M)
-2.0

[http://www.scipy.org/doc/numpy_api_docs/numpy.linalg.linalg.html#det]

xyz