interp


interp, a Python code which takes a set of data associated with successive values of a parameter, and produces an interpolating function which can be evaluated over a continuous range of the parameter.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

interp is available in a C version and a C++ version and a Fortran77 version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

divdif, a Python code which uses divided differences to interpolate data.

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

rbf_interp_1d, a Python code which defines and evaluates radial basis function (RBF) interpolants to 1d data.

shepard_interp_1d, a Python code which defines and evaluates shepard interpolants to 1d data, which are based on inverse distance weighting.

test_interp, a Python code which defines a number of test problems for interpolation, provided as a set of (x,y) data.

test_interp_1d, a Python code which defines test problems for interpolation of data y(x), depending on a 1d argument.

vandermonde_interp_1d, a Python code which finds a polynomial interpolant to data by setting up and solving a linear system involving the Vandermonde matrix.

Reference:

  1. Samuel Conte, Carl deBoor,
    Elementary Numerical Analysis,
    Second Edition,
    McGraw Hill, 1972,
    ISBN: 07-012446-4,
    LC: QA297.C65.

Source Code:


Last revised on 01 July 2025.