Untitled

2309 days ago by seongchan

A=matrix(QQ,3,3,[1, 1, 2 ,2, 4,-3,3,6,-5]) B=matrix(QQ,3,3,[2, -17, 11 ,-1, 11,-7,0,3,-2]) C=A.transpose() print "Inverse(A)=" print A.inverse() print "Invers(A)=B",; print bool(B==A.inverse()) print "Inverse(Trans(A))=" print C.inverse() print "Invers(Trans(A))=Trans(Inverse(A))",; print bool(C.inverse()==B.transpose()) 
       
Inverse(A)=
[  2 -17  11]
[ -1  11  -7]
[  0   3  -2]
Invers(A)=B True
Inverse(Trans(A))=
[  2  -1   0]
[-17  11   3]
[ 11  -7  -2]
Invers(Trans(A))=Trans(Inverse(A)) True
Inverse(A)=
[  2 -17  11]
[ -1  11  -7]
[  0   3  -2]
Invers(A)=B True
Inverse(Trans(A))=
[  2  -1   0]
[-17  11   3]
[ 11  -7  -2]
Invers(Trans(A))=Trans(Inverse(A)) True