Provided by:
manpages-fr_1.67.0-1_all 
NOM
tgamma, tgammaf, tgammal - Véritables fonctions Gamma.
SYNOPSIS
#include <math.h>
double tgamma(double x);
float tgammaf(float x);
long double tgammal(long double x);
DESCRIPTION
La fonction Gamma est définie ainsi :
Gamma(x) = intégrale de 0 à l’infini de t^(x-1) e^-t dt
Elle est déféinie pour tous réels sauf les entiers négatifs ou nuls.
Pour un entier non-négatif m on a
Gamma(m+1) = m!
et, plus généralement pour tout x:
Gamma(x+1) = x * Gamma(x)
Pour x < 0.5 on peut écrire
Gamma(x) * Gamma(1-x) = PI/sin(PI*x)
Ces fonctions renvoient la valeur de la fonction Gamma pour l’argument
x. Le préfixe « t » signifie « true gamma » (« véritable fonction
Gamma ») car il existe deja une fonction gamma() qui retourne un autre
résultat.
ERREURS
Une application voulant vérifier les conditions d’erreur doit mettre
errno à zéro et appeler feclearexcept(FE_ALL_EXCEPT) avant d’invoquer
ces fontions. En retour, si errno est non nul ou si
fetestexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW)
est non nul, une erreur s’est produite.
Une erreur d’échelle survient si x est trop grand. Une erreur de pôle
survient si x est nul. Une erreur de domaine (ou erreur de pôle)
survient si x est un entier négatif.
CONFORME À
C99.
VOIR AUSSI
lgamma(3), gamma(3)
TRADUCTION
Thierry Vignaud <tvignaud@mandrakesoft.com>, 2002
Christophe Blaess, 2003.