MathF.Cosh(Single) 方法

定义

返回指定角度的双曲余弦值。Returns the hyperbolic cosine of the specified angle.

public:
 static float Cosh(float x);
public static float Cosh (float x);
static member Cosh : single -> single
Public Shared Function Cosh (x As Single) As Single

参数

x
Single

以弧度计量的角度。An angle, measured in radians.

返回

x 的双曲余弦值。The hyperbolic cosine of x. 如果 x 等于 NegativeInfinityPositiveInfinity,则返回 PositiveInfinityIf x is equal to NegativeInfinity or PositiveInfinity, PositiveInfinity is returned. 如果 x 等于 NaN,则返回 NaNIf x is equal to NaN, NaN is returned.

注解

角度 ( x) 必须为弧度。The angle, x, must be in radians. MathF.PI乘以/180 将度转换为弧度。Multiply by MathF.PI/180 to convert degrees to radians.

适用于