C库函数 log()

Python/Java学习交流群:369606713


C库函数 log()

#include <stdio.h>

#include <math.h>



int main () {

   double x, ret;

   x = 2.7;



   /* finding log(2.7) */

   ret = log(x);

   printf("log(%lf) = %lf", x, ret);



   return(0);

}