LA+Chapter+6+Ex+6(new)-서승완

2068 days ago by math2013

A=matrix(3, 4, [2,-5,2,0,4,5,-1,0,1,-1,1,0]) A2=matrix(3,3, [2,-5,2,4,5,-1,1,-1,1]) print "A=" print A print "RREF(A)=" print A.rref() print "det(A)=", A2.det() 
       
A=
[ 2 -5  2  0]
[ 4  5 -1  0]
[ 1 -1  1  0]
RREF(A)=
[1 0 0 0]
[0 1 0 0]
[0 0 1 0]
det(A)= 15
A=
[ 2 -5  2  0]
[ 4  5 -1  0]
[ 1 -1  1  0]
RREF(A)=
[1 0 0 0]
[0 1 0 0]
[0 0 1 0]
det(A)= 15