The OpenD Programming Language

log1p

Calculates the natural logarithm of 1 + x.

For very small x, log1p(x) will be more accurate than log(1 + x).

Special Values
xlog1p(x)divide by 0?invalid?
±0.0±0.0nono
-1.0-∞yesno
<-1.0-NaNnoyes
+∞+∞nono
  1. real log1p(real x)
  2. double log1p(double x)
  3. float log1p(float x)
    pragma(inline, true) @safe pure nothrow @nogc
    float
    log1p
    (
    float x
    )

Meta