lagrange_interp_1d_test


lagrange_interp_1d_test, an Octave 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 MIT license

Related Data and Programs:

lagrange_interp_1d, an Octave 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 01 June 2023.