ch4 problem7

314 days ago by ghkdgnf

#For A matrix A=matrix(QQ, 3, 3, [2, 1, 1, 3, -2, 5, 1, 4, 3]) B=A.adjoint() C=B.transpose() print C # Find adj with Cofactors 
       
[-26  -4  14]
[  1   5  -7]
[  7  -7  -7]
[-26  -4  14]
[  1   5  -7]
[  7  -7  -7]
#For B matrix B=matrix(QQ, 4, 4, [4, 3, 2, 1, 5, 2, 0, 4, 2, -1, 1, 3, 1, 1, 3, 2]) C=B.adjoint() D=C.transpose() print D # Find adj with Cofactors 
       
[-30  15 -15  30]
[ 15 -25  20 -25]
[-30  45 -15  15]
[ 30 -25 -10 -25]
[-30  15 -15  30]
[ 15 -25  20 -25]
[-30  45 -15  15]
[ 30 -25 -10 -25]