A =matrix([[-0.5,0,0],[0,4,0],[0,0,1]])
print A
A= matrix(QQ,[[-0.5,0,0],[0,4,0],[0,0,1]])
print A
A.inverse()
B = A.inverse()
print B
print A =B.inverse()

Strang-6.7- EX 4- U (last edited 2010-12-17 10:49:05 by Anuradha)