This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cubic_driver(num_points) | |
% cubic_driver(n) computes a cubic spline | |
% interpolant of the runge function | |
% | |
% f(x) = 1/(1+25*x^2) | |
% | |
% based on n linearly spaced | |
% points in the interval [-1,1] | |
runge = @(x) 1./(1+ 25*x.^2); |