exp

Calculates ex.

Special Values
xex
+∞+∞
-∞+0.0
NaNNaN
  1. real exp(real x)
  2. double exp(double x)
  3. float exp(float x)
    @safe pure nothrow @nogc
    float
    exp
    (
    float x
    )

Examples

assert(exp(0.0) == 1.0);
assert(exp(3.0).feqrel(E * E * E) > 16);

Meta

Suggestion Box / Bug Report