#include <math.h>
double tanh( double arg );
函数返回参数 arg 的双曲正切值。
#include <stdio.h>
#include <math.h>
int main(void)
{
    double result, x;
    x = 0.5;
    result = tanh(x);
    printf("The hyperbolic tangent of %lf is %lf\n", x, result);
    return 0;
}输出结果:
The hyperbolic tangent of 0.500000 is 0.462117
