IMSL C# Numerical Library

Sfun.Log1p Method 

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

public static double Log1p(
   double x
);

Parameters

x
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

Sfun Class | Imsl.Math Namespace