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

## 2070 days ago by math2013

x1,x2,x3,x4,x5=var('x1 x2 x3 x4 x5') SM_T1(x1,x2,x3,x4,x5)=(4*x1-x3, -2*x5+x2, -x3-3*x1, 6*x4+x2, -x5+7*x4) SM_T2(x1,x2,x3,x4,x5)=(3*x1+x3,9*x5-x2, x3-2*x1, 7*x4+3*x2, -2*x5+4*x4) T1=linear_transformation(QQ^5, QQ^5,SM_T1) T2=linear_transformation(QQ^5, QQ^5,SM_T2) M_T1 = T1.matrix(side='right') M_T2 = T2.matrix(side='right') print "[T1] = \n",M_T1 print "[T2] = \n",M_T2 print "[T2*T1] = \n",M_T2*M_T1 print "[T1*T2]= \n",M_T1*M_T2
 [T1] = [ 4 0 -1 0 0] [ 0 1 0 0 -2] [-3 0 -1 0 0] [ 0 1 0 6 0] [ 0 0 0 7 -1] [T2] = [ 3 0 1 0 0] [ 0 -1 0 0 9] [-2 0 1 0 0] [ 0 3 0 7 0] [ 0 0 0 4 -2] [T2*T1] = [ 9 0 -4 0 0] [ 0 -1 0 63 -7] [-11 0 1 0 0] [ 0 10 0 42 -6] [ 0 4 0 10 2] [T1*T2]= [14 0 3 0 0] [ 0 -1 0 -8 13] [-7 0 -4 0 0] [ 0 17 0 42 9] [ 0 21 0 45 2] [T1] = [ 4 0 -1 0 0] [ 0 1 0 0 -2] [-3 0 -1 0 0] [ 0 1 0 6 0] [ 0 0 0 7 -1] [T2] = [ 3 0 1 0 0] [ 0 -1 0 0 9] [-2 0 1 0 0] [ 0 3 0 7 0] [ 0 0 0 4 -2] [T2*T1] = [ 9 0 -4 0 0] [ 0 -1 0 63 -7] [-11 0 1 0 0] [ 0 10 0 42 -6] [ 0 4 0 10 2] [T1*T2]= [14 0 3 0 0] [ 0 -1 0 -8 13] [-7 0 -4 0 0] [ 0 17 0 42 9] [ 0 21 0 45 2]