double tanh (double x);
double tanh (double x); float tanhf (float x);long double tanhl (long double x);
double tanh (double x); float tanh (float x);long double tanh (long double x); double tanh (T x); // additional overloads for integral types
<cmath>
)中还为 整数类型 提供了其他重载:这些重载在计算前有效地将 x 转换为 double
(对 T 为任何整数类型 定义)。<complex>
和 <valarray>
中重载(参见 complex tanh 和 valarray tanh)。
|
|
The hyperbolic tangent of 0.693147 is 0.600000. |