%Lagrange Polynomial Algorithm by
%Neville Interpolation at a vector of %points.
clc;
clear;
format long
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Input
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
n = input(‘Enter the number of points to interpolate at: ‘);
x = input(‘Enter the vector of points to interpolate at: ‘);
d = input(‘Enter the vector of function values of interpolationpoints: ‘);
t = input(‘Enter the value to approximate the function at:’);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Neville Method
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Q = zeros(n,n); %Initializes an n x n matrix
Q(:,1) = d’; %Enters the vector of
Q;
PayPal Gateway not configured
PayPal Gateway not configured