Ch3-Prob-4-New-김준하

1906 days ago by matrix

A=matrix(QQ, 3, 3, [2,1,3,1,2,1,1,1,2]) B=matrix(QQ, 3, 3, [3/2,1/2,-5/2,-1/2,1/2,1/2,-1/2,-1/2,3/2]) AB=A*B BA=B*A Bt=B.transpose() At=A.transpose() print AB print BA print Bt*At 
       
[1 0 0]
[0 1 0]
[0 0 1]
[1 0 0]
[0 1 0]
[0 0 1]
[1 0 0]
[0 1 0]
[0 0 1]
[1 0 0]
[0 1 0]
[0 0 1]
[1 0 0]
[0 1 0]
[0 0 1]
[1 0 0]
[0 1 0]
[0 0 1]