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 ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé
Module « scipy.special »

Fonction poch - module scipy.special

Signature de la fonction poch

def poch(*args, **kwargs) 

Description

help(scipy.special.poch)

poch(x1, x2, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature])

poch(z, m, out=None)

Pochhammer symbol.

The Pochhammer symbol (rising factorial) is defined as

.. math::

    (z)_m = \frac{\Gamma(z + m)}{\Gamma(z)}

For positive integer `m` it reads

.. math::

    (z)_m = z (z + 1) ... (z + m - 1)

See [dlmf]_ for more details.

Parameters
----------
z, m : array_like
    Real-valued arguments.
out : ndarray, optional
    Optional output array for the function results

Returns
-------
scalar or ndarray
    The value of the function.

References
----------
.. [dlmf] Nist, Digital Library of Mathematical Functions
    https://dlmf.nist.gov/5.2#iii

Examples
--------
>>> import scipy.special as sc

It is 1 when m is 0.

>>> sc.poch([1, 2, 3, 4], 0)
array([1., 1., 1., 1.])

For z equal to 1 it reduces to the factorial function.

>>> sc.poch(1, 5)
120.0
>>> 1 * 2 * 3 * 4 * 5
120

It can be expressed in terms of the gamma function.

>>> z, m = 3.7, 2.1
>>> sc.poch(z, m)
20.529581933776953
>>> sc.gamma(z + m) / sc.gamma(z)
20.52958193377696


Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les fondamentaux
Voir le programme détaillé