Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les compléments
Voir le programme détaillé
Module « scipy.special »

Fonction polygamma - module scipy.special

Signature de la fonction polygamma

def polygamma(n, x) 

Description

help(scipy.special.polygamma)

Polygamma functions.

Defined as :math:`\psi^{(n)}(x)` where :math:`\psi` 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

See Also
--------
digamma

References
----------
.. [dlmf] NIST, Digital Library of Mathematical Functions,
    https://dlmf.nist.gov/5.15

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)



Vous êtes un professionnel et vous avez besoin d'une formation ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé