Ch-4.3-ex-1-New-김강섭

1914 days ago by matrix

A = matrix(4,4,[1, 1, 1, 1, 2, 1, 1, -1, -1, 1, 2, 1, 3, 2, 2, -2]); A1 = matrix(4,4,[5, 1, 1,1, 0,1,1,-1,5,1,2,1,-1,2,2,-2]); A2 = matrix(4,4,[1,5,1,1,2,0,1,-1,-1,5,2,1,3,-1,2,-2]); A3 = matrix(4,4,[1,1,5,1,2,1,0,-1,-1,1,5,1,3,2,-1,-2]); A4 = matrix(4,4,[1,1,1,5,2,1,1,0,-1,1,2,5,3,2,2,-1]); print A.det() print A1.det() print A2.det() print A3.det() print A4.det() print "x1 =", A1.det()/A.det() print "x2 =", A2.det()/A.det() print "x3 =", A3.det()/A.det() print "x4 =", A4.det()/A.det() 
       
2
2
-2
4
6
x1 = 1
x2 = -1
x3 = 2
x4 = 3
2
2
-2
4
6
x1 = 1
x2 = -1
x3 = 2
x4 = 3