lagrange(X,Y,Xa)

version 1.0.0.0 (764 Bytes) by Last
1 dimension Lagrange interpolation

106 Downloads

Updated 30 Jan 2016

View License

The function finds the Lagrange polynomials that passes through the points (x1,y1), (x2,y2), ... (xn,yn).
It takes in parameter 3 variables:
X = [x1,x2,...xn]
Y= [y1,y2,...yn];
Xa : the point we want to calculate P(Xa).
it returns the Lagrange Polynomial (P) and P(Xa).

Cite As

Last (2022). lagrange(X,Y,Xa) (https://www.mathworks.com/matlabcentral/fileexchange/55173-lagrange-x-y-xa), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Acknowledgements

Inspired: Métodos Numéricos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!