Sunteți pe pagina 1din 16

SISTEMA DE ECUACIONES LINEALES

Procedemos a formar la matriz am

1.2 x  2.4 y  3.7 z  3.2


 1.2 -2.4
2.7 x  3.2 y  1.7 z  1.5
2.7 3.2
3.2 x  4.1 y  3.7 z  4.2
 3.2 -4.1

Verificamos que no sea una matriz singular

Determinante -112.339

METODO DE ELIMINACION DE GAUSS

X Y Z
1.2 -2.4 3.7 3.2 Pivot n21
21
Pivot n31
Matriz 2.7 3.2 -1.7 1.5 31

3.2 -4.1 -3.7 4.2

1.2 -2.4 3.7 3.2 Pivot n32


32

0 -10.32 12.03 6.84


0 -2.76 16.28 5.2

X Y Z
1.2 -2.4 3.7 3.2
0 -10.32 12.03 6.84
0 0 134.8068 34.7856

Rpta: Z 0.2580
Y -0.3620
X 1.1471

METODO DE GAUSS-JORDAN
Matriz
X Y Z
1.2 -2.4 3.7 3.2
A= 2.7 3.2 -1.7 1.5 B=
3.2 -4.1 -3.7 4.2
1.2 -2.4 3.7 3.2
C=B*A -4.4409E-16 8.6 -10.025 -5.7 D=
0 2.3 -13.566667 -4.33333333

1.2 0 0.90232558 1.609302326


E=D*C -4.4409E-16 8.6 -10.025 -5.7 F=
1.1877E-16 -4.4409E-16 -10.885562 -2.80891473

Inv
1.2 -3.6811E-17 0 1.376465876
G=F*E -5.5347E-16 8.6 -1.7764E-15 -3.11314503 H=
1.1877E-16 -4.4409E-16 -10.885562 -2.80891473

X Y Z
1 -3.0676E-17 0 1.147054896
M=H*G -6.4357E-17 1 -2.0655E-16 -0.36199361
-1.0911E-17 4.0796E-17 1 0.258040396

Rpta: Z 0.2580
Y -0.3620
X 1.1471

METODO DE GAUSS-SEIDEL

Despejamos x,y ,z

1.2 x  2.4 y  3.7 z  3.2 𝑥=(3.2−3.7𝑧+2.4�)/1


 .2
2.7 x  3.2 y  1.7 z  1.5
3.2 x  4.1 y  3.7 z  4.2
 �=(1.5+1.7𝑧−2.7𝑥)/
3.2
Iteracion
1
𝑧=(4.2−3.2𝑥+4.1�)/
(−3.7) 2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

Rpta:Se uede observar una inco


que aumentan las Iteraciones
rocedemos a formar la matriz ampliada

3.7 3.2
-1.7 1.5
-3.7 4.2

1 0 0
-2.25 1 0
-2.6666666667 0 1
1 0.2790697674 0
0 1 0
0 -0.2674418605 1

1 0 0.0828919609
0 1 -0.9209446408
0 0 1

Inversa de la diagonal de la matriz G


0.8333333333 0 0
0 0.1162790698 0
0 0 -0.0918648021

Los valores nuevos los hallamos con los despejes


Tomamos como valores iniciales para x,y,z=0 obtenidos

Valores Iniciales Valores Nuevos


x y z x
0.00000 0.00000 0.00000 2.66667
2.66667 0.46875 -1.13514 7.10417
7.10417 -2.38429 0.65175 -4.11146
-4.11146 -5.17915 7.65106 -31.28241
-31.28241 8.00242 1.04806 15.43998
15.43998 27.42006 -37.05774 171.76815
171.76815 -32.24566 -18.16603 -5.81272
-5.81272 -154.11133 183.15278 -870.27708
-870.27708 102.67315 164.60967 -299.53352
-299.53352 822.21392 -867.58015 4322.13329
4322.13329 -207.70179 -1171.29306 3198.75002
3198.75002 -4268.58065 3967.08213 -20766.33119
-20766.33119 -590.96420 7495.40020 -24290.07902
-24290.07902 21503.99205 -17306.35313 96371.90623
96371.90623 11301.22282 -44837.51898 160854.12918
160854.12918 -105133.25910 70824.56389 -428639.59018
-428639.59018 -98094.65318 255614.96639 -984332.78607
-984332.78607 497460.57386 -262016.97582 1802809.48984
1802809.48984 691334.73859 -1402556.07250 5707220.03405
5707220.03405 -2266227.95182 793111.82142 -6977881.35303
-6977881.35303 -4394125.77984 7447198.51659 -31750444.31918
-31750444.31918 9843912.07231 -1165759.14387 23282250.83822
23282250.83822 26170128.31788 -38367963.65347 170641480.56729

Rpta:Se uede observar una incompatibilidad entre el metodo usado y el sistema de ecuacion lineal propuesto, esto se nota en los valores q
que aumentan las Iteraciones
Calculamos los errores con la
siguiente formula

ores nuevos los hallamos con los despejes 𝐸𝑟𝑟𝑜𝑟=|((𝑋2−𝑋1))/𝑋2|∗100


obtenidos

Valores Nuevos Errores Porcentuales


y z x y z
0.46875 -1.13514 100.0000 100.0000 100.0000
-2.38429 0.65175 62.4633 119.6599 274.1685
-5.17915 7.65106 272.7893 53.9637 91.4816
8.00242 1.04806 86.8569 164.7198 630.0185
27.42006 -37.05774 302.6065 70.8154 102.8282
-32.24566 -18.16603 91.0111 185.0349 103.9947
-154.11133 183.15278 3055.0405 79.0764 109.9185
102.67315 164.60967 99.3321 250.0990 11.2649
822.21392 -867.58015 190.5441 87.5126 118.9734
-207.70179 -1171.29306 106.9302 495.8627 25.9297
-4268.58065 3967.08213 35.1194 95.1342 129.5253
-590.96420 7495.40020 115.4035 622.3078 47.0731
21503.99205 -17306.35313 14.5069 102.7482 143.3101
11301.22282 -44837.51898 125.2045 90.2802 61.4021
-105133.25910 70824.56389 40.0874 110.7494 163.3079
-98094.65318 255614.96639 137.5267 7.1753 72.2925
497460.57386 -262016.97582 56.4538 119.7191 197.5566
691334.73859 -1402556.07250 154.5999 28.0435 81.3186
-2266227.95182 793111.82142 68.4118 130.5060 276.8422
-4394125.77984 7447198.51659 181.7902 48.4260 89.3502
9843912.07231 -1165759.14387 78.0227 144.6380 738.8282
26170128.31788 -38367963.65347 236.3719 62.3849 96.9616
-40027379.36690 -8863331.78946 86.3560 165.3806 332.8842

eal propuesto, esto se nota en los valores que toman x,y,z a medida
METODO DE ELIMINACION DE GAUSS

73x  25 y  32 z  13

21x  34 y  12 z  51
 3x  17 y  25 z  30

X Y Z
73 25 32 13
21 34 12 51
3 17 -25 30

73 25 32 13
0 -1957 -204 -3450
0 -1166 1921 -2151

73 25 32 13
0 -1957 -204 -3450
0 0 3997261 -186807

Z -0.0467338
Y 1.76777398
X -0.4068338

METODO DE GAUSS-JORDAN

73 25 32 13
21 34 12 51
3 17 -25 30

73 25 32 13
-3.5527E-15 26.808219178 2.79452055 47.260274
0 15.97260274 -26.315068 29.4657534

73 0 29.3939704 -31.07256
-3.5527E-15 26.808219178 2.79452055 47.260274
2.1167E-15 -5.329071E-15 -27.980072 1.30761369

73 -5.598361E-15 3.5527E-15 -29.69887


-3.3413E-15 26.808219178 -1.7764E-15 47.3908724
2.1167E-15 -5.329071E-15 -27.980072 1.30761369

1 0 4.8667E-17 -0.4068338
-1.2464E-16 1 -6.6262E-17 1.76777398
-7.5652E-17 0 1 -0.0467338

Z -0.0467338
Y 1.76777398
X -0.4068338

METODO DE GAUSS-SEIDEL
1 0 0
-0.2876712 1 0
-0.0410959 0 1

1 -0.9325498 0
0 1 0
0 -0.5958099 1

1 0 1.05053235
0 1 0.09987539
0 0 1

0.01369863 0 0
0 0.03730199 0
0 0 -0.0357397
METODO DE ELIMINACION DE GAUSS

1.2 x  2.4 y  3.7 z  3.2



2.7 x  3.2 y  1.7 z  1.5
3.2 x  4.1y  3.7 z  4.2

X Y Z
1.2 -2.4 3.7 3.2
2.7 3.2 -1.7 1.5
3.2 -4.1 -3.7 4.2

1.2 -2.4 3.7 3.2


0 -10.32 12.03 6.84
0 -2.76 16.28 5.2

1.2 -2.4 3.7 3.2


0 -10.32 12.03 6.84
0 0 134.8068 34.7856

Z 0.2580404
Y -0.3619936
X 1.1470549

METODO DE GAUSS-JORDAN

1.2 -2.4 3.7 3.2


2.7 3.2 -1.7 1.5
3.2 -4.1 -3.7 4.2

1.2 -2.4 3.7 3.2


-4.4409E-16 8.6 -10.025 -5.7
0 2.3 -13.566667 -4.3333333

1.2 0 0.90232558 1.60930233


-4.4409E-16 8.6 -10.025 -5.7
1.1877E-16 -4.4409E-16 -10.885562 -2.8089147

1.2 -3.6811E-17 0 1.37646588


-5.5347E-16 8.6 -1.7764E-15 -3.113145
1.1877E-16 -4.4409E-16 -10.885562 -2.8089147

1 0 0 1.1470549
-6.4357E-17 1 -2.0655E-16 -0.3619936
-1.0911E-17 0 1 0.2580404

Z 0.2580404
Y -0.3619936
X 1.1470549

METODO DE GAUSS-SEIDEL
1 0 0
-2.25 1 0
-2.6666667 0 1

1 0.27906977 0
0 1 0
0 -0.2674419 1

1 0 0.08289196
0 1 -0.9209446
0 0 1

0.83333333 0 0
0 0.11627907 0
0 0 -0.0918648

S-ar putea să vă placă și