This is documentation for an old release of SciPy (version 0.12.0). Read this page in the documentation of the latest stable release (version 1.15.1).
Polygamma function which is the nth derivative of the digamma (psi) function.
Parameters : | n : array_like of int
x : array_like
|
---|---|
Returns : | polygamma : ndarray
|
Examples
>>> from scipy import special
>>> x = [2, 3, 25.5]
>>> special.polygamma(1, x)
array([ 0.64493407, 0.39493407, 0.03999467])
>>> special.polygamma(0, x) == special.psi(x)
array([ True, True, True], dtype=bool)