Click or drag to resize
MoreMathLogOnePlus Method
Computes log(1+x).

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


Type: SystemDouble
The argument.

Return Value

Type: Double
The value of log(1+x).

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.

See Also