Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Extract data from an InterpolatingFunction object
| ResourceFunction["InterpolatingFunctionData"][ifun,property] gives the value of the property of the InterpolatingFunction object ifun. | |
| ResourceFunction["InterpolatingFunctionData"][ifun,(prop1,prop2,…}] gives the values of propi. | |
| ResourceFunction["InterpolatingFunctionData"][ifun] gives an association of all the known properties of ifun. | 
| "Domain" | a list of the domains of each dimension of ifun | 
| "Coordinates" | coordinates at which the interpolating function data is specified | 
| "Grid" | grid of points at which data is specified | 
| "ValuesOnGrid" | values that would be returned by evaluating ifun at each of its grid points | 
| "InterpolationOrder" | interpolation order for each dimension of ifun | 
| "DerivativeOrder" | order of the derivative of the base function | 
Construct an InterpolatingFunction object:
| In[1]:= | ![ifun = Interpolation[{1, 2, 3, 5, 8, 5}]](https://www.wolframcloud.com/obj/resourcesystem/images/9a0/9a0e504a-87c0-42f4-a80d-11588ddf274b/4afab6e51156559e.png) | 
| Out[1]= |  | 
Use InterpolatingFunctionData to obtain one or more of its properties:
| In[2]:= | ![ResourceFunction["InterpolatingFunctionData"][ifun, "Domain"]](https://www.wolframcloud.com/obj/resourcesystem/images/9a0/9a0e504a-87c0-42f4-a80d-11588ddf274b/36e4bcf101ac3db2.png) | 
| Out[2]= |  | 
| In[3]:= | ![ResourceFunction[
 "InterpolatingFunctionData"][ifun, {"Grid", "ValuesOnGrid"}]](https://www.wolframcloud.com/obj/resourcesystem/images/9a0/9a0e504a-87c0-42f4-a80d-11588ddf274b/22b008d3fcde4e3e.png) | 
| Out[3]= |  | 
| In[4]:= | ![ResourceFunction["InterpolatingFunctionData"][ifun]](https://www.wolframcloud.com/obj/resourcesystem/images/9a0/9a0e504a-87c0-42f4-a80d-11588ddf274b/5116fd9f4d9cf0eb.png) | 
| Out[4]= |  | 
Obtain the domain of an InterpolatingFunction object:
| In[5]:= | ![ResourceFunction["InterpolatingFunctionData"][
 Interpolation[{1, 2, 3, 5, 8, 5}], "Domain"]](https://www.wolframcloud.com/obj/resourcesystem/images/9a0/9a0e504a-87c0-42f4-a80d-11588ddf274b/0665f90e29c482de.png) | 
| Out[5]= |  | 
Obtain the coordinates at which the interpolating function data is specified:
| In[6]:= | ![ResourceFunction["InterpolatingFunctionData"][
 Interpolation[{1, 2, 3, 5, 8, 5}], "Coordinates"]](https://www.wolframcloud.com/obj/resourcesystem/images/9a0/9a0e504a-87c0-42f4-a80d-11588ddf274b/11cb9525c654d10f.png) | 
| Out[6]= |  | 
Obtain the grid of points at which data is specified:
| In[7]:= | ![ResourceFunction["InterpolatingFunctionData"][
 Interpolation[{1, 2, 3, 5, 8, 5}], "Grid"]](https://www.wolframcloud.com/obj/resourcesystem/images/9a0/9a0e504a-87c0-42f4-a80d-11588ddf274b/3c84a8dc2e97d3a1.png) | 
| Out[7]= |  | 
Obtain the values that would be returned by evaluating the interpolating function at each of its grid points:
| In[8]:= | ![ResourceFunction["InterpolatingFunctionData"][
 Interpolation[{1, 2, 3, 5, 8, 5}], "ValuesOnGrid"]](https://www.wolframcloud.com/obj/resourcesystem/images/9a0/9a0e504a-87c0-42f4-a80d-11588ddf274b/350d59abe74c5b5c.png) | 
| Out[8]= |  | 
Obtain the interpolation order for each of the dimensions:
| In[9]:= | ![ResourceFunction["InterpolatingFunctionData"][
 Interpolation[{1, 2, 3, 5, 8, 5}], "InterpolationOrder"]](https://www.wolframcloud.com/obj/resourcesystem/images/9a0/9a0e504a-87c0-42f4-a80d-11588ddf274b/49b08196b5de4cf2.png) | 
| Out[9]= |  | 
Obtain the order of the derivative of the base function:
| In[10]:= | ![ResourceFunction["InterpolatingFunctionData"][
 Interpolation[{1, 2, 3, 5, 8, 5}], "DerivativeOrder"]](https://www.wolframcloud.com/obj/resourcesystem/images/9a0/9a0e504a-87c0-42f4-a80d-11588ddf274b/430400fa732bbf50.png) | 
| Out[10]= |  | 
This work is licensed under a Creative Commons Attribution 4.0 International License