LA+Chapter+7+Ex+7+김원경

2044 days ago by math2013

A=matrix([[2, 5, 7, 9, 10, 11], [2, 3, 1, 2, 4, 8], [8, 6, 2, 1, 2, 3]]) print "RREF(A)=" print A.rref() print "rank(A)=" print A.rank() print "nullity(A)=" print A.right_nullity() 
       
RREF(A)=
[    1     0     0  -3/4  -3/2 -13/4]
[    0     1     0   7/8   9/4  21/4]
[    0     0     1   7/8   1/4  -5/4]
rank(A)=
3
nullity(A)=
3
RREF(A)=
[    1     0     0  -3/4  -3/2 -13/4]
[    0     1     0   7/8   9/4  21/4]
[    0     0     1   7/8   1/4  -5/4]
rank(A)=
3
nullity(A)=
3
A=matrix([[1, -1, 2, 1], [-1, 0, -1, 2], [2, -4, 6, 0], [3, 3, 0, -1], [0, -1, 1, 1]]) print "RREF(A)=" print A.rref() print "rank(A)=" print A.rank() print "nullity(A)=" print A.right_nullity() 
       
RREF(A)=
[ 1  0  1  0]
[ 0  1 -1  0]
[ 0  0  0  1]
[ 0  0  0  0]
[ 0  0  0  0]
rank(A)=
3
nullity(A)=
1
RREF(A)=
[ 1  0  1  0]
[ 0  1 -1  0]
[ 0  0  0  1]
[ 0  0  0  0]
[ 0  0  0  0]
rank(A)=
3
nullity(A)=
1