lagrange_interp_1d_test


lagrange_interp_1d_test, a MATLAB code which calls lagrange_interp_1d(), which defines and evaluates the Lagrange polynomial p(x) which interpolates a set of data, so that p(x(i)) = y(i).

Licensing:

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

Related Data and Programs:

lagrange_interp_1d, a MATLAB code which defines and evaluates the Lagrange polynomial p(x) which interpolates a set of data, so that p(x(i)) = y(i).

Source Code:

lagrange_interp_1d_test01() plots the data and Lagrange interpolant for even spacing.

Images for Problem 1:

Images for Problem p02:

Images for problem p03:

Images for problem p04:

Images for problem p05:

Images for problem p06:

Images for problem p07:

Images for problem p08:

lagrange_interp_1d_test02() plots the data and Lagrange interpolant for Chebyshev spacing.

Images for Problem p02:


Last modified on 06 February 2019.