bundles / scipy 1.17.1 / scipy / special / _multiufuncs / legendre_p
MultiUFunc
scipy.special._multiufuncs:legendre_p
source: /scipy/special/_multiufuncs.py
Signature
def legendre_p ( n , z , * , diff_n = 0 ) Summary
Legendre polynomial of the first kind.
Parameters
n: ArrayLike[int]Degree of the Legendre polynomial. Must have
n >= 0.z: ArrayLike[float]Input value.
diff_n: Optional[int]A non-negative integer. Compute and return all derivatives up to order
diff_n. Default is 0.
Returns
p: ndarray or tuple[ndarray]Legendre polynomial with
diff_nderivatives.
See also
Aliases
-
scipy.special.legendre_p