Keil Logo

gamma(), gamma_r()

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 *);

Note

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().

Note

These functions are deprecated in ARM® Compiler 4.1 and later.
Non-ConfidentialPDF file icon PDF versionARM DUI0378H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.