Python for science experiments

2011-07-08 Thread Ajith Kumar
Hello,
  Just posting a link of a project using Python <http://expeyes.in/> for
doing science experiments.

with regards

ajith


-- 
Dr. Ajith Kumar B.P.
Scientist SG
Inter-University Accelerator Centre
Aruna Asaf Ali Marg
New Delhi 110067
www.iuac.res.in
Ph: (off) 91 11 26893955 (Ext.230)
  (res)91 11 26897867
  (mob) 91 9868150852
-- 
http://mail.python.org/mailman/listinfo/python-list


Error in linalg.inv ??

2009-06-05 Thread Ajith Kumar

Hello,
I ran the following code (Using Debian 5.0)

from numpy import *
a = arange(1.,10.)
b = reshape(a, [3,3])
c = linalg.inv(b)
print b
print c
print dot(b,c)
print dot(c,b)

And the result is

[[ 1.  2.  3.]
[ 4.  5.  6.]
[ 7.  8.  9.]]

[[  3.15221191e+15  -6.30442381e+15   3.15221191e+15]
[ -6.30442381e+15   1.26088476e+16  -6.30442381e+15]
[  3.15221191e+15  -6.30442381e+15   3.15221191e+15]]

[[-0.5 -1.  -1. ]
[-1.  -2.   2. ]
[-1.5 -3.   1. ]]

[[  5.5   8.   10.5]
[  3.0.   -3. ]
[ -1.0.   -3. ]]

NOT the identity matrix. Any help ?

Thanks

Ajith Kumar

--
http://mail.python.org/mailman/listinfo/python-list