The C library function double tanh(double x) returns the hyperbolic tangent of x.
double tanh(double x)
#include #include int main () { double x, ret; x = 0.5; ret = tanh(x); printf("The hyperbolic tangent of %lf is %lf degrees", x, ret); return(0); }
The hyperbolic tangent of 0.500000 is 0.462117 degrees