Ch-7-Prob-5-New-이태희

1866 days ago by matrix

A=matrix(ZZ,4,4,[1,2,1,1,-1,-2,1,1,2,4,3,1,1,2,0,0]) print "RREF(A)=" print A.rref() print print A.right_kernel() print print "nullity(A)=",; print A.right_nullity() 
       
RREF(A)=
[1 2 0 0]
[0 0 1 0]
[0 0 0 1]
[0 0 0 0]

Free module of degree 4 and rank 1 over Integer Ring
Echelon basis matrix:
[ 2 -1  0  0]

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

Free module of degree 4 and rank 1 over Integer Ring
Echelon basis matrix:
[ 2 -1  0  0]

nullity(A)= 1