Cubic Spline Interpolation
Function: - Cubic Spline Interpolation 3
To examine the Cubic Spline of this function we have taken a long interval length of 160 with only 40 nodes. At the first maximum the Cubic Spline fails to reach the maximum. Obviously increasing the number of fitted nodes will improve this. The subsequent function after the first maximum is interpolated quite well. This is because the function becomes smoother as its oscillation period is increased.

Graph 5. Graph Cubic Spline of . The first maximum is not well interpolated. The function is too sharp for the Cubic Spline interpolation but the rest of the function is quite well interpolated. This is only with 40 nodes at an interval of x between 0 and 160.

Graph 6. which is zoomed Graph 5. Linear interpolation (red line) with a higher number of nodes compared to the Cubic Spline (blue line) which has a much lower number of nodes. Still the function shape is similar but amplitude is different.
|