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)