ch8.problem2 by 김도형

330 days ago by dhkim

M=matrix(QQ,4,7,[1,-1,0,1,2,1,1,0,2,1,1,1,2,2,0,1,1,1,2,2,3,1,0,1,1,2,-1,0]) print(M) print a=M.rref() print a 
       
[ 1 -1  0  1  2  1  1]
[ 0  2  1  1  1  2  2]
[ 0  1  1  1  2  2  3]
[ 1  0  1  1  2 -1  0]

[ 1  0  0  0 -1 -3 -4]
[ 0  1  0  0 -1  0 -1]
[ 0  0  1  0  1 -2  0]
[ 0  0  0  1  2  4  4]
[ 1 -1  0  1  2  1  1]
[ 0  2  1  1  1  2  2]
[ 0  1  1  1  2  2  3]
[ 1  0  1  1  2 -1  0]

[ 1  0  0  0 -1 -3 -4]
[ 0  1  0  0 -1  0 -1]
[ 0  0  1  0  1 -2  0]
[ 0  0  0  1  2  4  4]