Mega Code Archive

 
Categories / C / Code Snippets
 

Computes the absolute value of the gamma and returns its natural logarithm

//Declaration: float lgammaf(float arg); double lgamma(double arg); long double lgammal(long double arg); #include <math.h> #include <stdio.h> int main(void) { printf("%f", lgammaf (4.8)); return 0; }