Java.Lang.Math.Expm1 Method
Returns the closest double approximation of ed- 1.

Syntax

[Android.Runtime.Register("expm1", "(D)D", "")]
public static double Expm1 (double d)

Parameters

d
the value to compute the ed- 1 of.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the closest double approximation of ed- 1. If the argument is very close to 0, it is much more accurate to use expm1(d)+1 than exp(d) (due to cancellation of significant digits). The returned result is within 1 ulp (unit in the last place) of the real result.

For any finite input, the result is not less than -1.0. If the real result is within 0.5 ulp of -1, -1.0 is returned.

Special cases:

  • expm1(+0.0) = +0.0
  • expm1(-0.0) = -0.0
  • expm1(+infinity) = +infinity
  • expm1(-infinity) = -1.0
  • expm1(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