ch7 problem21 by 김도형

325 days ago by dhkim

P=matrix(4,8,[0,1,1,3,7,1,2,1,1,0,2,-2,-7,-4,3,2,1,-1,0,2,5,4,0,0,1,1,2,0,4,3,1,1]) a=P.rref() print a b=matrix(4,4,[17/2,19/2,-7/2,-3/2,29/4,25/4,-11/4,-5/4,-47/8,-51/8,29/8,15/8,15/8,3/8,3/8,1/8]) print b c=b.inverse() print c 
       
[    1     0     0     0  17/2  19/2  -7/2  -3/2]
[    0     1     0     0  29/4  25/4 -11/4  -5/4]
[    0     0     1     0 -47/8 -51/8  29/8  15/8]
[    0     0     0     1  15/8   3/8   3/8   1/8]
[ 17/2  19/2  -7/2  -3/2]
[ 29/4  25/4 -11/4  -5/4]
[-47/8 -51/8  29/8  15/8]
[ 15/8   3/8   3/8   1/8]
[   -1/4     1/2     1/8     1/8]
[   9/16    -7/8   -5/32   11/32]
[    7/8   -13/4  -27/16   53/16]
[  -9/16    39/8  117/32 -155/32]
[    1     0     0     0  17/2  19/2  -7/2  -3/2]
[    0     1     0     0  29/4  25/4 -11/4  -5/4]
[    0     0     1     0 -47/8 -51/8  29/8  15/8]
[    0     0     0     1  15/8   3/8   3/8   1/8]
[ 17/2  19/2  -7/2  -3/2]
[ 29/4  25/4 -11/4  -5/4]
[-47/8 -51/8  29/8  15/8]
[ 15/8   3/8   3/8   1/8]
[   -1/4     1/2     1/8     1/8]
[   9/16    -7/8   -5/32   11/32]
[    7/8   -13/4  -27/16   53/16]
[  -9/16    39/8  117/32 -155/32]