ListInterpolation

ListInterpolation[array]
constructs an InterpolatingFunction object that represents an approximate function that interpolates the array of values given.

ListInterpolation[array, {{xmin, xmax}, {ymin, ymax}, ...}]
specifies the domain of the grid from which the values in array are assumed to come.

Details and OptionsDetails and Options

  • You can replace etc. by explicit lists of positions for grid lines. The grid lines are otherwise assumed to be equally spaced.
  • ListInterpolation[array] assumes grid lines at integer positions in each direction.
  • array can be an array in any number of dimensions, corresponding to a list with any number of levels of nesting.
  • ListInterpolation[array, domain] generates an InterpolatingFunction object that returns values with the same precision as those in .
  • ListInterpolation supports a Method option. Possible settings include for spline interpolation and for Hermite interpolation.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Construct an approximate function that interpolates the data:

In[1]:=
Click for copyable input
Out[1]=

Apply the function to find interpolated values:

In[2]:=
Click for copyable input
Out[2]=

Plot the interpolation function:

In[3]:=
Click for copyable input
Out[3]=

Compare with the original data:

In[4]:=
Click for copyable input
Out[4]=

Construct an approximate function with the x values equally spaced on the interval :

In[1]:=
Click for copyable input
Out[1]=

Apply the function to find interpolated values:

In[2]:=
Click for copyable input
Out[2]=

Plot the interpolation function with the original data:

In[3]:=
Click for copyable input
Out[3]=

Construct an approximate function that interpolates the values from an array of values:

In[1]:=
Click for copyable input
Out[1]=

Plot the function with the original data:

In[2]:=
Click for copyable input
Out[2]=
New in 3 | Last modified in 7
New to Mathematica? Find your learning path »
Have a question? Ask support »