bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / special / _basic / polygamma
function
scipy.special._basic:polygamma
source: build-install/usr/lib/python3.14/site-packages/scipy/special/_basic.py:1646
Signature
def polygamma(n, x)Summary
Polygamma functions.
Extended Summary
Defined as where is the digamma function. See [dlmf] for details.
Parameters
n: array_likeThe order of the derivative of the digamma function; must be integral
x: array_likeReal valued input
Returns
: ndarrayFunction results
Examples
from scipy import special x = [2, 3, 25.5]✓
special.polygamma(1, x) special.polygamma(0, x) == special.psi(x)✗
array([ True, True, True])
See also
- digamma
Aliases
scipy.special.polygamma