Ch-3.2-exam4-NEW-김준식

1919 days ago by matrix

A=matrix(ZZ, 2, 2, [3, 5, 1, 2]) B=matrix(ZZ, 2, 2, [1, 3, 2, 7]) AB=A*B # AB calculation print AB.inverse() # inverse of AB, format A.inverse() print print B.inverse()*A.inverse() # B^(-1)*A^(-1) 
       
[ 17 -44]
[ -5  13]

[ 17 -44]
[ -5  13]
[ 17 -44]
[ -5  13]

[ 17 -44]
[ -5  13]