共用方式為


StrictMath.Expm1(Double) Method

Definition

Returns e<sup>x</sup>&nbsp;-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>&nbsp;-1.

Returns

the value e<sup>x</sup>&nbsp;-&nbsp;1.

Attributes

Remarks

Returns e<sup>x</sup>&nbsp;-1. Note that for values of x near 0, the exact sum of expm1(x)&nbsp;+&nbsp;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.

Applies to