Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 397 Bytes
%
% x = [0 2500 5000 10000]
% y = [1013 747 540 226]
% z = einmal 1250 und einmal 3750
% p = Aitken_Neville(x, y, z)
function p = Aitken_Neville(x, y, z)
x = x';
y = y';
n = length(x);
dx = z - x;
p = y;
for k = 1 : n - 1
for l = 1 : n - k
p(l, k+1) = (dx(l) * p(l+1, k) - dx(l+k) * p(l, k)) / (x(l+k) - x(l));
end
end
end
You can’t perform that action at this time.