5.4 gamma(), gamma_r()

The gamma() and gamma_r() functions both compute the logarithm of the gamma function. They are synonyms for lgamma and lgamma_r.

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


Despite their names, these functions compute the logarithm of the gamma function, not the gamma function itself. To compute the gamma function itself, use tgamma().


These functions are deprecated in ARM® Compiler 4.1 and later.
Non-ConfidentialPDF file icon PDF versionARM DUI0475M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.