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. |
|---|