TANH 3CW "09 March 2006" "mathcw-1.00"

Table of contents


NAME

tanhf, tanh, tanhl, tanhw, tanhq, tanhll, tanhdf, tanhd, tanhdl, tanhdll - hyperbolic tangent function

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>

extern float tanhf (float x);

extern double tanh (double x);

extern long double tanhl (long double x);

extern __float80 tanhw (__float80 x);

extern __float128 tanhq (__float128 x);

extern long_long_double tanhll (long_long_double x);

extern decimal_float tanhdf (decimal_float x);

extern decimal_double tanhd (decimal_double x);

extern decimal_long_double tanhdl (decimal_long_double x);

extern decimal_long_long_double tanhdll (decimal_long_long_double x);

NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.


DESCRIPTION

Compute the hyperbolic tangent of x. The argument should be in the range [-Infinity, +Infinity].

RETURN VALUES

If the argument is finite or Infinity, the returned value of the hyperbolic tangent lies in [-1,+1], and has the same sign as the argument (even a zero argument). Otherwise, the returned value is a NaN.

ERRORS

If the argument is a NaN, return the argument, and set errno to EDOM.

SEE ALSO

acosh(3CW), asinh(3CW), atanh(3CW), cosh(3CW), sinh(3CW), sinhcosh(3CW).