Professional Documents
Culture Documents
Left Overnotes Nm
Left Overnotes Nm
,
III - Problems on Cubic Spline
I. Obtain the cubic spline approximation for the following data:
Gfxi 1-~I! I 2~ I
with Mo = M 2 = 0, Hence interpolate at x = 0.5 and x = l.5
2. Obtain the cubic spline approximation for the function Y = J( x ) from the following data:
r
Z1r {(z- Xp_,) tx.-z.,_,f_ !,,"JI Hu t- ( x-%,_,)f r~,)
~o -1 4N 1 --1 Ma
"' /;. [f {'Xo)-Jf(x, ! ~ f (xo.!]
OiA,fY,+ D
t li,~ [ (- 1J - ~ (3 l uq]
Interpolation and Approximation 81
~ {'Xt - X) f (Xo) .f /Jx ~'l,o){{ X- Xo) :_ (rfj] fv<, ../- iJ-(,x -~ f (x,)
}
0
)
'Fi. (x) :- _I r~ - x)
6 C
l ( 2 -x, ) 2
- {i )
2
f'J7 f..< , + J_t ~-x) (a) + j_
6
[rz -,) J (x - I )~ ,iYJ ~2.. + -~ (~ ---I ) (£>q)
= 1i__f bb
I Ix-,,+ + x"-- / 21 x. {,l, + '5 2 'X. - ,HJ ],~ I
82 Work Book on Numerical Me th0 ds
Pw: -l - 3 rri Fr (x )
2. From the data given below, find the number of students whose weight is between 60 and 70
Weight in lbs 0-40 40-60 60-80 80-100 100-120
No.of.students 250 120 100 70 50
1 I
q
tn
fe1i1.1Jand dlffm eaC12 fon U{ wa :
f ['X-B) - + ~ fff [xo} + c~ --~o) {-<X.,.-Xt)
I} k ~£_t
f- [1X_-';(.tJ) L?C - ~I) [:i,-'X..2) ,t:12-f {VJ),,
3/ /13 + ... '
,
~ (, , .,_ rx - o , c, , +- ( t:. .- o , c: (_ - ,) c-.,_ ) -\-
u xl ..l. l (1 ) 1. 31
'
::: ' + ?( + ~ ~ l( C-1.-) + X C-x?-- .'.2. 'X. - X -+ .2.) ,.. ( 12)
I
86 Work Book on Numerical Methods
J). {)J ~ .&t .ih~ 0-1-to 60 -80 - 8/J~ tOV /OD ..- /20 ·
..k0-60
Sol:
-- Wel¥t-- NDrtrf ~ {-9 A.fl(~) LIY{rx.) A'f~ t A{c1J
l'X..J fC~
.A O ,2 60
J?,.,O
60 3 =/D -2.. D
ID1) - ID
go kfO -3 o d1J
::;. o to
(00 PAD -.1 0
15 0
/10 , ~~D
A! k~ I
_.::::-,.4R,3•~q
~ /; ~I; ' -f o
;-g louoo:> ~ ft,;Jt-r .
of ~ H:uiw.,f-s wkoge
U9 Q,t~t-
-!l,w [11,0 •
u 3'-;f{) •
1 2:. J--u clet~JJ' lO Cw~ e weir& f rd foelo~ I; 0
7fu Vl,D r
,.. _:l.q 36 4G of
f'Opuia/tl)t{ f (<1-) .. .20 .2~
}vt (,t,/cv'I., -
r trt l)tS}~ e &, [Jj1 l 1f1.J L~ pextc& (4 It f, to lCf =76 .
fivrl tCw. populait()l,t ~ ,.i
Fo?aOcv-r d ba l/4 wOJtcl .
J) t 1faeut.i. &bte ~
po pyltJ.,tt rrt/1. ~v( raktM
f tx..J
19 1-1 \ ½!?__
1951
(°/ b I
f~i I
/"f 8 I
B~ ~wfm<, ' j
/td ~ f (XP)
88 Work Book. on Numericnl Mcrhods
-\ (l'\l{L - l°'Al ) (1'lA L,- /'H51){1 4Jd"- l-=t &t) >' JiL -t- ,o;
31 10 3
-I ( t9~b) - l'\/.\1) (l°l~b-19531) (l'lHb-lCfb1) (/"(/.\;t,-19::fl)t!!_,4 C,...-t't'!l).>l ~
- - {to)5
"5 !
f {x,) -== ! t-x.rJ + c~ x '2:._L v f ex"') + c;t -4) c?L- X1-1-,) y1(?Cv..)
I) x n. 2 1 x kl!.
-1 ~x ~ <)(,VI--, ) CX-- X-n.,..~ ~ '7 'f- (X l'\)
i! kg
-+ (-x:.- xn.)C-x.-Xvt-1) Cx..~ x.1,1,- 2...) (,c.- x.n-1) ~ 9 ~1 (-x_v\l
- --- -1 I r
- -- h11
·4 (x.~~n ) ( x._..- }tri,- 1) (X--Xtt-~) CX-- ~ -3) {a:.- ~n-It-) '!_ tJfc~)
~! ,~
ix :::: \C\::fb k == \u
t (IC\~ h) ~ 6\ + ( l~ ={C. -l'\C{t) ( ~) + (1'\1 b- A'1!) (\'\:t{i - \°\21) (-FS)
I ,' to :2.. I - [ioJ2
.-t (t'\ "::f h - l°'.."t \~ '1=f f.- IC\~ I ) ( \q ":+ b - \q ~ I) (-'8'
31 x..C.10) 3 -
'
t ( rq:f t, -IC\41)
A ! X L\t)) lt ---- ~----------
+ (r'\::rtt ~ t'\"'- 1) C1'\~b-\ G\8 t) t\l\:'.\t.~\c::i·:t-1) ll°'-1- b --- l'\ l>,)
--- Al
/V