橘子味的心
标题:C库函数 log()

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

}

目录

分类