log functions


[Syntax]

double log(double x)

float logf(float x)

[Description]

These functions calculate the natural logarithm of x with e as the base.

 

[Special case]

Condition

Return value

Exception

x<0

NaN

EDOM

x==0

-∞

ERANGE