Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Evaluate the piecewise spherical linear interpolant of given data
ResourceFunction["SphericalLinearInterpolation"][data,t] finds a piecewise spherical linear interpolation of data at the point t. | |
ResourceFunction["SphericalLinearInterpolation"][data] represents an operator form of ResourceFunction["SphericalLinearInterpolation"] that can be applied to an expression. |
Generate some data over a sphere of radius 3:
In[1]:= |
|
Out[1]= |
|
Evaluate the piecewise spherical linear interpolant of the data at a given value:
In[2]:= |
|
Out[2]= |
|
Plot the piecewise spherical linear interpolant along with the original data:
In[3]:= |
|
Out[3]= |
|
Evaluate the piecewise spherical linear interpolant for four-dimensional vectors:
In[4]:= |
|
Out[4]= |
|
Evaluate the piecewise spherical linear interpolant for high-precision data:
In[5]:= |
|
Out[5]= |
|
A function for taking a bounded random step on a sphere:
In[6]:= |
|
Visualize a random walk with bounded steps on a sphere:
In[7]:= |
|
Out[7]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License