mirror of
https://bitbucket.org/Mattrixwv/octavefunctions.git
synced 2025-12-06 18:53:57 -05:00
8 lines
208 B
Matlab
8 lines
208 B
Matlab
function [value] = Nevilles(P0, P1, x0, x1, x)
|
|
%
|
|
%Nevilles(P0, P1, x0, x1, x)
|
|
%This is function to calculate Pn using Nevilles method
|
|
%
|
|
value = (((x - x1)/(x0 - x1)) * P0) + (((x - x0)/(x1 - x0)) * P1);
|
|
end
|