Description
The
log function computes the natural logarithm of
x. A domain error occurs is the
argument is negative. A range error may occur if the
argument is zero.
Returns
The
log function returns the natural logarithm.
Implementation Notes
If the argument is zero, then
errno is set to ERANGE,
and -HUGE_VAL is returned.
|
If the argument < zero, then
errno is set to EDOM,
and -HUGE_VAL is returned.
|