LA.Ch7.EX5.SC.Kim

2042 days ago by seongchan

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

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

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

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

nullity(A)= 1