exp

Calculates ex.

Special Values
xex
+∞+∞
-∞+0.0
NaNNaN
  1. real exp(real x)
    pragma(inline, true) @trusted pure nothrow @nogc
    real
    exp
    (
    real x
    )
  2. double exp(double x)
  3. float exp(float x)

Examples

import std.math.operations : feqrel;
import std.math.constants : E;

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

Meta