lgamma lgamma_r lgammaf lgammaf_r gamma gamma_r gammaf gammaf_r tgamma - log gamma functions, gamma function
Lb libm
double
lgamma (double x);
double
lgamma_r (double x int *signgamp);
float
lgammaf (float x);
float
lgammaf_r (float x int *signgamp);
double
gamma (double x);
double
gamma_r (double x int *signgamp);
float
gammaf (float x);
float
gammaf_r (float x int *signgamp);
double
tgamma (double x);
The external integer Fa signgam returns the sign of Gamma(x).
lgamma_r (x signgamp);
and
lgammaf_r (x signgamp);
provide the same functionality as
lgamma (x);
and
lgammaf (x);
but the caller must provide an integer to store the sign of Gamma(x).
gamma (,);
gammaf (,);
gamma_r (,);
and
gammaf_r ();
are deprecated aliases for
lgamma (,);
lgammaf (,);
lgamma_r (,);
and
lgammaf_r (,);
respectively.
tgamma (x);
returns Gamma(x), with no effect on
Fa signgam .
lg = lgamma(x); g = signgam*exp(lg);
Only after
lgamma ();
or
lgammaf ();
has returned can signgam be correct.
For arguments in its range,
tgamma ();
is preferred, as for positive arguments
it is accurate to within one unit in the last place.
Exponentiation of
lgamma ();
will lose up to 10 significant bits.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |