log,
logf
[natural logarithms]
SYNOPSIS
#include <math.h> double log(double x); float logf(float x);DESCRIPTION
You can use the (non-ANSI) function, matherr, to specify error handling for these functions.
RETURNS
Normally, returns the calculated
value. When x
is zero, the returned value is -HUGE_VAL
and errno
is set to ERANGE.
When x
is negative, the returned value is
-HUGE_VAL
and errno
is set to EDOM.
You can control the error behavior via matherr.
COMPLIANCE
log
is ANSI, logf
is an extension.