This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

InterpolationOrder

Updated In 6 Graphic
InterpolationOrder
is an option for Interpolation, as well as ListLinePlot, ListPlot3D, ListContourPlot and related functions, that specifies what order of interpolation to use.
  • InterpolationOrder->n specifies that polynomials of degree n should be fitted between data points.
  • For multidimensional data, the polynomials are taken to be of degree n in each variable.
  • InterpolationOrder->None specifies that data points should be joined without interpolation.
  • InterpolationOrder->0 yields a collection of flat regions, with steps at each data point.
  • InterpolationOrder->1 joins data points with straight lines in 2D, and with piecewise polygonal surface elements in 3D.
  • Higher interpolation orders generally lead to increasingly smooth curves or surfaces.
  • In functions such as NDSolve, InterpolationOrder->All specifies that the interpolation order should be chosen to be the same as the order of the underlying solution method.
Use different interpolation orders for curves:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
 
Use different interpolation orders for surfaces:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
 
Use different interpolation orders when constructing an InterpolatingFunction:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
New in 3 | Last modified in 6