Click or drag to resize
SfunLog1p Method
Returns log(1+x), the logarithm of (x plus 1).

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public static double Log1p(
	double x
)

Parameters

x
Type: SystemDouble
A double value representing the argument.

Return Value

Type: Double
A double value representing Log(1+x).
Remarks

Specifically:

{\rm Log1p}(\pm 0) returns \pm 0.

{\rm Log1p}(-1) returns -\infty.

{\rm Log1p}(x) returns NaN, if x \lt -1.

{\rm Log1p}(\pm \infty) returns \pm \infty.

See Also