Example
2. Construct the natural cubic spline for the
points
that
has the endpoint constraints
.
Use Mathematica's procedure SplineFit.
Solution 2.
![[Graphics:../Images/CubicSplinesMod_gr_36.gif]](../Images/CubicSplinesMod_gr_36.gif)
![[Graphics:../Images/CubicSplinesMod_gr_37.gif]](../Images/CubicSplinesMod_gr_37.gif)
Which is the same curve that was obtained in Example 1.
![[Graphics:../Images/CubicSplinesMod_gr_28.gif]](../Images/CubicSplinesMod_gr_28.gif)
![]()
(c) John H. Mathews 2004