LA+CHAP4+EX4+SOLVED+BY+김도희+REVISED+BY+송선민

2474 days ago by ipodsong

A=matrix(QQ,[[1,0,2],[0,5,0],[3,0,4]]) B=matrix(QQ,[[1,2,0],[3,4,0],[0,0,5]]) print "|A| = ",A.inverse().det() print "|AT| = ",A.transpose().det() AB=A*B print "|AB| = ",AB.det() print "|A||B| = ",A.det()*B.det() print "A inverse" print A.inverse() print "|A-1| = ",A.inverse().det() 
       
|A| =  -1/10
|AT| =  -10
|AB| =  100
|A||B| =  100
A inverse
[  -2    0    1]
[   0  1/5    0]
[ 3/2    0 -1/2]
|A-1| =  -1/10
|A| =  -1/10
|AT| =  -10
|AB| =  100
|A||B| =  100
A inverse
[  -2    0    1]
[   0  1/5    0]
[ 3/2    0 -1/2]
|A-1| =  -1/10