cosh(3M)




NAME

     cosh - hyperbolic cosine function


SYNOPSIS

     cc [ flag ... ] file ... -lm [ library ... ]
     #include <math.h>

     double cosh(double x);


DESCRIPTION

     The cosh() function computes the hyperbolic cosine of x.


RETURN VALUES

     Upon successful completion, cosh()  returns  the  hyperbolic
     cosine of x.

     If the result would cause an overflow, HUGE_VAL is  returned
     and errno is set to ERANGE.

     If x is NaN, NaN is returned.

     For exceptional cases, matherr(3M) tabulates the  values  to
     be returned as dictated by Standards other than XPG4.


ERRORS

     The cosh() function will fail if:

     ERANGE
           The result would cause an overflow.


USAGE

     An application wishing to check for error situations  should
     set  errno  to 0 before calling cosh(). If errno is non-zero
     on return, or the  returned  value  is  NaN,  an  error  has
     occurred.


ATTRIBUTES

     See attributes(5) for descriptions of the  following  attri-
     butes:

     ____________________________________________________________
    |       ATTRIBUTE TYPE        |       ATTRIBUTE VALUE       |
    |_____________________________|_____________________________|
    | MT-Level                    | MT-Safe                     |
    |_____________________________|_____________________________|


SEE ALSO

     acosh(3M),  isnan(3M),  matherr(3M),   sinh(3M),   tanh(3M),
     attributes(5), standards(5)


Man(1) output converted with man2html