Ch-6-Prob-7-New-이승진

1893 days ago by matrix

x,y,z=var('x y z') T1(x,y,z)=(5*x,-3*x+2*y,-x+4*y) T2(x,y,z)=(x+6*y,-2*z,x-z) Standard_T1=linear_transformation(QQ^3, QQ^3,T1) Standard_T2=linear_transformation(QQ^3, QQ^3,T2) print "[T1]=" print Standard_T1.matrix(side='right') print "[T2]=" print Standard_T2.matrix(side='right') print "[T2*T1]=" print Standard_T2.matrix(side='right')*Standard_T1.matrix(side='right') print "[T1*T2]=" print Standard_T1.matrix(side='right')*Standard_T2.matrix(side='right') 
       
[T1]=
[ 5  0  0]
[-3  2  0]
[-1  4  0]
[T2]=
[ 1  6  0]
[ 0  0 -2]
[ 1  0 -1]
[T2*T1]=
[-13  12   0]
[  2  -8   0]
[  6  -4   0]
[T1*T2]=
[  5  30   0]
[ -3 -18  -4]
[ -1  -6  -8]
[T1]=
[ 5  0  0]
[-3  2  0]
[-1  4  0]
[T2]=
[ 1  6  0]
[ 0  0 -2]
[ 1  0 -1]
[T2*T1]=
[-13  12   0]
[  2  -8   0]
[  6  -4   0]
[T1*T2]=
[  5  30   0]
[ -3 -18  -4]
[ -1  -6  -8]