Calculate natural log: how to use log : Log « Math « C / ANSI-C






Calculate natural log: how to use log


#include <stdio.h>
#include <math.h>

int main ()
{
  double p, result;
  float param = 6.5;
  
  
  result = log (param);
  
  printf ("ln(%lf) = %lf\n", param, result );
  
  return 0;
}



           
       








Related examples in the same category

1.How to use logHow to use log
2.How to use log10How to use log10
3. Calculate logarithm base 10: how to use log10