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. |
Defined in header <cmath>
|
||
float tgamma( float arg ); |
(desde C++11) | |
double tgamma( double arg ); |
(desde C++11) | |
long double tgamma( long double arg ); |
(desde C++11) | |
double tgamma( Integral arg ); |
(desde C++11) | |
Calcula el gamma función de
arg
.Original:
Computes the gamma función 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.
Contenido |
[editar] Parámetros
arg | - | flotando valor en puntos
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. |
[editar] Valor de retorno
El valor de la función gamma de
0targ-1
e-t dt .
arg
, que es ∫∞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
es un número natural, std::tgamma(arg) es el factorial 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.
[editar] Excepciones
Si
arg
es negativo, el error de dominio puede ocurrir y FE_INVALID haber erupción .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
es cero, polo error puede ocurrir y FE_DIVBYZERO haber erupción .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
es demasiado grande, el error de rango se puede producir y puede ser levantado FE_OVERFLOW .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
es demasiado pequeña, el error de rango se puede producir y puede ser levantado FE_UNDERFLOW .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.
[editar] Notas
Muchas implementaciones de calcular exactamente el número entero de dominio factorial si el argumento es un entero suficientemente pequeño .
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.
[editar] Ejemplo
#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
[editar] Ver también
(C++11) |
logaritmo natural de la función 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. (función) |
[editar] Enlaces externos
Weisstein, Eric W. "Gamma Function." De MathWorld - Un recurso del 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.