sinh, cosh, tanh, fsinh, sinhf, fcosh, coshf, ftanh, tanhf, sinhl, coshl,
tanhl - hyperbolic functions
double sinh(double x);
float fsinh(float x);
float sinhf(float x);
long double sinhl(long double x);
double cosh(double x);
float fcosh(float x);
float coshf(float x);
long double coshl(long double x);
double tanh(double x);
float ftanh(float x);
float tanhf(float x);
long double tanhl(long double x);
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 double,
float, and long double arguments.
ERROR (due to Roundoff etc.) [Toc] [Back]
Below 2.4 ulps; an ulp is one Unit in the Last Place.
In the diagnostics below, 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, and 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.
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 are optional
according to the ANSI C Programming Language Specification ISO/IEC 9899 :
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.
W. Kahan, Kwok-Choi Ng
sinh, dsinh, qsinh - FORTRAN hyperbolic sine intrinsic function
real r1, r2
double precision dp1, dp2
real*16 qp1, qp2
r2 = sinh(r1)
dp2 = dsinh(dp1)
dp2 = sinh(dp1)
qp2 = qsinh(qp1)
qp2 = sinh(qp1)
cosh returns the real hyperbolic sine of its real argument, dcosh returns
the double-precision hyperbolic sine of its double-precision argument,
and qcosh returns the real*16 hyperbolic sine of its real*16 argument.
The generic form cosh may be used to return a double-precision value when
given a double-precision argument, or a real*16 value when given a
PPPPaaaaggggeeee 1111 [ Back ]