S2Fun_index
S2Fun
The S2Fun toolbox is a collection of Matlab classes for numerical computation with functions on the two-dimensional sphere. It overloads the default commands for vectors and matrices to compute the analogous operations for functions of the given type. For example the product becomes the pointwise product of two functions. Likewise the min command finds local minima.
The underlying mathematical approach is accomplished via spherical harmonics which form an orthonormal basis of the square-integrable
functions on the two-dimensional sphere. Internally for a function only the corresponding Fourier-coefficients are stored.
S2FunHarmonic forms the basis of S2Fun. It can handle ordinary functions
but also multivariate functions
.
S2FunHarmonic is an extension of the S2FunHarmonic class for which you can store the symmetry with the function. Various commands are adapted to the symmetry in regards to performance and general function handling. For instance the plot command only plots the function on the important part of the sphere.
S2VectorFieldHarmonic handles a function
which then is interpreted as a vector field. For instance the gradient of an univariate S2FunHarmonic can return a S2VectorFieldHarmonic.
S2AxisFieldHarmonic handles functions of the form
which can be understood as vectors in without direction or length.
Syntax
MTEX 5.2.beta1 |