Copyright © 1997 The Open Group

cosh - hyperbolic cosine function

`#include <math.h> double cosh(double`

x);

Thecosh()function computes the hyperbolic cosine ofx.An application wishing to check for error situations should set

errnoto 0 before callingcosh(). Iferrnois non-zero on return, or the returned value is NaN, an error has occurred.

Upon successful completion,cosh()returns the hyperbolic cosine ofx.If the result would cause an overflow, HUGE_VAL is returned and

errnois set to [ERANGE].If

xis NaN, NaN is returned anderrnomay be set to [EDOM].

Thecosh()function will fail if:

- [ERANGE]
- The result would cause an overflow.
The

cosh()function may fail if:

- [EDOM]
- The value of
xis NaN.No other errors will occur.

None.

None.

None.

acosh(),isnan(),sinh(),tanh(),<math.h>.

Derived from Issue 1 of the SVID.

Copyright © 1997 The Open Group

[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]