Sie sind auf Seite 1von 16

SPLINE CUBICO NATURAL

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

La función spline que pasa por los puntos es:


s0=0.00691*(x-1)^3+0*(x-1)^2+1.82725*(x-1)+5
s1=0.1118*(x-6)^3+0.16365*(x-6)^2+2.34549*(x-6)+15
s2=-0.20135*(x-8)^3+0.77447*(x-8)^2+4.10172*(x-8)+21
s3=1.01246*(x-14)^3-2.8498*(x-14)^2-8.35025*(x-14)+30
s4=-0.26875*(x-16)^3+3.22497*(x-16)^2-7.59991*(x-16)+10

La interpolación en x=5 y x=13 son:


S(5)=S0(5)= 12.75124
S(13)=S2(13)= 35.7016

Hallando S' y S'' en x=18


S'(18)= 2.07497 =-0.26875*3*(18-16)^2+3.22497*2*(18-16)-7.59991
S''(18)= 3.22494 =-0.26875*3*2*(18-16)^1+3.22497*2
SPLINE CUBICO NATURAL
Problema:
Encontrar el spline cúbico natural
que se ajuste a los siguientes puntos
x y
5 5
20 100
30 80
80 150
Interpolar en x=15 y x=25
Hallar S', S'' y S''' en x=50

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=

La interpolación en x=15 y x=25 son:

Hallando S' y S'' en x=50


SPLINE CUBICO NATURAL
Problema:
Encontrar el spline cúbico natural
que se ajuste a los siguientes puntos
x y
1 2
5 7
8 13
11 16
12 21
17 36
21 50
Interpolar en x=4 y x=13
Hallar S' y S'' en x=18
SPLINE CUBICO FORZADO
Problema:
Encontrar el spline cúbico forzado
que se ajuste a los siguientes puntos
Considerar S'(1)=S'(15)=1
x y
1 2
5 7
10 13
11 16
15 21
Interpolar en x=4 y x=13
Hallar S' y S'' en x=14

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

La función spline que pasa por los puntos es:


s0=-0.035298*(x-1)^3+0.2036932*(x-1)^2+1*(x-1)+2
s1=0.0545682*(x-5)^3-0.219886*(x-5)^2+0.9352273*(x-5)+7
s2=-0.427614*(x-10)^3+0.5986364*(x-10)^2+2.8289773*(x-10)+13
s3=0.0777131*(x-11)^3-0.684205*(x-11)^2+2.7434091*(x-11)+16

La interpolación en x=4 y x=13 son:


S(4)=S0(4)= 5.8801928
S(13)=S3(13)= 19.371703

Hallando S' y S'' en x=14


S'(14)= 0.7364328 =0.0777131*3*(14-11)^2-0.684205*2*(14-11)+2.7434091
S''(14)= 0.0304258 =0.0777131*3*2*(14-11)-0.684205*2

Das könnte Ihnen auch gefallen