SINH(3M)SINH(3M) NAME cosh, sinh, tanh, coshf, sinhf, tanhf, coshl, sinhl, tanhl, ccosh, csinh, ctanh, ccoshf, csinhf, ctanhf, ccoshl, csinhl, ctanhl - hyperbolic functions SYNOPSIS #include <math.h> double cosh(double x); float coshf(float x); long double coshl(long double x); double sinh(double x); float sinhf(float x); long double sinhl(long double x); double tanh(double x); float tanhf(float x); long double tanhl(long double x); #include <complex.h> double complex ccosh(double complex z); float complex ccoshf(float complex z); long double complex ccoshl(long double complex z); double complex csinh(double complex z); float complex csinhf(float complex z); long double complex csinhl(long double complex z); double complex ctanh(double complex z); float complex ctanhf(float complex z); long double complex ctanhl(long double complex z); DESCRIPTION Alternate entries exist for several routines. The following lists these routines and the ANSI standard name and the alternate entry name: ANSI standard name Alternate name sinhf fsinh coshf fcosh tanhf ftanh coshl qcosh sinhl qsinh tanhl qtanh The ctanh, csinh, and ccosh functions are not available for programs compiled with the O32 ABI. The long double and single-precision routines listed above are only available in the standard math library, -lm and in -lmx. These functions compute the designated hyperbolic functions for the different argument types. Errors Below 2.4 ULPs; a ULP is one Unit in the Last Place. NOTES Long double operations on this system are only supported in round-to- nearest rounding mode (the default). The system must be in round-to- nearest rounding mode when calling any of the long double functions, or incorrect answers will result. Users concerned with portability to other computer systems should note that the long double and float versions of these functions were optional according to the ANSI C Programming Language Specification ISO/IEC 9899 : 1990 (E) and are no longer optional according to ISO/IEC 9899:1999(E). Long double functions have been renamed to be compliant with the ANSI-C standard, however to be backward compatible, they may still be called with the double precision function name prefixed with a q. RETURN VALUES Functions in the standard math library libm.a, are referred to as -lm versions. Those in math library libmx.a are referred to as -lmx versions. Those in the the BSD math library libm43.a are referred to as -lm43 versions. The -lm and -lmx versions always return the default Quiet NaN and set errno to EDOM when a NaN is used as an argument. A NaN argument usually causes the -lm43 versions to return the same argument. The -lm43 versions never set errno. The value of HUGE_VAL is IEEE Infinity. If the correct result would overflow, the cosh functions return HUGE_VAL. The sinh functions return HUGE_VAL for positive x and -HUGE_VAL for negative x. The -lm versions also set errno to ERANGE for any overflow. See matherr(3M) for a description of error handling for -lmx functions. SEE ALSO math(3M), matherr(3M)