Ch-3-C27-New 강산

1906 days ago by matrix

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

RREF(A)=
[1 0 1 0]
[0 1 1 0]
[0 0 0 1]
[0 0 0 0]
A=
[ 1  2  3  0]
[ 2 -1  1  2]
[ 1 -8 -7  1]
[ 0  1  1  0]

RREF(A)=
[1 0 1 0]
[0 1 1 0]
[0 0 0 1]
[0 0 0 0]