C++ cmath atanh() 函式
定義和用法
The atanh()
function returns the inverse hyperbolic tangent of a number.
The atanh()
function is defined in the <cmath>
header file.
語法
以下之一
atanh(double number);
atanh(float number);
引數值
引數 | 描述 |
---|---|
數字 | Required. A number to find the inverse hyperbolic tangent of, in the range -1 to 1. 如果值超出 -1 到 1 的範圍,則返回 NaN(不是數字)。 If the value is equal to -1 or 1 it returns -infinity or infinity. 如果該數字是整數型別,它將被視為 double 。 |
技術詳情
返回 | A float value (if the argument is float) or double value (in any other case) representing the inverse hyperbolic tangent of a number. |
---|