Interpolación - Datos Covid
Interpolación - Datos Covid
Interpolación - Datos Covid
MÉTODO DE LAGRANGE
DATOS COVID-19 DEPARTAMENTO DE BENI - BOLIVIA
FUNCION TABULAR
MES DE JUNIO NRO DE INFECTADOS
1 1885
2 1965
3 2101
4 2278
5 2428
6 2472
7 2511
8 2565
9 2692
10 2778
11 2809
12 2927 X
13 2944 12
14 2954 14
15 2962 16
16 2994 17
17 3128 19
18 3326 21
19 3473 23
20 3581
21 3613
22 3679
23 3785 L06
L16
L26
L36
L46
L56
L66
E
BENI - BOLIVIA
A CALCULAR (NODO)
20
RESULTADO
80.54285714286
DATOS REALES
LAGRANGE
20 25
INTERPOLACIÓN
MÉTODO DE NEWTON
DATOS COVID-19 DEPARTAMENTO DE BENI - BO
FUNCION TABULAR
MES DE JUNIO NRO DE INFECTADOS
1 1885
2 1965 p6(x)=yo+f[x1,x0](x-x0)+f[x0,x
3 2101
4 2278
5 2428 #
6 2472 0
7 2511 1
8 2565 2
9 2692 3
10 2778 4
11 2809 5
12 2927 6
13 2944
14 2954 NODO
15 2962
16 2994
17 3128 DIAS
18 3326 13
19 3473 15
20 3581 18
21 3613 20
22 3679 22
23 3785
ACIÓN
NEWTON
MENTO DE BENI - BOLIVIA
6(x)=yo+f[x1,x0](x-x0)+f[x0,x1,x2](x-x0)(x-x1)+f[x0,x1,x2,x3](x-x0)(x-x1)(x-x2)+f[x0,x1,x2,x3,x4](x-x0)(x-x1)(x-x2)(x-
22 3625.42857142857
3625
VALOR EXACTO VALOR INTERPOLADO er er%
2944 2988 0.01494565 1.49456522
2962 2937 0.00844024 0.84402431
3326 3306 0.00601323 0.60132291
3581 3581 0 0
3679 3625 0.0146779 1.46779016
1,x2,x3,x4](x-x0)(x-x1)(x-x2)(x-x3)+f[x0,x1,x2,x3,x4,x5](x-x0)(x-x1)(x-x2)(x-x3)(x-x4)+f[x0,x1,x2,x3,x4,x5,x6](x-x0)(x-
3500
3000
INFECTADOS (Y)
2500
2000 DATOS RE
NEWTON
1500
1000
500
0
0 5 10 15 20 25
DIAS (X)
x1,x2,x3,x4,x5,x6](x-x0)(x-x1)(x-x2)(x-x3)(x-x4)(x-x5)
DATOS REALES
NEWTON
25
INTERPOLACIÓN
MÉTODO DE SPLINES
DATOS COVID-19 DEPARTAMENTO DE BENI - BOLIVIA
FUNCION TABULAR
MES DE JUNIO NRO DE INFECTADOS
1 1885 # X
2 1965 0 14
3 2101 1 16
4 2278 2 17
5 2428 3 19
6 2472 4 21
7 2511 5 23
8 2565
9 2692
10 2778 Sj(x)= aj + bj(x-xj) +cj(x-xj)^2 +dj(x-xj)^3
11 2809
12 2927 S0(x)= a0 + b0(x-x0) +c0(x-x0)^2 +d0(x-x0)^3
13 2944 S1(x)= a1 + b1(x-x1) +c1(x-x1)^2 +d1(x-x1)^3
14 2954 S2(x)= a2 + b2(x-x2) +c2(x-x2)^2 +d2(x-x2)^3
15 2962 S3(x)= a3 + b1(x-x3) +c3(x-x3)^2 +d3(x-x3)^3
16 2994 S4(x)= a4 + b4(x-x4) +c4(x-x4)^2 +d4(x-x4)^3
17 3128
18 3326 S0(x0)= a0 = y0
19 3473 S1(x1)= a1 = y1
20 3581
21 3613
22 3679
23 3785
1 0
GRÁFICA SPLINE 2 6
X Y A 0 1
14 2954 0 0
15 2947.75943396226 0 0
16 2941.51886792453 0 0
17 3128
18 3311.85849056604 1 0
19 3549.94339622641 -0.343815514 0.1719077568
20 3558.68632075472 INV(A) 0.0628930818 -0.0314465409
21 3544.71226415094 -0.016771488 0.0083857442
22 3689.77122641509 0.0041928721 -0.0020964361
23 3803.45754716981 0 0
24 3954.05896226415
25 4141.57547169811
26 4366.0070754717
3000
3000
INFECTADOS(Y)
2500
2000
2500
1500
1000 2000
500
0 1500
12 14 16 18 20 22 24 26 28
DIAS(X) 1000
500
0
12 14
BENI - BOLIVIA
Y a b c
2954 2954 -14.9874214 1.18655085756814E-15
2994 2994 89.97484277 52.4811320754717
3128 3128 169.5691824 27.1132075471698
3473 3473 124.1352201 -49.8301886792453
3613 3613 61.38993711 18.4575471698113
3785 3785 0
si x= x0 h0=x1-x0
si x= x1 h1=x2-x1
0 0 0 0
1 0 0 0
6 2 0 0
2 8 2 0
0 2 8 2
0 0 0 1
0 0 0 0
-0.03144654 0.008385744234801 -0.00209644 0.004192872
0.188679245 -0.05031446540881 0.012578616 -0.02515723
-0.05031447 0.146750524109015 -0.03668763 0.073375262
0.012578616 -0.03668763102725 0.134171908 -0.26834382
0 0 0 1
4500
4000
3500
3000
INFECTADOS(Y)
2500
2000
1500
1000
500
0
12 14 16 18 20 22 24 26 28
DIAS(X)
d h dj= (cj+1-cj)/3hj
8.74685534591195 2 d0=(c1-c0) /3h0
-8.4559748427673 1 d1=(c2-c1)/3h1
-12.8238993710692 2 d2=(c3-c2)/3h2
11.3812893081761 2 bj = (1/hj)(aj+1 -aj) - (hj/3) (2cj + cj+1)
-3.07625786163522 2 b0= (1/h0)(a1-a0) -(h0/3)(2c0+c1)
b1= (1/h1)(a2-a1) -(h1/3)(2c1+c2)
b2= (1/h2)(a3-a2) -(h2/3)(2c2+c3)
0
342
B 115.5
-307.5
48
0
0
52.481132075
C 27.113207547
-49.830188679
18.45754717
0
26 28
dj= (cj+1-cj)/3hj
d0=(c1-c0) /3h0
d1=(c2-c1)/3h1
d2=(c3-c2)/3h2
bj = (1/hj)(aj+1 -aj) - (hj/3) (2cj + cj+1)
b0= (1/h0)(a1-a0) -(h0/3)(2c0+c1)
b1= (1/h1)(a2-a1) -(h1/3)(2c1+c2)
b2= (1/h2)(a3-a2) -(h2/3)(2c2+c3)
14 16 18 20 22 24
DIAS(X)