Beruflich Dokumente
Kultur Dokumente
Problema:
Encontrar el spline cúbico natural
que se ajuste a los siguientes puntos
x y
1 5
6 15
8 21
14 30
16 10
20 14
Interpolar en x=5 y x=13
Hallar S' y S'' en x=18
Solución:
i x y hi y[xi,xi+1]
0 1 5 5 2
1 6 15 2 3
2 8 21 6 1.5
3 14 30 2 -10
4 16 10 4 1
5 20 14
H M Y
14 2 0 0 M1 6
2 16 6 0 M2 -9
0 6 16 2 M3 -69
0 0 2 12 M4 66
INVERSA(H)
0.0729497 -0.01065 0.00408 -0.00068 =MINVERSA()
-0.0106479 0.074536 -0.02855 0.0047576 Ctrl+Shift+enter
0.0040779 -0.02855 0.07476 -0.01246
-0.0006797 0.004758 -0.01246 0.0854101
INVERSA(H)*Y
M0= 0 =MMULT()
M1= 0.207295 Ctrl+Shift+enter
M2= 1.548935
M3= -5.69959
M4= 6.449932
M5= 0
si=ai(x-xi)^3+bi(x-xi)^2+ci(x-xi)+di
[xi,xi+1] ai bi ci di
s0 [1 ,6] 0.00691 0 1.8272542 5
s1 [6 ,8] 0.111803 0.10365 2.3454916 15
s2 [8 ,14] -0.20135 0.77447 4.1017218 21
s3 [14 ,16] 1.01246 -2.8498 -8.350249 30
s4 [16 ,20] -0.26875 3.22497 -7.599909 10
Solución:
i x y hi y[xi,xi+1]
H M Y
M1
M2
INVERSA(H)
=MINVERSA()
Ctrl+Shift+enter
INVERSA(H)*Y
M0= =MMULT()
M1= Ctrl+Shift+enter
M2=
M3=
si=ai(x-xi)^3+bi(x-xi)^2+ci(x-xi)+di
[xi,xi+1] ai bi ci di
s0 [5 ,20]
s1 [20 ,30]
s2 [30 ,80]
La función spline que pasa por los puntos es:
s0=
s1=
s2=
Solución:
i x y hi y[xi,xi+1]
0 1 2 4 1.25
1 5 7 5 1.2
2 10 13 1 3
3 11 16 4 1.25
4 15 21
H M Y
8 4 0 0 0 M0 1.5
4 18 5 0 0 M1 -0.3
0 5 12 1 0 M2 10.8
0 0 1 10 4 M3 -10.5
0 0 0 4 8 M4 -1.5
INVERSA(H)
0.1429924 -0.03598485 0.01515152 -0.00189394 0.00094697 =MINVERSA()
-0.035985 0.0719697 -0.03030303 0.00378788 -0.00189394 Ctrl+Shift+enter
0.0151515 -0.03030303 0.0969697 -0.01212121 0.00606061
-0.001894 0.00378788 -0.01212121 0.12651515 -0.06325758
0.000947 -0.00189394 0.00606061 -0.06325758 0.15662879
INVERSA(H)*Y
M0= 0.40738636 =MMULT()
M1= -0.43977273 Ctrl+Shift+enter
M2= 1.19727273
M3= -1.36840909
M4= 0.49670455
si=ai(x-xi)^3+bi(x-xi)^2+ci(x-xi)+di
[xi,xi+1] ai bi ci di
s0 [1 ,5] -0.0352983 0.20369318 1 2
s1 [5 ,10] 0.05456818 -0.21988636 0.93522727 7
s2 [10 ,11] -0.42761364 0.59863636 2.82897727 13
s3 [11 ,15] 0.07771307 -0.68420455 2.74340909 16