std::tgamma
De cppreference.com
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Déclaré dans l'en-tête <cmath> | ||
float tgamma(float arg ); | (depuis C++11) | |
double tgamma(double arg ); | (depuis C++11) | |
longdouble tgamma(longdouble arg ); | (depuis C++11) | |
double tgamma( Integral arg ); | (depuis C++11) | |
Calcule la fonction gamma de
arg
.Original:
Computes the fonction gamma of
arg
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Sommaire |
[modifier]Paramètres
arg | - | valeur du point flottant Original: floating point value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier]Retourne la valeur
La valeur de la fonction gamma de
0targ-1
e-t dt .
arg
, c'est ∫∞0targ-1
e-t dt .
Original:
The value of the gamma function of
0targ-1
e-t dt.
arg
, that is ∫∞0targ-1
e-t dt.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Si
arg
est un nombre naturel, std::tgamma(arg) est la factorielle de arg-1
.Original:
If
arg
is a natural number, std::tgamma(arg) is the factorial of arg-1
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier]Exceptions
Si
arg
est négatif, une erreur de domaine peut se produire et FE_INVALID peut être soulevée .Original:
If
arg
is negative, domain error may occur and FE_INVALID may be raised.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Si
arg
est égal à zéro, erreur de pôle peut se produire et FE_DIVBYZERO peut être soulevée .Original:
If
arg
is zero, pole error may occur and FE_DIVBYZERO may be raised.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Si
arg
est trop grande, l'erreur peut se produire plage et FE_OVERFLOW peut être soulevée .Original:
If
arg
is too large, range error may occur and FE_OVERFLOW may be raised.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Si
arg
est trop petite erreur peut se produire plage et FE_UNDERFLOW peut être soulevée .Original:
If
arg
is too small, range error may occur and FE_UNDERFLOW may be raised.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier]Notes
De nombreuses implémentations de calculer exactement le nombre entier le domaine factorielle si l'argument est un entier suffisamment petit .
Original:
Many implementations calculate the exact integer-domain factorial if the argument is a sufficiently small integer.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier]Exemple
#include <iostream>#include <cmath>double factorial(double arg){return std::tgamma(arg +1);}int main(){std::cout<<"The factorial of 5 is "<< factorial(5)<<'\n'<<"The factorial of 100 is "<< factorial(100)<<'\n';}
Résultat :
The factorial of 5 is 120 The factorial of 100 is 9.33262e+157
[modifier]Voir aussi
(C++11) | logarithme naturel de la fonction gamma Original: natural logarithm of the gamma function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) |
[modifier]Liens externes
Weisstein, Eric W. "Gamma Function." De MathWorld - Une ressource Web Wolfram .
Original:
Weisstein, Eric W. "Gamma Function." From MathWorld--A Wolfram Web Resource.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.