CH2-Prob4-New-박종우

1921 days ago by matrix

A=matrix(4,7,[-8,7,-2,1,0,10,-4,0,7,-2,1,0,10,4,0,0,-2,1,0,3,4,0,0,0,1,2,3,4]) B=matrix(3,5,[1,0,0,6,-3,0,1,0,5,7,0,0,1,2,4]) print "RREF(A)=" print A.rref() print "RREF(B)=" print B.rref() 
       
RREF(A)=
[1 0 0 0 0 0 1]
[0 1 0 0 0 1 0]
[0 0 1 0 1 0 0]
[0 0 0 1 2 3 4]
RREF(B)=
[ 1  0  0  6 -3]
[ 0  1  0  5  7]
[ 0  0  1  2  4]
RREF(A)=
[1 0 0 0 0 0 1]
[0 1 0 0 0 1 0]
[0 0 1 0 1 0 0]
[0 0 0 1 2 3 4]
RREF(B)=
[ 1  0  0  6 -3]
[ 0  1  0  5  7]
[ 0  0  1  2  4]