| |||

Home > Floating-point Support > The math library, mathlib > Gamma function (gamma, gamma_r) |

double gamma(double x); double gamma_r(double x, int *);

These functions both compute the logarithm of the gamma function.
They are synonyms for `lgamma`

and `lgamma_r`

(see *The logarithm of the gamma function
(lgamma, lgamma_r)*).

Despite their names, these functions compute the logarithm of the gamma function, not the gamma function itself.