다음을 통해 공유


StrictMath.Cosh(Double) Method

Definition

Returns the hyperbolic cosine of a double value.

[Android.Runtime.Register("cosh", "(D)D", "")]
public static double Cosh (double x);
[<Android.Runtime.Register("cosh", "(D)D", "")>]
static member Cosh : double -> double

Parameters

x
Double

The number whose hyperbolic cosine is to be returned.

Returns

The hyperbolic cosine of x.

Attributes

Remarks

Returns the hyperbolic cosine of a double value. The hyperbolic cosine of x is defined to be (e<sup>x</sup>&nbsp;+&nbsp;e<sup>-x</sup>)/2 where e is Math#E Euler's number.

Special cases: <ul>

<li>If the argument is NaN, then the result is NaN.

<li>If the argument is infinite, then the result is positive infinity.

<li>If the argument is zero, then the result is 1.0.

</ul>

Added in 1.5.

Java documentation for java.lang.StrictMath.cosh(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