This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Algebraic Computation / Polynomial Functions  /
InterpolatingPolynomial

  • InterpolatingPolynomial[ data , var ] gives a polynomial in the variable var which provides an exact fit to a list of data.
  • The data can have the forms , , , , ... or , , ... , where in the second case, the are taken to have values 1, 2, ... .
  • The can be replaced by , , , ... , specifying derivatives at the points .
  • With a list of data of length , InterpolatingPolynomial gives a polynomial of degree .
  • Example: InterpolatingPolynomial[ 4, 5, 8 , x].
  • InterpolatingPolynomial gives the interpolating polynomial in Newton form, suitable for numerical evaluation.
  • See the Mathematica book: Section 3.3.4Section 3.8.1.
  • See also: Fit, Roots.
  • Related package: NumericalMath`PolynomialFit`.

    Further Examples

    This constructs a polynomial with the values , , , at the points , , , .

    In[1]:=

    Out[1]=

    This gives a polynomial whose graph passes through the three points given in the list.

    In[2]:=

    Out[2]=