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