cc [ flag ... ] file ... -lm [ library ... ] #include <math.h>double cosh(double x);
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.
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.
See attributes(5) for descriptions of the following attributes:
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|