Ch-2.3-Final-허재석

1901 days ago by matrix

A=matrix(4, 4, [1, 1, 1, 1, 1, 2, 4, 8, 1, 6, 36, 216, 1, 5, 25, 125]) b=matrix(4, 1, [0, -8, 20, -8]) print A.augment(b).rref() 
       
[ 1  0  0  0  2]
[ 0  1  0  0  3]
[ 0  0  1  0 -6]
[ 0  0  0  1  1]
[ 1  0  0  0  2]
[ 0  1  0  0  3]
[ 0  0  1  0 -6]
[ 0  0  0  1  1]