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