# CH2.Exercises - Group2 최대근

## 1903 days ago by maxroot123

print 'problem 1-(1)' A = matrix(3, 3, [1, 7, -2016, 1, -2, +3, 1, 1, 1]) print A print '\nproblem1-(3)' b = matrix(3, 1, [1, 17, 9]) print A.augment(b) print '\nproblem 3' A = matrix(3, 5, [1, 4, 5, -9, -7, 0, 2, 4, -6, -6, 0, 0, 0, -5, 0]) b = matrix(3, 1, [1, 2, 3]) print A.augment(b).rref() print '\nproblem 4' A = matrix(3, 4, [1, 2, -1, -2, 0, 2, -2, 3, 0, 0, 0, 2]) print A.rref() B = matrix(3, 5, [0, 1, 0, 0, 5, 0, 0, 1, 0, 4, 0, 1, 0, -2, 3]) print B.rref() print '\nproblem 5' A = matrix(4, 4, [2, 1, 1, -2, 3, -2, 1, -6, 1, 1, -1, -1, 5, -1, 2, -8]) b = matrix(4, 1, [1, -2, -1, 3]) print A.augment(b).rref() print '\nproblem 6' A = matrix(3, 3, [1, 2, -3, 1, 3, 1, 2, 5, -4]) b = matrix(3, 1, [4, 11, 13]) print A.augment(b).rref() print '\nproblem 7' A = matrix(4, 4, [1, -1, 0, 0, 1, 0, -1, -1, 0, 0, 1, -2, 0, 1, 0, 0]) b = matrix(4, 1, [0,0,0,3]) print A.augment(b).rref() print'\nproblem P3' A = matrix(3, 3, [1, 1, 1, 1, -1, 1, 4, 2, 1]) b = matrix(3, 1, [4, 6, 9]) print A.augment(b).rref()
 problem 1-(1) [ 1 7 -2016] [ 1 -2 3] [ 1 1 1] problem1-(3) [ 1 7 -2016 1] [ 1 -2 3 17] [ 1 1 1 9] problem 3 [ 1 0 -3 0 5 -6/5] [ 0 1 2 0 -3 -4/5] [ 0 0 0 1 0 -3/5] problem 4 [ 1 0 1 0] [ 0 1 -1 0] [ 0 0 0 1] [0 1 0 0 5] [0 0 1 0 4] [0 0 0 1 1] problem 5 [ 1 0 0 -17/11 0] [ 0 1 0 9/11 0] [ 0 0 1 3/11 0] [ 0 0 0 0 1] problem 6 [1 0 0 1] [0 1 0 3] [0 0 1 1] problem 7 [1 0 0 0 3] [0 1 0 0 3] [0 0 1 0 2] [0 0 0 1 1] problem P3 [ 1 0 0 2] [ 0 1 0 -1] [ 0 0 1 3] problem 1-(1) [ 1 7 -2016] [ 1 -2 3] [ 1 1 1] problem1-(3) [ 1 7 -2016 1] [ 1 -2 3 17] [ 1 1 1 9] problem 3 [ 1 0 -3 0 5 -6/5] [ 0 1 2 0 -3 -4/5] [ 0 0 0 1 0 -3/5] problem 4 [ 1 0 1 0] [ 0 1 -1 0] [ 0 0 0 1] [0 1 0 0 5] [0 0 1 0 4] [0 0 0 1 1] problem 5 [ 1 0 0 -17/11 0] [ 0 1 0 9/11 0] [ 0 0 1 3/11 0] [ 0 0 0 0 1] problem 6 [1 0 0 1] [0 1 0 3] [0 0 1 1] problem 7 [1 0 0 0 3] [0 1 0 0 3] [0 0 1 0 2] [0 0 0 1 1] problem P3 [ 1 0 0 2] [ 0 1 0 -1] [ 0 0 1 3]