Skip to content

tanh, tanhf : hyperbolic tangent

#include <math.h>
double tanh(double x);
float tanhf(float x);
```### Description
tanh computes the hyperbolic tangent of the argument x. Angles are specified in radians. tanh(x) is defined as
```text
sinh(x)/cosh(x)

tanhf is identical, save that it takes and returns float values.### Returns

The hyperbolic tangent of x is returned.


Authoritative source: BUSMASTER DITA help source tanh.dita, compiled into BUSMASTER.CHM with the application.