bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / special / _multiufuncs / sph_harm_y_all
MultiUFunc
scipy.special._multiufuncs:sph_harm_y_all
source: build-install/usr/lib/python3.14/site-packages/scipy/special/_multiufuncs.py
Signature
def sph_harm_y_all(n, m, theta, phi, *, diff_n = 0)Summary
All spherical harmonics up to the specified degree n, order m, and all derivatives up to order diff_n.
Parameters
n: intDegree of the harmonics. Must have
n >= 0. This is often denoted byl(lower case L) in descriptions of spherical harmonics.m: intOrder of the harmonics.
theta: array_likePolar (colatitudinal) coordinate; must be in
[0, pi].phi: array_likeAzimuthal (longitudinal) coordinate; must be in
[0, 2*pi].diff_n: int, optionalA non-negative integer. Compute and return all derivatives up to order
diff_n. Default is 0.
Returns
: ndarray or tuple of ndarrayReturns a tuple of length
diff_n + 1(ifdiff_n > 0). The first entry corresponds to the spherical harmonics, the second entry (ifdiff_n >= 1) to the gradient, and the third entry (ifdiff_n >= 2) to the Hessian matrix. Each entry is an array of shape(n + 1, 2 * m + 1, ...), where the entry at(i, j)corresponds to degreeiand orderjfor all0 <= i <= nand-m <= j <= m.
See also
Aliases
scipy.special.sph_harm_y_all