tanh
Computes the hyperbolic tangent of the specified argument
#include <math.h>
double tanh (
double x);
The tanh function returns the hyperbolic tangent value. When an error has occurred, errno is set.
The tanh function computes the hyperbolic tangent of x.
When the x argument is large, partial or total loss of significance can occur. The matherr function is called in this case.
#include <math.h> #include <stdio.h> main () { printf ("%f\n", tanh (.5) ); }
produces the following:
0.462117