%
% Spline vs Newton
%
% T. Mitkova, 24.02.2009

clear all
clf

n = 12;
j = 0 : n;

X = ... ;     % aequidistante Stuetzstellen
Y = ... ;  % Stuetzwerte

x_plot = -5:0.01:5;
y_plot = ... ;

% Newton-Interpolation
interpol_equidistant = Newton_Interpol(X, Y, x_plot);

% Spline-Interpolation
interpol_spline = spline(..., ..., ...) ;

figure(1)
plot(x_plot, interpol_equidistant, '--', x_plot, interpol_spline, '-', X, Y, 'o')
legend('Newton-Inter.', 'Spline-Inter.')
axis([-5.5 5.5 -17 4])
