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]:= | ![]() |
Out[1]= | ![]() |
Use InterpolatingFunctionData to obtain one or more of its properties:
In[2]:= | ![]() |
Out[2]= | ![]() |
In[3]:= | ![]() |
Out[3]= | ![]() |
In[4]:= | ![]() |
Out[4]= | ![]() |
Obtain the domain of an InterpolatingFunction object:
In[5]:= | ![]() |
Out[5]= | ![]() |
Obtain the coordinates at which the interpolating function data is specified:
In[6]:= | ![]() |
Out[6]= | ![]() |
Obtain the grid of points at which data is specified:
In[7]:= | ![]() |
Out[7]= | ![]() |
Obtain the values that would be returned by evaluating the interpolating function at each of its grid points:
In[8]:= | ![]() |
Out[8]= | ![]() |
Obtain the interpolation order for each of the dimensions:
In[9]:= | ![]() |
Out[9]= | ![]() |
Obtain the order of the derivative of the base function:
In[10]:= | ![]() |
Out[10]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License