C99 | double atanh (double x);
float atanhf (float x); long double atanhl (long double x); |
C++11 | double atanh (double x);
float atanh (float x); long double atanh (long double x); double atanh (T x); // additional overloads for integral types |
C99 | 头文件<tgmath.h> 提供了该函数的类型泛型宏版本。 |
C++11 | 这个头文件(<cmath>) 为整型提供了额外的重载:这些重载在计算之前将x转换为double
(在T是任何整型时定义)。
这个函数在<complex> 中也重载(参见complex atanh)。 |
/* atanh example */ #include <stdio.h> /* printf */ #include <math.h> /* tanh, atanh */ int main () { double param, result; param = tanh(1); result = atanh(param) ; printf ("The area hyperbolic tangent of %f is %f.\n", param, result); return 0; } |
tanh | 双曲正切(function ) |
acosh | 反双曲余弦(函数) |
asinh | 反双曲正弦(函数) |