lgamma: computes the absolute value of the gamma and returns its natural logarithm : lgamma « math.h « C / ANSI-C






lgamma: 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 (1.2));

    return 0;
  }

         
        /*
-0.085374*/ 

           
       








Related examples in the same category