Ch-7-Prob-6-New-황성빈

1859 days ago by matrix

A=matrix(QQ,[[1,2,0,2,5],[-2,-5,1,-1,-8],[0,-3,3,4,1],[3,6,0,-7,2],[0,0,0,-1,0]]) print A print A.rank() 
       
[ 1  2  0  2  5]
[-2 -5  1 -1 -8]
[ 0 -3  3  4  1]
[ 3  6  0 -7  2]
[ 0  0  0 -1  0]
4
[ 1  2  0  2  5]
[-2 -5  1 -1 -8]
[ 0 -3  3  4  1]
[ 3  6  0 -7  2]
[ 0  0  0 -1  0]
4
B=matrix(QQ,[[1,-2,0,3,0],[2,-5,-3,6,0],[0,1,3,0,0],[2,-1,4,-7,-1],[5,-8,1,2,0]]) print B print B.echelon_form() print B.right_nullity() print B.rank() 
       
[ 1 -2  0  3  0]
[ 2 -5 -3  6  0]
[ 0  1  3  0  0]
[ 2 -1  4 -7 -1]
[ 5 -8  1  2  0]
[    1     0     0 -63/5     0]
[    0     1     0 -39/5     0]
[    0     0     1  13/5     0]
[    0     0     0     0     1]
[    0     0     0     0     0]
1
4
[ 1 -2  0  3  0]
[ 2 -5 -3  6  0]
[ 0  1  3  0  0]
[ 2 -1  4 -7 -1]
[ 5 -8  1  2  0]
[    1     0     0 -63/5     0]
[    0     1     0 -39/5     0]
[    0     0     1  13/5     0]
[    0     0     0     0     1]
[    0     0     0     0     0]
1
4