std::tgamma
Da cppreference.com.
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <cmath>
|
||
float tgamma( float arg ); |
(dal C++11) | |
double tgamma( double arg ); |
(dal C++11) | |
long double tgamma( long double arg ); |
(dal C++11) | |
double tgamma( Integral arg ); |
(dal C++11) | |
Calcola la funzione gamma di
arg
.Original:
Computes the funzione 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.
Indice |
[modifica] Parametri
arg | - | valore in virgola mobile
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. |
[modifica] Valore di ritorno
Il valore della funzione gamma di
0targ-1
e-t dt.
arg
, che è ∫∞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.
Se
arg
è un numero naturale, std::tgamma(arg) è il fattoriale di 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.
[modifica] Eccezioni
Se
arg
è negativo, errore di dominio si può verificare e FE_INVALID può essere sollevata.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.
Se
arg
è zero, errore può verificarsi polo e FE_DIVBYZERO può essere sollevata.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.
Se
arg
è troppo grande, l'errore può verificarsi gamma e FE_OVERFLOW può essere sollevata.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.
Se
arg
è troppo piccolo, può verificarsi dell'errore gamma e FE_UNDERFLOW può essere sollevata.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.
[modifica] Note
Molte implementazioni di calcolare l'esatto numero intero dominio fattoriale se l'argomento è un intero sufficientemente piccolo.
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.
[modifica] Esempio
#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'; }
Output:
The factorial of 5 is 120 The factorial of 100 is 9.33262e+157
[modifica] Vedi anche
(C++11) |
logaritmo naturale della funzione 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. (funzione) |
[modifica] Collegamenti esterni
Weisstein, Eric W. "Gamma Function." Da MathWorld - Una risorsa 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.