tanh


Hyperbolic tangent

[Classification]

Mathematical library

[Syntax]

#include <math.h>

double tanh(double x);

[Return value]

Returns the hyperbolic tangent of x.

If the solution is a denormal number, tanh sets macro ERANGE to global variable errno.

[Description]

This function calculates the hyperbolic tangent of x. Specify the angle in radian. The definition expression is as follows.

 

sinh (x) / cosh (x)