Matrix
Enviado por 123no • 2 de Octubre de 2015 • Práctica o problema • 823 Palabras (4 Páginas) • 191 Visitas
matrix input A = (1,3,2,6,8\3,9,4,2,1\2,3,3,4,9\7,5,2,8,2\9,1,2,5,6)
. matrix list A
A[5,5]
c1 c2 c3 c4 c5
r1 1 3 2 6 8
r2 3 9 4 2 1
r3 2 3 3 4 9
r4 7 5 2 8 2
r5 9 1 2 5 6
. matrix B = A*A
. matrix C=A'*A
. matrix list C
symmetric C[5,5]
c1 c2 c3 c4 c5
c1 144
c2 80 125
c3 52 63 37
c4 121 93 58 145
c5 97 76 63 132 186
matrix symeigen X lambda = C
mat list X
X[5,5]
e1 e2 e3 e4 e5
c1 .46803024 .25962491 -.71876314 .42806184 -.1169838
c2 .3954135 .6262107 .55956034 .02600524 -.37111222
c3 .25245039 .13336994 .24263927 .29107353 .88027476
c4 .52398456 -.03113942 -.18250923 -.81303519 .1735934
c5 .53507461 -.72228655 .27944293 .26521078 -.20873953
. mat V= (.46803024,.3954135,.25245039,.52398456,.53507461\.25962491,.6262107,.13336994,-.03113942,-.72228655\-.71876314,.55956034,.242639
> 27,-.18250923,.27944293\.42806184,.02600524,.29107353,-.81303519,.26521078\-.1169838,-.37111222,.88027476,.1735934,-.20873953)
. mat list V
V[5,5]
c1 c2 c3 c4 c5
r1 .46803024 .3954135 .25245039 .52398456 .53507461
r2 .25962491 .6262107 .13336994 -.03113942 -.72228655
r3 -.71876314 .55956034 .24263927 -.18250923 .27944293
r4 .42806184 .02600524 .29107353 -.81303519 .26521078
r5 -.1169838 -.37111222 .88027476 .1735934 -.20873953
. mat P = X*V
. mat list P
symmetric P[5,5]
c1 c2 c3 c4 c5
c1 1
c2 -2.228e-09 1
c3 -4.426e-09 2.199e-09 1
c4 1.816e-09 -3.114e-11 -5.749e-10 1
c5 -4.889e-09 -2.203e-10 3.649e-09 -1.334e-09 1
. mat P2=V*A
. mat list P2
P2[5,5]
c1 c2 c3 c4 c5
r1 10.642735 8.8751608 5.393184 11.47606 10.670126
r2 -4.313558 5.9368972 1.9173505 -.51689749 -.4924587
r3 2.6826182 2.9745682 1.7225003 -2.2857603 -1.6951522
r4 -2.2161247 -1.4085119 .73771641 -1.393552 6.035356
...