United States-English |
|
|
HP-UX Reference > Ccosh(3M)HP-UX 11i Version 3: February 2007 |
|
NAMEcosh(), coshf(), coshl(), coshw(), coshq() — hyperbolic cosine functions DESCRIPTIONcosh() returns the hyperbolic cosine of x. coshf() is a float version of cosh(); it takes a float argument and returns a float result. USAGETo use these functions compile either with the default -Ae option or with the -Aa and the -D_HPUX_SOURCE options. To use (for Integrity servers) coshw() or coshq(), compile also with the -fpwidetypes option. To use any of these functions, make sure your program includes <math.h>, and link in the math library by specifying -lm on the compiler or linker command line. For more information, see the HP-UX floating-point guide for HP Integrity servers at the following site: http://www.hp.com/go/fp. RETURN VALUEcosh(±0) returns 1. If x is ±INFINITY, cosh() returns +INFINITY. If x is NaN, cosh() returns NaN. cosh() returns infinity (equal to HUGE_VAL) in lieu of a value whose magnitude is too large, and raise the overflow and inexact exceptions. When it raises no other exception, whether cosh() raises the inexact exception is unspecified. |
Printable version | ||
|