The OpenD Programming Language

exp

Calculates ex.

Special Values
xex
+∞+∞
-∞+0.0
NaNNaN
  1. real exp(real x)
  2. double exp(double x)
  3. float exp(float x)
  4. double exp(double x)
    version(!none)
    pragma(inline, true) @safe pure nothrow @nogc
    double
    exp
    (
    double x
    )
  5. 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