Java.Lang.StrictMath.Log1p Method
Returns the closest double approximation of the natural logarithm of the sum of the argument and 1.

Syntax

[Android.Runtime.Register("log1p", "(D)D", "")]
public static double Log1p (double d)

Parameters

d
the value to compute the ln(1+d) of.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the closest double approximation of the natural logarithm of the sum of the argument and 1. If the argument is very close to 0, it is much more accurate to use log1p(d) than log(1.0+d) (due to numerical cancellation).

Special cases:

  • log1p(+0.0) = +0.0
  • log1p(-0.0) = -0.0
  • log1p((anything
  • log1p(-1.0) = -infinity
  • log1p(+infinity) = +infinity
  • log1p(-infinity) = NaN
  • log1p(NaN) = NaN

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1