public static double ExpMinusOne( double x )
Public Shared Function ExpMinusOne ( x As Double ) As Double
public: static double ExpMinusOne( double x )
static member ExpMinusOne : x : float -> float
If x is close to 0, then ex is close to 1, and computing ex-1 by Math.Exp(x) - 1.0 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.