tanh(), tanhf()

hyperbolic tangent function 

Function


SYNOPSIS

#include <math.h>

double tanh(double x)

float tanhf(float x)


DESCRIPTION

The tanh() and tanhf() functions compute the hyperbolic tangent of x.

To check for errors, set errno to 0 before calling tanh(). If errno is non-zero on return, or the return value is NaN, an error has occurred.

The tanhf() function is a single-precision version of tanh().


PARAMETERS

x 

Is the value whose hyperbolic tangent is to be computed.


RETURN VALUES

The tanh() function returns the hyperbolic tangent of x.

If x is NaN, NaN is returned and if in POSIX mode, errno is set to EDOM. If in SVID or XOPEN mode, the matherr() function is called.

If it underflows, 0.0 is returned and if in POSIX mode, errno is set to ERANGE. If in SVID or XOPEN mode, the matherr() function is called.


CONFORMANCE

tanh(): ANSI/ISO 9899-1990

tanhf(): PTC MKS Toolkit UNIX APIs extension


MULTITHREAD SAFETY LEVEL

MT-Safe


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
acos(), asin(), atan(), atan2(), cos(), cosh(), math(), sin(), sinh(), tan()


PTC MKS Toolkit 10.4 Documentation Build 39.