tanh

Computes the hyperbolic tangent of the specified argument.

Library:LibC
Classification:ANSI
Service:Math

Syntax

  #include <math.h> 
   
  double tanh (
     double   x);
  

Parameters

x

(IN) Specifies the argument whose hyperbolic tangent is to be computed.

Return Values

If successful, returns the hyperbolic tangent value. When an error has occurred, errno is set.

Remarks

When the x argument is large, partial or total loss of significance can occur. The matherr function is called in this case.

See Also