선형대수응용_HW_W2

633 days 전, jongha4886 작성

A = matrix([[2,5,0,4,3,-3,1], [2,-1,-4,-3,6,0,-2], [0,-2,2,6,4,5,1], [2,4,-2,1,5,0,6], [-3,3,-4,-5,4,2,5], [-1,-8,10,6,9,3,-5], [6,2,8,-6,-2,-10,4]]) b = vector([1,-1,0,3,2,5,4]) c = A.augment(b).rref() print "Gauss-Jordan 소거법을 적용해 구한 RREF는 ", c print "" print "그 결과 해는, x =", A.solve_right(b), "입니다." 
       
Gauss-Jordan 소거법을 적용해 구한 RREF는  [             1              0          
0              0              0              0              0
-139987/105332]
[             0              1              0              0            
0              0              0   -42562/26333]
[             0              0              1              0            
0              0              0 -115609/210664]
[             0              0              0              1            
0              0              0    20202/26333]
[             0              0              0              0            
1              0              0   49015/105332]
[             0              0              0              0            
0              1              0   -52252/26333]
[             0              0              0              0            
0              0              1  139245/105332]

그 결과 해는, x = (-139987/105332, -42562/26333, -115609/210664, 20202/26333,
49015/105332, -52252/26333, 139245/105332) 입니다.
Gauss-Jordan 소거법을 적용해 구한 RREF는  [             1              0              0              0              0              0              0 -139987/105332]
[             0              1              0              0              0              0              0   -42562/26333]
[             0              0              1              0              0              0              0 -115609/210664]
[             0              0              0              1              0              0              0    20202/26333]
[             0              0              0              0              1              0              0   49015/105332]
[             0              0              0              0              0              1              0   -52252/26333]
[             0              0              0              0              0              0              1  139245/105332]

그 결과 해는, x = (-139987/105332, -42562/26333, -115609/210664, 20202/26333, 49015/105332, -52252/26333, 139245/105332) 입니다.