lagrange_function

%for example : %x=[2 3 5]; %y=[0.5 2 2.5]; %lagrangefunction(3,x,y) %ans=2 % the aim is : find a polynomial that takes the same values as the function at given points