Click or drag to resize
MoreMathExpMinusOne Method
Computes ex-1.

Namespace:  Meta.Numerics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: (
public static double ExpMinusOne(
	double x


Type: SystemDouble
The argument.

Return Value

Type: Double
The value of ex-1.

If x is close to 0, then ex is close to 1, and computing ex-1 by by subtracting one from ex as computed by the Exp(Double) function will be subject to severe loss of significance due to cancelation. This method maintains full precision for all values of x by switching to a series expansion for values of x near zero.

See Also