Taller 2 Métodos Numéricos

Descargar como xlsx, pdf o txt
Descargar como xlsx, pdf o txt
Está en la página 1de 8

Sea f(x) = (4x + 1)^1/2 y el polinomio de Maclaurin de orden 2, P2,0(x) = 1 + 2

1.1 Hacer las gráficas de f(x), P2,0(x) y de los errores relativo y absoluto
x f(x) P2,0 E.abs E.rel%
-0.25 0.0000 0.375 0.375 -
-0.2 0.4472 0.52 0.073 -16.28% Gráfica de f(x) = (
-0.15 0.6325 0.655 0.023 -3.56% Polinomio de Mac
-0.1 0.7746 0.78 0.005 -0.70% 3.0000
-0.05 0.8944 0.895 0.001 -0.06%
2.5000
0 1.0000 1 0.000 0.00%
0.05 1.0954 1.095 0.000 0.04% 2.0000
0.1 1.1832 1.18 0.003 0.27% 1.5000
0.15 1.2649 1.255 0.010 0.78%
1.0000

x
0.2 1.3416 1.32 0.022 1.61%
0.25 1.4142 1.375 0.039 2.77% 0.5000
0.3 1.4832 1.42 0.063 4.26%
0.0000
0.35 1.5492 1.455 0.094 6.08% 0 15 0.
3
-0.5000 0.
0.4 1.6125 1.48 0.132 8.21%
0.45 1.6733 1.495 0.178 10.66% -1.0000
0.5 1.7321 1.5 0.232 13.40%
0.55 1.7889 1.495 0.294 16.43%
0.6 1.8439 1.48 0.364 19.74%
0.65 1.8974 1.455 0.442 23.31%
0.7 1.9494 1.42 0.529 27.16%
0.75 2.0000 1.375 0.625 31.25% Gráfica del error
0.8 2.0494 1.32 0.729 35.59% linomio de
0.85 2.0976 1.255 0.843 40.17% 3.500
0.9 2.1448 1.18 0.965 44.98%
3.000
0.95 2.1909 1.095 1.096 50.02%
1 2.2361 1 1.236 55.28% 2.500
1.05 2.2804 0.895 1.385 60.75%
2.000
1.1 2.3238 0.78 1.544 66.43%
x

1.15 2.3664 0.655 1.711 72.32% 1.500


1.2 2.4083 0.52 1.888 78.41%
1.000
1.25 2.4495 0.375 2.074 84.69%
1.3 2.4900 0.22 2.270 91.16% 0.500
1.35 2.5298 0.055 2.475 97.83% 0.000
1.4 2.5690 -0.12 2.689 104.67% 0 .1 .2 .3 .4
0 0 0 0
1.45 2.6077 -0.305 2.913 111.70%
1.5 2.6458 -0.5 3.146 118.90% E

1.2 Graficar R2,0(x). ¿Cuál es el intervalo para γ?

x R2,0(x) R2,0(x) - E.abs


-0.25 - - Gráfico del residuo R2,0
-0.2 -0.0320 -0.1048
16.0000
-0.15 -0.0135 -0.0360
-0.1 -0.0040 -0.0094 14.0000
-0.05 -0.0005 -0.0011 12.0000

10.0000

8.0000

6.0000
16.0000

14.0000

12.0000
0 0.0000 0.0000 10.0000
0.05 0.0005 0.0001
8.0000
0.1 0.0040 0.0008
0.15 0.0135 0.0036 6.0000
0.2 0.0320 0.0104 4.0000
0.25 0.0625 0.0233
2.0000
0.3 0.1080 0.0448
0.35 0.1715 0.0773 0.0000
0 1 2 3 4 5 6 7 8
0.4 0.2560 0.1235 0. 0. 0. 0. 0. 0. 0. 0.

0.45 0.3645 0.1862 ´


0.5 0.5000 0.2679
0.55 0.6655 0.3716
0.6 0.8640 0.5001
0.65 1.0985 0.6561
0.7 1.3720 0.8426
0.75 1.6875 1.0625
0.8 2.0480 1.3186
0.85 2.4565 1.6139
0.9 2.9160 1.9512
0.95 3.4295 2.3336
1 4.0000 2.7639
1.05 4.6305 3.2451
1.1 5.3240 3.7802
1.15 6.0835 4.3721
1.2 6.9120 5.0237
1.25 7.8125 5.7380
1.3 8.7880 6.5180
1.35 9.8415 7.3667
1.4 10.9760 8.2870
1.45 12.1945 9.2818
1.5 13.5000 10.3542
de orden 2, P2,0(x) = 1 + 2x - 2x^2

s errores relativo y absoluto.

Gráfica de f(x) = (4x + 1)^1/2 y su respectivo


Polinomio de Maclaurin de grado 2 (P2,0(x))
3.0000

2.5000

2.0000

1.5000

1.0000
x

0.5000

0.0000
0 15 3 45 6 75 9 05 2 35 5
0. 0. 0. 0. 0. 0. 1. 1. 1. 1.
-0.5000

-1.0000

f(x) P2,0

Gráfica del error absoluto y relativo del po-


linomio de Maclaurin P2,0(x)
3.500

3.000

2.500

2.000
x

1.500

1.000

0.500

0.000
0 1 2 3 4 5 6 7 8 9 1 1 2 3 4 5
0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1. 1. 1. 1.

E.abs E.rel%

ntervalo para γ?

fico del residuo R2,0(x) de f(x)


4 5 6 7 8 9 1 1 2 3 4 5
0. 0. 0. 0. 0. 0. 1. 1. 1. 1. 1.

´
Sea f(x) = (4x + 1)^1/2 y el polinomio de Maclaurin de orden 2, P2,0(x) = 1 + 2x -

1.1 Hacer las gráficas de f(x), P2,0(x) y de los errores relativo y absoluto.
x f(x) P2,0 E.abs E.rel%
-0.25 0.0000 0.375 0.375 -
-0.2 0.4472 0.52 0.073 -16.28% Gráfica de f(x) = (4x +
-0.15 0.6325 0.655 0.023 -3.56% Polinomio de Maclaur
-0.1 0.7746 0.78 0.005 -0.70% 3.0000
-0.05 0.8944 0.895 0.001 -0.06%
2.5000
0 1.0000 1 0.000 0.00%
0.05 1.0954 1.095 0.000 0.04% 2.0000
0.1 1.1832 1.18 0.003 0.27% 1.5000
0.15 1.2649 1.255 0.010 0.78%
1.0000

x
0.2 1.3416 1.32 0.022 1.61%
0.25 1.4142 1.375 0.039 2.77% 0.5000
0.3 1.4832 1.42 0.063 4.26%
0.0000
0.35 1.5492 1.455 0.094 6.08% 0 15 0.
3 45
-0.5000 0. 0.
0.4 1.6125 1.48 0.132 8.21%
0.45 1.6733 1.495 0.178 10.66% -1.0000
0.5 1.7321 1.5 0.232 13.40%
0.55 1.7889 1.495 0.294 16.43% f(x)
0.6 1.8439 1.48 0.364 19.74%
0.65 1.8974 1.455 0.442 23.31%
0.7 1.9494 1.42 0.529 27.16%
0.75 2.0000 1.375 0.625 31.25% Gráfica del error abso
0.8 2.0494 1.32 0.729 35.59% linomio de Mac
0.85 2.0976 1.255 0.843 40.17% 3.500
0.9 2.1448 1.18 0.965 44.98%
3.000
0.95 2.1909 1.095 1.096 50.02%
1 2.2361 1 1.236 55.28% 2.500
1.05 2.2804 0.895 1.385 60.75%
2.000
1.1 2.3238 0.78 1.544 66.43%
x

1.15 2.3664 0.655 1.711 72.32% 1.500


1.2 2.4083 0.52 1.888 78.41%
1.000
1.25 2.4495 0.375 2.074 84.69%
1.3 2.4900 0.22 2.270 91.16% 0.500
1.35 2.5298 0.055 2.475 97.83% 0.000
1.4 2.5690 -0.12 2.689 104.67% 0 .1 .2 .3 .4 .5
0 0 0 0 0
1.45 2.6077 -0.305 2.913 111.70%
1.5 2.6458 -0.5 3.146 118.90% E.abs

1.2 Graficar R2,0(x). ¿Cuál es el intervalo para γ?

x R2,0(x) R2,0(x) - E.abs


-0.25 - - Gráfico del residuo R2,0(x)
-0.2 -0.0320 -0.1048
16.0000
-0.15 -0.0135 -0.0360
14.0000

12.0000

10.0000
Gráfico del residuo R2,0(x)
16.0000

-0.1 -0.0040 -0.0094 14.0000


-0.05 -0.0005 -0.0011 12.0000
0 0.0000 0.0000 10.0000
0.05 0.0005 0.0001
8.0000
0.1 0.0040 0.0008
0.15 0.0135 0.0036 6.0000
0.2 0.0320 0.0104 4.0000
0.25 0.0625 0.0233
2.0000
0.3 0.1080 0.0448
0.35 0.1715 0.0773 0.0000
0 1 2 3 4 5 6 7 8 9
0.4 0.2560 0.1235 0. 0. 0. 0. 0. 0. 0. 0. 0.

0.45 0.3645 0.1862 ´


0.5 0.5000 0.2679
0.55 0.6655 0.3716
0.6 0.8640 0.5001
0.65 1.0985 0.6561
0.7 1.3720 0.8426
0.75 1.6875 1.0625
0.8 2.0480 1.3186
0.85 2.4565 1.6139
0.9 2.9160 1.9512
0.95 3.4295 2.3336
1 4.0000 2.7639
1.05 4.6305 3.2451
1.1 5.3240 3.7802
1.15 6.0835 4.3721
1.2 6.9120 5.0237
1.25 7.8125 5.7380
1.3 8.7880 6.5180
1.35 9.8415 7.3667
1.4 10.9760 8.2870
1.45 12.1945 9.2818
1.5 13.5000 10.3542
de orden 2, P2,0(x) = 1 + 2x - 2x^2

s errores relativo y absoluto.

Gráfica de f(x) = (4x + 1)^1/2 y su respectivo


Polinomio de Maclaurin de grado 2 (P2,0(x))
3.0000

2.5000

2.0000

1.5000

1.0000
x

0.5000

0.0000
0 15 3 45 6 75 9 05 2 35 5
0. 0. 0. 0. 0. 0. 1. 1. 1. 1.
-0.5000

-1.0000

f(x) P2,0

Gráfica del error absoluto y relativo del po-


linomio de Maclaurin P2,0(x)
3.500

3.000

2.500

2.000
x

1.500

1.000

0.500

0.000
0 1 2 3 4 5 6 7 8 9 1 1 2 3 4 5
0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1. 1. 1. 1.

E.abs E.rel%

intervalo para γ?

fico del residuo R2,0(x) de f(x)


fico del residuo R2,0(x) de f(x)

4 5 6 7 8 9 1 1 2 3 4 5
0. 0. 0. 0. 0. 0. 1. 1. 1. 1. 1.

También podría gustarte