Ch-4-Prob-12-New-김준하

1897 days ago by matrix

A=matrix(QQ, 2, 2, [-1, 1, 2, 1]) print A.det() B=A.inverse() y=matrix(QQ, 2, 1, [2, -10]) By=B*y print By 
       
-3
[-4]
[-2]
-3
[-4]
[-2]
A=matrix(QQ, 3, 3, [1, 1, 1, 4, 2, 1, 9, 3, 1]) print A.det() B=A.inverse() y=matrix(QQ, 3, 1, [3, 5, 5]) By=B*y print By 
       
-2
[-1]
[ 5]
[-1]
-2
[-1]
[ 5]
[-1]