Ch-7.2-exam-1-New-이승진

1879 days ago by matrix

A=matrix(5,5,[2,2,1,0,5,-1,-1,1,0,-1,3,3,0,1,5,1,1,1,1,2,1,1,0,0,2]) b=matrix(5,1,[0,0,0,0,0]) print A.augment(b).echelon_form() print print A.right_kernel() # The null space of the system of linear equations Ax=0 print print A.right_nullity() 
       
[ 1  1  0  0  2  0]
[ 0  0  1  0  1  0]
[ 0  0  0  1 -1  0]
[ 0  0  0  0  0  0]
[ 0  0  0  0  0  0]

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

2
[ 1  1  0  0  2  0]
[ 0  0  1  0  1  0]
[ 0  0  0  1 -1  0]
[ 0  0  0  0  0  0]
[ 0  0  0  0  0  0]

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

2