Please pardon me if it is a dumb question. I was just exploring numpy in python shell and I ran these lines
>>> from numpy.linalg import inv
>>> from numpy import dot, transpose
>>> a = np.matrix('1,2;3,4')
>>> print a
[[1 2]
[3 4]]
>>> print inv(a)
[[-2. 1. ]
[ 1.5 -0.5]]
>>> print a.dot(inv(a))
[[1.0000000e+00 0.0000000e+00]
[8.8817842e-16 1.0000000e+00]]
In the last line I was expecting value
[[1,0]
[0,1]]
(identity matrix), however I got some non-zero value at (1,0) pos.