Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Numerical Data > Curve Fitting & Approximate Functions > InterpolatingFunction >
Mathematica > Data Manipulation > Statistical Data Analysis > Curve Fitting & Approximate Functions > InterpolatingFunction >
Mathematica > Mathematics and Algorithms > Statistical Data Analysis > Curve Fitting & Approximate Functions > InterpolatingFunction >

InterpolatingFunction

InterpolatingFunction
represents an approximate function whose values are found by interpolation.
  • In standard output format, only the domain element of an InterpolatingFunction object is printed explicitly. The remaining elements are indicated by . »
  • If you supply arguments outside of the domain, a warning is generated, and then an extrapolated value is returned.
Make an InterpolatingFunction object that will go through the given points:
Only the domain is shown in standard output format:
Evaluate the function at a point in the domain:
Plot the function over its domain, showing the interpolation points:
Get an InterpolatingFunction object approximating the solution of a differential equation:
Plot the function and its derivative:
Find the indefinite integral of the solution:
Make an InterpolatingFunction object that will go through the given points:
In[1]:=
Click for copyable input
Only the domain is shown in standard output format:
In[2]:=
Click for copyable input
Out[2]=
Evaluate the function at a point in the domain:
In[3]:=
Click for copyable input
Out[3]=
Plot the function over its domain, showing the interpolation points:
In[4]:=
Click for copyable input
Out[4]=
 
Get an InterpolatingFunction object approximating the solution of a differential equation:
In[1]:=
Click for copyable input
Out[1]=
Plot the function and its derivative:
In[2]:=
Click for copyable input
Out[2]=
Find the indefinite integral of the solution:
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=
Make an InterpolatingFunction with exact data:
Compute the value using exact arithmetic:
Compute using machine-number arithmetic:
Compute using arbitrary-precision arithmetic:
Make a new InterpolatingFunction with numerical values of all the data:
With this InterpolatingFunction values are computed using machine arithmetic:
Integrate an InterpolatingFunction:
Make a new InterpolatingFunction that is the indefinite integral:
The derivative of an InterpolatingFunction is another InterpolatingFunction:
Use partial derivatives of an InterpolatingFunction to check the residual for a PDE:
Make an InterpolatingFunction that takes 4 arguments:
Integrate it across the first and last dimensions:
InterpolatingFunction does a Piecewise polynomial interpolation:
New in 2 | Last modified in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF