The OpenD Programming Language

expx2

Exponential of squared argument

Computes y = exp(x*x) while suppressing error amplification that would ordinarily arise from the inexactness of the exponential argument x*x.

If sign < 0, the result is inverted; i.e., y = exp(-x*x) .

ACCURACY: Relative error: arithmetic domain # trials peak rms IEEE -106.566, 106.566 10^5 1.6e-19 4.4e-20

package @safe pure nothrow @nogc
T
expx2
(
T
)
(
const T x_
,
int sign
)

Meta