StrictMath.Expm1(Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns e<sup>x</sup> -1.
[Android.Runtime.Register("expm1", "(D)D", "")]
public static double Expm1 (double x);
[<Android.Runtime.Register("expm1", "(D)D", "")>]
static member Expm1 : double -> double
Parameters
- x
- Double
the exponent to raise e to in the computation of
e<sup>x
</sup> -1.
Returns
the value e<sup>x
</sup> - 1.
- Attributes
Remarks
Returns e<sup>x</sup> -1. Note that for values of x near 0, the exact sum of expm1(x)
+ 1 is much closer to the true result of e<sup>x</sup> than exp(x)
.
Special cases: <ul> <li>If the argument is NaN, the result is NaN.
<li>If the argument is positive infinity, then the result is positive infinity.
<li>If the argument is negative infinity, then the result is -1.0.
<li>If the argument is zero, then the result is a zero with the same sign as the argument.
</ul>
Added in 1.5.
Java documentation for java.lang.StrictMath.expm1(double)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.