Program for ... HELP!!!
Roman Suzi
rnd at onego.ru
Wed Sep 4 13:07:37 EDT 2002
On Wed, 4 Sep 2002, kyro wrote:
>Hello everybody, I need a little piece of program thath calculate the
>determinant of a square matrix.
>Can somebady help me?!??!?!?!
Not sure if this help you:
>>> import Matrix, LinearAlgebra
>>> m = Matrix.Matrix([[2,0],[0,.5]])
>>> print LinearAlgebra.determinant(m)
1.0
(You need a package called Numeric Python (or NumPy) to do this.
>Thanks a lot
>
>>>kyro<<
>
>P.S.: I think to use the recursion, but I don't use thr recursion in Python,
>I'm a newby.... :oP
Sincerely yours, Roman Suzi
--
rnd at onego.ru =\= My AI powered by Linux RedHat 7.2
aaro at onego.ru <- not to be mailed to
More information about the Python-list
mailing list