This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

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_like

The order of the derivative of the digamma function; must be integral

x : array_like

Real valued input

Returns

: ndarray

Function 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