#include <math.h>
double log (double x);
float logf(float x);
log() computes the natural logarithm of x.
ln(x), if x is greater than zero. If x is smaller then zero, log() returns NAN; if x is equal to zero, log() returns negative infinity. In both cases, log() sets errno to EDOM.