Returns log(1+x), the logarithm of (x plus 1).

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static double Log1p(
	double x
)
Visual Basic (Declaration)
Public Shared Function Log1p ( _
	x As Double _
) As Double
Visual C++
public:
static double Log1p(
	double x
)

Parameters

x
Type: System..::.Double
A double value representing the argument.

Return Value

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