LA Chpt.7 Ex.6(New) published by 박시현

2053 days ago by darkextra

A = matrix(QQ, 6, 6, [1,2,0,2,5,2,-2,-5,1,-1,-8,1,0,-3,3,4,1,0,3,6,0,-7,2,2,0,0,0,0,2,1,0,0,0,-1,0,3]) B = A.transpose() C = B.echelon_form() print C.transpose() 
       
[      1       0       0       0       0       0]
[      0       1       0       0       0       0]
[      0       0       1       0       0       0]
[      0       0       0       1       0       0]
[      0       0       0       0       1       0]
[  39/50 219/350 -73/350   11/70     1/2       0]
[      1       0       0       0       0       0]
[      0       1       0       0       0       0]
[      0       0       1       0       0       0]
[      0       0       0       1       0       0]
[      0       0       0       0       1       0]
[  39/50 219/350 -73/350   11/70     1/2       0]
print A.echelon_form() 
       
[ 1  0  2  0  0  0]
[ 0  1 -1  0  0  0]
[ 0  0  0  1  0  0]
[ 0  0  0  0  1  0]
[ 0  0  0  0  0  1]
[ 0  0  0  0  0  0]
[ 1  0  2  0  0  0]
[ 0  1 -1  0  0  0]
[ 0  0  0  1  0  0]
[ 0  0  0  0  1  0]
[ 0  0  0  0  0  1]
[ 0  0  0  0  0  0]
print A.rank() print A.right_nullity() 
       
5
1
5
1