log

Calculates the natural logarithm.

double log (double x);

Required Header
<math.h>

Return Value

This function returns the natural logarithm of a double precision floating point number. If x <= 0.0 then errno is set to EDOM and the result is 0.0

Parameters

x

  The value to be converted

Mathematics

See Also    exp, log10