image thumbnail

Barycentric Lagrange Interpolating Polynomials and Lebesgue Constant

version (2.33 KB) by Greg von Winckel
Computes lagrange interpolating polynomials and Lebesgue function/constant.


Updated 08 Mar 2004

View License

The first script, barylag.m, performs a barycentric lagrange interpolation on a for a set of given data. This approach follows from a paper by L. N. Trefethen (ref inside script comments), and is much faster than the previous script. Additionally, it has been vectorized to improve computation time even more. The second script, lebesgue.m is for computing the lebesgue function and constant for a set of nodes. If you want to interpolate data using barylag but are using some unusual set of nodes, use the second script to check the lebesgue constant ensure good numerical conditioning.

Cite As

Greg von Winckel (2021). Barycentric Lagrange Interpolating Polynomials and Lebesgue Constant (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Lagrange polynomial interpolation

Community Treasure Hunt

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

Start Hunting!