expm1
fn
real expm1(real x) @trusted pure nothrow @nogcCalculates the value of the natural logarithm base (e) raised to the power of x, minus 1.
For very small x, expm1(x) is more accurate than exp(x)-1.
| x | ex-1 |
|---|---|
| ±0.0 | ±0.0 |
| +∞ | +∞ |
| -∞ | -1.0 |
| NaN | NaN |
fn
double expm1(double x) @safe pure nothrow @nogcditto
fn
float expm1(float x) @safe pure nothrow @nogcditto