Skip to content

Commit

Permalink
Merge pull request #11038 from person142/polygamma-doc
Browse files Browse the repository at this point in the history
DOC: special: add a reference for the polygamma function
  • Loading branch information
rgommers committed Nov 10, 2019
2 parents 28e086d + cebb360 commit ce23e88
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions scipy/special/_basic.py
Expand Up @@ -992,21 +992,32 @@ def assoc_laguerre(x, n, k=0.0):


def polygamma(n, x):
"""Polygamma function n.
r"""Polygamma functions.
This is the nth derivative of the digamma (psi) function.
Defined as :math:`\psi^{(n)}(x)` where :math:`\psi` is the
`digamma` function. See [dlmf]_ for details.
Parameters
----------
n : array_like of int
The order of the derivative of `psi`.
n : array_like
The order of the derivative of the digamma function; must be
integral
x : array_like
Where to evaluate the polygamma function.
Real valued input
Returns
-------
polygamma : ndarray
The result.
ndarray
Function results
See Also
--------
digamma
References
----------
.. [dlmf] NIST, Digital Library of Mathematical Functions,
https://dlmf.nist.gov/5.15
Examples
--------
Expand Down

0 comments on commit ce23e88

Please sign in to comment.