ch7-exercise6_노경아

335 days ago by kyunganoh

A=matrix(QQ,[[10,2,-1],[0,-5,1],[0,1,2],[0,6,0]]) print A print A.rank() #rank(A) print B=matrix(QQ,[[10,0,0,0],[2,-5,1,6],[-1,1,2,0]]) print B print B.echelon_form() print B.right_nullity() print B.rank() #(column rank) c(A) 
       
[10  2 -1]
[ 0 -5  1]
[ 0  1  2]
[ 0  6  0]
3

[10  0  0  0]
[ 2 -5  1  6]
[-1  1  2  0]
[     1      0      0      0]
[     0      1      0 -12/11]
[     0      0      1   6/11]
1
3
[10  2 -1]
[ 0 -5  1]
[ 0  1  2]
[ 0  6  0]
3

[10  0  0  0]
[ 2 -5  1  6]
[-1  1  2  0]
[     1      0      0      0]
[     0      1      0 -12/11]
[     0      0      1   6/11]
1
3