Ch-4-Prob-11-New-권의회

1904 days ago by matrix

A=matrix(QQ, 3, 3, [4,2,1,1,5,2,0,4,3]) A1=matrix(QQ, 3, 3, [1,2,1,2,5,2,4,4,3]) A2=matrix(QQ, 3, 3, [4,1,1,1,2,2,0,4,3]) A3=matrix(QQ, 3, 3, [4,2,1,1,5,2,0,4,4]) print "det(A)=", A.det() print "det(A1)=", A1.det() print "det(A2)=", A2.det() print "det(A3)=", A3.det() print "x=", A1.det()/A.det() print "y=", A2.det()/A.det() print "z=", A3.det()/A.det() 
       
det(A)= 26
det(A1)= -1
det(A2)= -7
det(A3)= 44
x= -1/26
y= -7/26
z= 22/13
det(A)= 26
det(A1)= -1
det(A2)= -7
det(A3)= 44
x= -1/26
y= -7/26
z= 22/13