MathF.Atanh(Single) 方法

定义

返回双曲正切值为指定数字的角度。Returns the angle whose hyperbolic tangent is the specified number.

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

参数

x
Single

一个表示双曲正切值的数字,其中 x 必须大于等于 -1 但小于等于 1。A number representing a hyperbolic tangent, where x must be greater than or equal to -1, but less than or equal to 1.

返回

角度 θ,以弧度为单位,满足 -∞ < θ <-1 或 1 < θ < ∞。An angle, θ, measured in radians, such that -∞ < θ <-1, or 1 < θ < ∞.

-or- 如果 x < -1 或 x > 1 或 x 等于 NaN,则为 NaNNaN if x < -1 or x > 1 or x equals NaN.

注解

将返回值乘以 180/MathF.PI , 以将弧度转换为度。Multiply the return value by 180/MathF.PI to convert from radians to degrees.

适用于