LA. Ch 2. Problem 4. seongchan

2314 days ago by seongchan

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