public static double LogOnePlus( double x )
Public Shared Function LogOnePlus ( x As Double ) As Double
public: static double LogOnePlus( double x )
static member LogOnePlus : x : float -> float
If x is close to 0, computing log(1+x) by first adding one and then taking the log can result in a loss of accuracy. This function maintains full precision of all values of x by switching to a series expansion for values of x near zero.