Professional Documents
Culture Documents
a)
Cubic
splines
are
function
approximations that are function approximations that are continuous at merging points. They also have
continuous first and second derivatives where they join. Natural cubic spline is a cubic spline that has
second derivative equal to zero at end points. Unlike Lagrange polynomials, each point in the line does not
affect the entire line.
0S xi( x
Number of conditions
for
and
1S
i
x
i'1
1S
i
x
"
i
1
1S i x
The continuity conditions for the spline, its derivative, and its second derivative are as following:
for
for
for
S x0
"
b)
x1302
0
2
0
1
1
3
0
2
1302
Find the natural cubic spline interpolant to f at the points , , and where f, f, f and f.
Solution:
for
h0
x x
x0
sxi
, for .
for _____(1)
x 1
Sx1 x 2
,
for _____(2)
for _____(3)
1zii S
"
S 0x0
Let ,
for .
_________________(see condition )
_________(4)
_________(5)
1
bi 1
h
,
(4):
z1 4
1
0
(5):
z
0
0i
C
Dii
,
and
for
C
D11
C
D
,
and
x 0
Sx 0 x1
(1): ,
(2): ,
for
for
Sx 2 x 2
(3): ,
Answer:
for
c)
d)
What has been presented and can be learned from each website?
i)
ii)
e)
The calculation is precise. What I mean about precise is that they provide a general step-bystep calculation and use a simple term for the formulas that make it easy for student to
calculate.
ii)
The wording, formulas, and calculations are very well organized that it makes it easy for
students to understand.
f)
Other than the general computation of a Natural Cubic Spline, show also the general
computation for End Slope Spline, Periodic Spline and Not-a-Knot Spline as they are also
one of the alternatives to define the 2 extra boundary conditions just like Natural Cubic
Spline.
ii)
Provide examples with their solutions and exercises for Cubic Spline Interpolation topic.
iii)
Show what software and how to use it to compute Cubic Spline Interpolation (for example
MATLAB, C++, SciPy, Excel, Java and others).