Ch-4-Prob-7-Final-김준하

1907 days ago by matrix

A와 B의 여인자를 각각 구해준다.

A=matrix(QQ, 3, 3, [1,3,-1,3,4,0,2,-5,-3]) adj_A=A.adjoint() A_cofactor=adj_A.transpose() print A_cofactor 
       
[-12   9 -23]
[ 14  -1  11]
[  4  -3  -5]
[-12   9 -23]
[ 14  -1  11]
[  4  -3  -5]
B=matrix(QQ, 3, 3, [2,1,1,2,1,2,1,0,3]) adj_B=B.adjoint() B_cofactor=adj_B.transpose() print B_cofactor 
       
[ 3 -4 -1]
[-3  5  1]
[ 1 -2  0]
[ 3 -4 -1]
[-3  5  1]
[ 1 -2  0]