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