This is documentation for an old release of SciPy (version 0.7.). Read this page Search for this page in the documentation of the latest stable release (version 1.15.1).
scipy.special.sph_harm
-
scipy.special.sph_harm()
Compute spherical harmonics.
This is a ufunc and may take scalar or array arguments like any other ufunc.
The inputs will be broadcasted against each other.
Parameters: |
- m : int |m| <= n
The order of the harmonic.
- n : int >= 0
The degree of the harmonic.
- theta : float [0, 2*pi]
The azimuthal (longitudinal) coordinate.
- phi : float [0, pi]
The polar (colatitudinal) coordinate.
|
Returns: |
- y_mn : complex float
The harmonic $Y^m_n$ sampled at theta and phi.
|