Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

a=[0.098,1.002,1;2.002,3.001,-1.001;3.

002,4,0]

a =

0.0980 1.0020 1.0000


2.0020 3.0010 -1.0010
3.0020 4.0000 0

b=[2;2;1.8867]

b =

2.0000
2.0000
1.8867

fmsl(a,b,2,0,[0,0,0],10,[],0.8)
Grafica R2(1), Grafica R3(2): 2
METODO DE GAUSS SEIDEL
Solución por número máximo de iteraciones para converger

M =

Columns 1 through 5

'x1' 'x2' 'x3' 'Ea (%) de x1' 'Ea (%) de


x2'
[ 0] [ 0] [ 0] [ 0] [
0]
[ 61.2245] [ -136.4319] [ -865.7165] [ 100]
[ 100]
[3.0625e+04] [-6.8678e+04] [-4.3222e+05] [ 99.8001]
[ 99.8013]
[1.5277e+07] [-3.4258e+07] [-2.1559e+08] [ 99.7995]
[ 99.7995]
[7.6200e+09] [-1.7088e+10] [-1.0754e+11] [ 99.7995]
[ 99.7995]
[3.8009e+12] [-8.5234e+12] [-5.3640e+13] [ 99.7995]
[ 99.7995]
[1.8959e+15] [-4.2515e+15] [-2.6756e+16] [ 99.7995]
[ 99.7995]
[9.4567e+17] [-2.1207e+18] [-1.3346e+19] [ 99.7995]
[ 99.7995]
[4.7170e+20] [-1.0578e+21] [-6.6569e+21] [ 99.7995]
[ 99.7995]
[2.3529e+23] [-5.2763e+23] [-3.3205e+24] [ 99.7995]
[ 99.7995]

Column 6

'Ea (%) de x3'


[ 0]
[ 100]
[ 99.7997]
[ 99.7995]
[ 99.7995]
[ 99.7995]
[ 99.7995]
[ 99.7995]
[ 99.7995]
[ 99.7995]

xn =

1.0e+24 *

0.2353
-0.5276
-3.3205

El error relativo

tabla =

<strong> errorRelativo </strong>


<strong>_________________________________________</strong>

1.0074e+23 0 0
-2.2592e+23 0 0
-1.4217e+24 0 0

El error absoluto

Resultados =

<strong> vt </strong><strong> ve </strong><strong>


errorRelativo </strong><strong> errorAbsoluto</strong>
<strong>___________</strong> <strong>___________</strong>
<strong>_________________________________________</strong>
<strong>_____________</strong>

-2.3355 2.3529e+23 1.0074e+23 0 0


-2.3529e+23
2.2245 -5.2763e+23 -2.2592e+23 0 0
5.2763e+23
-4.1703e-05 -3.3205e+24 -1.4217e+24 0 0
3.3205e+24

Representacion grafica de solucion del sistema R3


fmsl(a,b,3,0,[0,0,0],10,[],0.8)
Grafica R2(1), Grafica R3(2): 2
METODO DE LU

L =

1.0000 0 0
30.6327 1.0000 0
20.4286 0.6544 1.0000

U =

0.0980 1.0020 1.0000


0 -26.6939 -30.6327
0 0 -1.3836
x =

-2.3355
2.2245
-0.0000

El error relativo
El error absoluto

Resultados =

<strong> vt </strong><strong> ve </strong><strong>


errorAbsoluto</strong><strong> errorRelativo
</strong>
<strong>___________</strong> <strong>___________</strong>
<strong>_____________</strong>
<strong>_________________________________________</strong>

-2.3355 -2.3355 -1.2434e-14 5.3241e-15 0


0
2.2245 2.2245 8.8818e-15 -3.8029e-15 0
0
-4.1703e-05 -4.1703e-05 -7.7834e-15 3.3326e-15 0
0

x1 = -2.3355
x2 = 2.2245
x3 = -0.0000
Representacion grafica de solucion del sistema R3
diary off

You might also like