Está en la página 1de 14

fmsl([0.098,1.002,1;2.002,3.001,1.001;3.002,4,3],[2;2;1],0,0,[0,0,0],25,[],0.

8)
Grafica R2(1), Grafica R3(2): 2
METODO DE GAUSS
Sistema original
0.098 1.002 1 | 2
2.002 3.001 1.001 | 2
3.002 4 3 | 1
Paso 1
0.098 1.002 1 | 2
0 -17.4684 -19.4276 | -38.8571
3.002 4 3 | 1
Paso 2
0.098 1.002 1 | 2
0 -17.4684 -19.4276 | -38.8571
0 -26.6939 -27.6327 | -60.2653
Paso 3
0.098 1.002 1 | 2
0 -17.4684 -19.4276 | -38.8571
0 0 2.05508 | -0.886788
Resultados

h =

0.0980 1.0020 1.0000 2.0000


0 -17.4684 -19.4276 -38.8571
0 0 2.0551 -0.8868

x1 = -2.8390
x2 = 2.7043
x3 = -0.4315
Representacion grafica de solucion del sistema R3
fmsl([0.098,1.002,1;2.002,3.001,-1.001;3.002,4,3],[2;2;1],0,0,[0,0,0],25,[],0.8)
Grafica R2(1), Grafica R3(2): 2
METODO DE GAUSS
Sistema original
0.098 1.002 1 | 2
2.002 3.001 -1.001 | 2
3.002 4 3 | 1
Paso 1
0.098 1.002 1 | 2
0 -17.4684 -21.4296 | -38.8571
3.002 4 3 | 1
Paso 2
0.098 1.002 1 | 2
0 -17.4684 -21.4296 | -38.8571
0 -26.6939 -27.6327 | -60.2653
Paso 3
0.098 1.002 1 | 2
0 -17.4684 -21.4296 | -38.8571
0 0 5.11438 | -0.886788
Resultados

h =

0.0980 1.0020 1.0000 2.0000


0 -17.4684 -21.4296 -38.8571
0 0 5.1144 -0.8868

x1 = -2.7410
x2 = 2.4371
x3 = -0.1734
Representacion grafica de solucion del sistema R3
fmsl([0.098,1.002,1;2.002,3.001,-1.001;3.002,4,3],[2;2;1],4,0,[0,0,0],25,[],0.8)
Grafica R2(1), Grafica R3(2): 2
METODO DE LA INVERSA

Q =

0.0980 1.0020 1.0000


2.0020 3.0010 -1.0010
3.0020 4.0000 3.0000

Q =

0.0980 1.0020 1.0000


2.0020 3.0010 -1.0010
3.0020 4.0000 3.0000

Q =

0.0980 1.0020 1.0000


2.0020 3.0010 -1.0010
3.0020 4.0000 3.0000

Q =

0.0980 1.0020 1.0000


2.0020 3.0010 -1.0010
3.0020 4.0000 3.0000

Q =

0.0980 1.0020 1.0000


2.0020 3.0010 -1.0010
3.0020 4.0000 3.0000

Q =

0.0980 1.0020 1.0000


2.0020 3.0010 -1.0010
3.0020 4.0000 3.0000

Q =

0.0980 1.0020 1.0000


2.0020 3.0010 -1.0010
3.0020 4.0000 3.0000

Q =

0.0980 1.0020 1.0000


2.0020 3.0010 -1.0010
3.0020 4.0000 3.0000

Q =

0.0980 1.0020 1.0000


2.0020 3.0010 -1.0010
3.0020 4.0000 3.0000

m =

n =

1 0 0
0 1 0
0 0 1

matriz =

0.0980 1.0020 1.0000 1.0000 0 0


2.0020 3.0010 -1.0010 0 1.0000 0
3.0020 4.0000 3.0000 0 0 1.0000

determinante: -8.76

matriz =

0.0980 1.0020 1.0000 1.0000 0 0


2.0020 3.0010 -1.0010 0 1.0000 0
3.0020 4.0000 3.0000 0 0 1.0000

Proceso para diagonal inferior

matriz =

1.0000 10.2245 10.2041 10.2041 0 0


2.0020 3.0010 -1.0010 0 1.0000 0
3.0020 4.0000 3.0000 0 0 1.0000

matriz =

1.0000 10.2245 10.2041 10.2041 0 0


0 -17.4684 -21.4296 -20.4286 1.0000 0
3.0020 4.0000 3.0000 0 0 1.0000

matriz =

1.0000 10.2245 10.2041 10.2041 0 0


0 -17.4684 -21.4296 -20.4286 1.0000 0
0 -26.6939 -27.6327 -30.6327 0 1.0000
matriz =

1.0000 10.2245 10.2041 10.2041 0 0


0 1.0000 1.2268 1.1695 -0.0572 0
0 -26.6939 -27.6327 -30.6327 0 1.0000

matriz =

1.0000 10.2245 10.2041 10.2041 0 0


0 1.0000 1.2268 1.1695 -0.0572 0
0 0 5.1144 0.5847 -1.5281 1.0000

matriz =

1.0000 10.2245 10.2041 10.2041 0 0


0 1.0000 1.2268 1.1695 -0.0572 0
0 0 1.0000 0.1143 -0.2988 0.1955

para diagonal superior


Su matriz final es

o =

1.0000 0 0 -1.4856 -0.1135 0.4573


0 1.0000 0 1.0292 0.3093 -0.2399
0 0 1.0000 0.1143 -0.2988 0.1955

xi =

-2.7410
2.4371
-0.1734

Resultados =

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


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

-2.741 -2.741 -4.4409e-16 1.6202e-16 0


0
2.4371 2.4371 -3.1086e-15 1.1341e-15 0
0
-0.17339 -0.17339 2.6923e-15 -9.8225e-16 0
0

Representacion grafica de solucion del sistema R3


disp(' m�todo LU y el de Gauss-Seidel considerar x3 = 0.')
m�todo LU y el de Gauss-Seidel considerar x3 = 0.
fmsl([0.098,1.002,1;2.002,3.001,-1.001;3.002,4,0],[2;2;1],3,0,[0,0,0],25,[],0.8)
{#Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('fmsl',
'C:\Users\User\Pictures\proyecto\fmsl.m', 11)" style="font-weight:bold">fmsl</a>
(<a href="matlab: opentoline('C:\Users\User\Pictures\proyecto\fmsl.m',11,0)">line
11</a>)
El determinante de la matriz A es cero, no se puede resolver
}#
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

det(A)

ans =

-3.6196

fmsl([0.098,1.002,1;2.002,3.001,-1.001;3.002,4,0],[2;2;1],3,0,[0,0,0],25,[],0.8)
{#Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('fmsl',
'C:\Users\User\Pictures\proyecto\fmsl.m', 11)" style="font-weight:bold">fmsl</a>
(<a href="matlab: opentoline('C:\Users\User\Pictures\proyecto\fmsl.m',11,0)">line
11</a>)
El determinante de la matriz A es cero, no se puede resolver
}#
fmsl([A],[2;2;1],3,0,[0,0,0],25,[],0.8)
{#Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('fmsl',
'C:\Users\User\Pictures\proyecto\fmsl.m', 11)" style="font-weight:bold">fmsl</a>
(<a href="matlab: opentoline('C:\Users\User\Pictures\proyecto\fmsl.m',11,0)">line
11</a>)
El determinante de la matriz A es cero, no se puede resolver
}#
fmsl([0.098,1.002,1;2.002,3.001,-1.001;3.002,4,0],[2;2;1],3,0,[0,0,0],25,[],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 =

-3.3164
2.7389
-0.4194
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>

-3.3164 -3.3164 -2.0872e-14 6.2937e-15 0


0
2.7389 2.7389 1.2434e-14 -3.7494e-15 0
0
-0.41941 -0.41941 -1.0492e-14 3.1636e-15 0
0

x1 = -3.3164
x2 = 2.7389
x3 = -0.4194
Representacion grafica de solucion del sistema R3
disp('Metodo de gauss seidel')
Metodo de gauss seidel
fmsl([0.098,1.002,1;2.002,3.001,-1.001;3.002,4,0],[2;2;1],2,0,[0,0,0],25,[],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 =

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


x2' 'Ea (%) de x3'
[ 0] [ 0] [ 0] [ 0] [
0] [ 0]
[ 61.2245] [ -137.0969] [ -871.6978] [ 100]
[ 100] [ 100]
[3.0829e+04] [-6.9136e+04] [-4.3510e+05] [ 99.8014]
[ 99.8017] [ 99.7997]
[1.5378e+07] [-3.4486e+07] [-2.1703e+08] [ 99.7995]
[ 99.7995] [ 99.7995]
[7.6708e+09] [-1.7202e+10] [-1.0825e+11] [ 99.7995]
[ 99.7995] [ 99.7995]
[3.8262e+12] [-8.5803e+12] [-5.3997e+13] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.9085e+15] [-4.2799e+15] [-2.6934e+16] [ 99.7995]
[ 99.7995] [ 99.7995]
[9.5197e+17] [-2.1348e+18] [-1.3435e+19] [ 99.7995]
[ 99.7995] [ 99.7995]
[4.7485e+20] [-1.0648e+21] [-6.7013e+21] [ 99.7995]
[ 99.7995] [ 99.7995]
[2.3685e+23] [-5.3115e+23] [-3.3426e+24] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.1814e+26] [-2.6494e+26] [-1.6673e+27] [ 99.7995]
[ 99.7995] [ 99.7995]
[5.8930e+28] [-1.3215e+29] [-8.3166e+29] [ 99.7995]
[ 99.7995] [ 99.7995]
[2.9395e+31] [-6.5917e+31] [-4.1483e+32] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.4662e+34] [-3.2880e+34] [-2.0692e+35] [ 99.7995]
[ 99.7995] [ 99.7995]
[7.3135e+36] [-1.6401e+37] [-1.0321e+38] [ 99.7995]
[ 99.7995] [ 99.7995]
[3.6480e+39] [-8.1806e+39] [-5.1482e+40] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.8196e+42] [-4.0805e+42] [-2.5679e+43] [ 99.7995]
[ 99.7995] [ 99.7995]
[9.0763e+44] [-2.0354e+45] [-1.2809e+46] [ 99.7995]
[ 99.7995] [ 99.7995]
[4.5273e+47] [-1.0152e+48] [-6.3891e+48] [ 99.7995]
[ 99.7995] [ 99.7995]
[2.2582e+50] [-5.0641e+50] [-3.1869e+51] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.1264e+53] [-2.5260e+53] [-1.5896e+54] [ 99.7995]
[ 99.7995] [ 99.7995]
[5.6185e+55] [-1.2600e+56] [-7.9292e+56] [ 99.7995]
[ 99.7995] [ 99.7995]
[2.8025e+58] [-6.2847e+58] [-3.9551e+59] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.3979e+61] [-3.1348e+61] [-1.9728e+62] [ 99.7995]
[ 99.7995] [ 99.7995]
[6.9728e+63] [-1.5637e+64] [-9.8404e+64] [ 99.7995]
[ 99.7995] [ 99.7995]

xn =

1.0e+64 *

0.6973
-1.5637
-9.8404

El error relativo

tabla =

<strong> errorRelativo </strong>


<strong>_________________________________________</strong>

2.1025e+63 0 0
-4.715e+63 0 0
-2.9672e+64 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>

-3.3164 6.9728e+63 2.1025e+63 0 0


-6.9728e+63
2.7389 -1.5637e+64 -4.715e+63 0 0
1.5637e+64
-0.41941 -9.8404e+64 -2.9672e+64 0 0
9.8404e+64

Representacion grafica de solucion del sistema R3


fmsl([0.098,1.002,1;2.002,3.001,-1.001;3.002,4,0],[2;2;1],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 =

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


x2' 'Ea (%) de x3'
[ 0] [ 0] [ 0] [ 0] [
0] [ 0]
[ 61.2245] [ -137.0969] [ -871.6978] [ 100]
[ 100] [ 100]
[3.0829e+04] [-6.9136e+04] [-4.3510e+05] [ 99.8014]
[ 99.8017] [ 99.7997]
[1.5378e+07] [-3.4486e+07] [-2.1703e+08] [ 99.7995]
[ 99.7995] [ 99.7995]
[7.6708e+09] [-1.7202e+10] [-1.0825e+11] [ 99.7995]
[ 99.7995] [ 99.7995]
[3.8262e+12] [-8.5803e+12] [-5.3997e+13] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.9085e+15] [-4.2799e+15] [-2.6934e+16] [ 99.7995]
[ 99.7995] [ 99.7995]
[9.5197e+17] [-2.1348e+18] [-1.3435e+19] [ 99.7995]
[ 99.7995] [ 99.7995]
[4.7485e+20] [-1.0648e+21] [-6.7013e+21] [ 99.7995]
[ 99.7995] [ 99.7995]
[2.3685e+23] [-5.3115e+23] [-3.3426e+24] [ 99.7995]
[ 99.7995] [ 99.7995]

xn =

1.0e+24 *

0.2369
-0.5311
-3.3426

El error relativo

tabla =

<strong> errorRelativo </strong>


<strong>_________________________________________</strong>

7.142e+22 0 0
-1.6016e+23 0 0
-1.0079e+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>

-3.3164 2.3685e+23 7.142e+22 0 0


-2.3685e+23
2.7389 -5.3115e+23 -1.6016e+23 0 0
5.3115e+23
-0.41941 -3.3426e+24 -1.0079e+24 0 0
3.3426e+24

Representacion grafica de solucion del sistema R3


fmsl([0.098,1.002,1;2.002,3.001,-1.001;3.002,4,0],[2;2;1],2,0,[0,0,0],5,[],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 =

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


x2' 'Ea (%) de x3'
[ 0] [ 0] [ 0] [ 0] [
0] [ 0]
[ 61.2245] [ -137.0969] [ -871.6978] [ 100]
[ 100] [ 100]
[3.0829e+04] [-6.9136e+04] [-4.3510e+05] [ 99.8014]
[ 99.8017] [ 99.7997]
[1.5378e+07] [-3.4486e+07] [-2.1703e+08] [ 99.7995]
[ 99.7995] [ 99.7995]
[7.6708e+09] [-1.7202e+10] [-1.0825e+11] [ 99.7995]
[ 99.7995] [ 99.7995]

xn =

1.0e+11 *

0.0767
-0.1720
-1.0825

El error relativo

tabla =

<strong> errorRelativo </strong>


<strong>_________________________________________</strong>

2.313e+09 0 0
-5.1869e+09 0 0
-3.2642e+10 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>

-3.3164 7.6708e+09 2.313e+09 0 0


-7.6708e+09
2.7389 -1.7202e+10 -5.1869e+09 0 0
1.7202e+10
-0.41941 -1.0825e+11 -3.2642e+10 0 0
1.0825e+11

Representacion grafica de solucion del sistema R3


fmsl([0.098,1.002,1;2.002,3.001,-1.001;3.002,4,0],[2;2;1],2,0,[0,0,0],8,[],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 =

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


x2' 'Ea (%) de x3'
[ 0] [ 0] [ 0] [ 0] [
0] [ 0]
[ 61.2245] [ -137.0969] [ -871.6978] [ 100]
[ 100] [ 100]
[3.0829e+04] [-6.9136e+04] [-4.3510e+05] [ 99.8014]
[ 99.8017] [ 99.7997]
[1.5378e+07] [-3.4486e+07] [-2.1703e+08] [ 99.7995]
[ 99.7995] [ 99.7995]
[7.6708e+09] [-1.7202e+10] [-1.0825e+11] [ 99.7995]
[ 99.7995] [ 99.7995]
[3.8262e+12] [-8.5803e+12] [-5.3997e+13] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.9085e+15] [-4.2799e+15] [-2.6934e+16] [ 99.7995]
[ 99.7995] [ 99.7995]
[9.5197e+17] [-2.1348e+18] [-1.3435e+19] [ 99.7995]
[ 99.7995] [ 99.7995]

xn =

1.0e+19 *

0.0952
-0.2135
-1.3435

El error relativo

tabla =

<strong> errorRelativo </strong>


<strong>_________________________________________</strong>

2.8705e+17 0 0
-6.4372e+17 0 0
-4.051e+18 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>

-3.3164 9.5197e+17 2.8705e+17 0 0


-9.5197e+17
2.7389 -2.1348e+18 -6.4372e+17 0 0
2.1348e+18
-0.41941 -1.3435e+19 -4.051e+18 0 0
1.3435e+19

Representacion grafica de solucion del sistema R3


fmsl([0.098,1.002,1;2.002,3.001,-1.001;3.002,4,0],[2;2;1],2,0,[0,0,0],50,[],0.8)
Grafica R2(1), Grafica R3(2): 2
METODO DE GAUSS SEIDEL
Solución por número máximo de iteraciones para converger
{#Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('gt')"
style="font-weight:bold"> > </a>
Matrix dimensions must agree.

Error in <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('fmsl/gausssei
del', 'C:\Users\User\Pictures\proyecto\fmsl.m', 194)" style="font-
weight:bold">fmsl/gaussseidel</a> (<a href="matlab:
opentoline('C:\Users\User\Pictures\proyecto\fmsl.m',194,0)">line 194</a>)
if any(ea(i+1,:) > Ec) %validamos si al menos valor de error
absoluto es mayor al error de
carreo

Error in <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('fmsl',
'C:\Users\User\Pictures\proyecto\fmsl.m', 442)" style="font-weight:bold">fmsl</a>
(<a href="matlab: opentoline('C:\Users\User\Pictures\proyecto\fmsl.m',442,0)">line
442</a>)
gaussseidel() %se resuelve el sistema de ecuaciones por el metodo de
gauss-seidel
}#
fmsl([0.098,1.002,1;2.002,3.001,-1.001;3.002,4,0],[2;2;1],2,0,[0,0,0],30,[],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 =

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


x2' 'Ea (%) de x3'
[ 0] [ 0] [ 0] [ 0] [
0] [ 0]
[ 61.2245] [ -137.0969] [ -871.6978] [ 100]
[ 100] [ 100]
[3.0829e+04] [-6.9136e+04] [-4.3510e+05] [ 99.8014]
[ 99.8017] [ 99.7997]
[1.5378e+07] [-3.4486e+07] [-2.1703e+08] [ 99.7995]
[ 99.7995] [ 99.7995]
[7.6708e+09] [-1.7202e+10] [-1.0825e+11] [ 99.7995]
[ 99.7995] [ 99.7995]
[3.8262e+12] [-8.5803e+12] [-5.3997e+13] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.9085e+15] [-4.2799e+15] [-2.6934e+16] [ 99.7995]
[ 99.7995] [ 99.7995]
[9.5197e+17] [-2.1348e+18] [-1.3435e+19] [ 99.7995]
[ 99.7995] [ 99.7995]
[4.7485e+20] [-1.0648e+21] [-6.7013e+21] [ 99.7995]
[ 99.7995] [ 99.7995]
[2.3685e+23] [-5.3115e+23] [-3.3426e+24] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.1814e+26] [-2.6494e+26] [-1.6673e+27] [ 99.7995]
[ 99.7995] [ 99.7995]
[5.8930e+28] [-1.3215e+29] [-8.3166e+29] [ 99.7995]
[ 99.7995] [ 99.7995]
[2.9395e+31] [-6.5917e+31] [-4.1483e+32] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.4662e+34] [-3.2880e+34] [-2.0692e+35] [ 99.7995]
[ 99.7995] [ 99.7995]
[7.3135e+36] [-1.6401e+37] [-1.0321e+38] [ 99.7995]
[ 99.7995] [ 99.7995]
[3.6480e+39] [-8.1806e+39] [-5.1482e+40] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.8196e+42] [-4.0805e+42] [-2.5679e+43] [ 99.7995]
[ 99.7995] [ 99.7995]
[9.0763e+44] [-2.0354e+45] [-1.2809e+46] [ 99.7995]
[ 99.7995] [ 99.7995]
[4.5273e+47] [-1.0152e+48] [-6.3891e+48] [ 99.7995]
[ 99.7995] [ 99.7995]
[2.2582e+50] [-5.0641e+50] [-3.1869e+51] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.1264e+53] [-2.5260e+53] [-1.5896e+54] [ 99.7995]
[ 99.7995] [ 99.7995]
[5.6185e+55] [-1.2600e+56] [-7.9292e+56] [ 99.7995]
[ 99.7995] [ 99.7995]
[2.8025e+58] [-6.2847e+58] [-3.9551e+59] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.3979e+61] [-3.1348e+61] [-1.9728e+62] [ 99.7995]
[ 99.7995] [ 99.7995]
[6.9728e+63] [-1.5637e+64] [-9.8404e+64] [ 99.7995]
[ 99.7995] [ 99.7995]
[3.4781e+66] [-7.7996e+66] [-4.9084e+67] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.7349e+69] [-3.8904e+69] [-2.4483e+70] [ 99.7995]
[ 99.7995] [ 99.7995]
[8.6535e+71] [-1.9406e+72] [-1.2212e+73] [ 99.7995]
[ 99.7995] [ 99.7995]
[4.3164e+74] [-9.6796e+74] [-6.0915e+75] [ 99.7995]
[ 99.7995] [ 99.7995]
[2.1530e+77] [-4.8282e+77] [-3.0385e+78] [ 99.7995]
[ 99.7995] [ 99.7995]

xn =
1.0e+78 *

0.2153
-0.4828
-3.0385

El error relativo

tabla =

<strong> errorRelativo </strong>


<strong>_________________________________________</strong>

6.4921e+76 0 0
-1.4559e+77 0 0
-9.1621e+77 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>

-3.3164 2.153e+77 6.4921e+76 0 0


-2.153e+77
2.7389 -4.8282e+77 -1.4559e+77 0 0
4.8282e+77
-0.41941 -3.0385e+78 -9.1621e+77 0 0
3.0385e+78

Representacion grafica de solucion del sistema R3


fmsl([0.098,1.002,1;2.002,3.001,-1.001;3.002,4,0],[2;2;1],2,0,[0,0,0],15,[],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 =

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


x2' 'Ea (%) de x3'
[ 0] [ 0] [ 0] [ 0] [
0] [ 0]
[ 61.2245] [ -137.0969] [ -871.6978] [ 100]
[ 100] [ 100]
[3.0829e+04] [-6.9136e+04] [-4.3510e+05] [ 99.8014]
[ 99.8017] [ 99.7997]
[1.5378e+07] [-3.4486e+07] [-2.1703e+08] [ 99.7995]
[ 99.7995] [ 99.7995]
[7.6708e+09] [-1.7202e+10] [-1.0825e+11] [ 99.7995]
[ 99.7995] [ 99.7995]
[3.8262e+12] [-8.5803e+12] [-5.3997e+13] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.9085e+15] [-4.2799e+15] [-2.6934e+16] [ 99.7995]
[ 99.7995] [ 99.7995]
[9.5197e+17] [-2.1348e+18] [-1.3435e+19] [ 99.7995]
[ 99.7995] [ 99.7995]
[4.7485e+20] [-1.0648e+21] [-6.7013e+21] [ 99.7995]
[ 99.7995] [ 99.7995]
[2.3685e+23] [-5.3115e+23] [-3.3426e+24] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.1814e+26] [-2.6494e+26] [-1.6673e+27] [ 99.7995]
[ 99.7995] [ 99.7995]
[5.8930e+28] [-1.3215e+29] [-8.3166e+29] [ 99.7995]
[ 99.7995] [ 99.7995]
[2.9395e+31] [-6.5917e+31] [-4.1483e+32] [ 99.7995]
[ 99.7995] [ 99.7995]
[1.4662e+34] [-3.2880e+34] [-2.0692e+35] [ 99.7995]
[ 99.7995] [ 99.7995]
[7.3135e+36] [-1.6401e+37] [-1.0321e+38] [ 99.7995]
[ 99.7995] [ 99.7995]

xn =

1.0e+38 *

0.0731
-0.1640
-1.0321

El error relativo

tabla =

<strong> errorRelativo </strong>


<strong>_________________________________________</strong>

2.2053e+36 0 0
-4.9453e+36 0 0
-3.1122e+37 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>

-3.3164 7.3135e+36 2.2053e+36 0 0


-7.3135e+36
2.7389 -1.6401e+37 -4.9453e+36 0 0
1.6401e+37
-0.41941 -1.0321e+38 -3.1122e+37 0 0
1.0321e+38

Representacion grafica de solucion del sistema R3


diary off

También podría gustarte