log

Calculate the natural logarithm of x.

Special Values
xlog(x)divide by 0?invalid?
±0.0-∞yesno
<0.0NaNnoyes
+∞+∞nono
@safe pure nothrow @nogc
real
log
(
real x
)

Examples

assert(feqrel(log(E), 1) >= real.mant_dig - 1);

Meta

Suggestion Box / Bug Report