LinearAlgebra-book c22-강산

1905 days ago by matrix

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

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

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