barycentric_interp_1d_test


barycentric_interp_1d_test, a MATLAB code which calls barycentric_interp_1d() to define and evaluate the Lagrange polynomial p(x) which interpolates a set of data, so that p(x(i)) = y(i). Because a barycentric formulation is used, polynomials of very high degree can safely be used.

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Related Data and Programs:

barycentric_interp_1d, a MATLAB code which defines and evaluates the barycentric Lagrange polynomial p(x) which interpolates a set of data, so that p(x(i)) = y(i). The barycentric approach means that very high degree polynomials can safely be used.

Source Code:

lagcheby1_interp_1d_test() samples a function at Chebyshev Type 1 points and determines and plots the barycentric Lagrange polynomial interpolant.

lagcheby2_interp_1d_test samples a function at Chebyshev Type 2 points and determines and plots the barycentric Lagrange polynomial interpolant.


Last modified on 30 November 2018.