This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / special / _multiufuncs / sph_legendre_p

MultiUFunc

scipy.special._multiufuncs:sph_legendre_p

source: build-install/usr/lib/python3.14/site-packages/scipy/special/_multiufuncs.py

Signature

def sph_legendre_p(n, m, theta, *, diff_n = 0)

Summary

Spherical Legendre polynomial of the first kind.

Parameters

n : array_like of ints

Degree of the spherical Legendre polynomial. Must have n >= 0.

m : array_like of ints

Order of the spherical Legendre polynomial.

theta : array_like

Input value.

diff_n : int, optional

A non-negative integer. Compute and return all derivatives up to order diff_n. Default is 0.

Returns

: ndarray or tuple of ndarray

Spherical Legendre polynomial with diff_n derivatives.

Notes

The spherical counterpart of an (unnormalized) associated Legendre polynomial has the additional factor

It is the same as the spherical harmonic with .

Aliases

  • scipy.special.sph_legendre_p

Referenced by