tanh函数
概要:
#include <math.h> double tanh(double );
描述:
该函数计算参数的双曲正切值。如果参数为非0值且非常接近0,会发生范围错误。
双曲正切函数的数学定义如下所示:
参数:
double
参数为double类型的浮点数。
返回值:
函数返回参数的双曲正切值。
范例:
|
|
输出:
The hyperbolic tangent of 2.000000 is 0.964028.
相关内容:
| tanhf | float类型的双曲正切函数。 |
| tanhl | long double类型的双曲正切函数。 |
| tanhd32 | _Decimal32类型的双曲正切函数。 |
| tanhd64 | _Decimal64类型的双曲正切函数。 |
| tanhd128 | _Decimal128类型的双曲正切函数。 |
主要参考资料: