sinh(3) Library Functions Manual sinh(3)
NAME
sinh, cosh, tanh, sinhcosh - Hyperbolic functions
LIBRARY
Math Library (libm.a)
SYNOPSIS
#include <math.h>
double sinh (double x); float sinhf (float x); double cosh (double
x); float coshf (float x); double tanh (double x); float tanhf
(float x); double sinhcosh (double x); float sinhcoshf (float x);
STANDARDS
Interfaces documented on this reference page conform to industry stan-
dards as follows:
cosh(): XPG4
sinh(): XPG4
tanh(): XPG4
Refer to the standards(5) reference page for more information about in-
dustry standards and associated tags.
DESCRIPTION
The sinh() and sinhf() functions compute the hyperbolic sine of x.
Both sinh(x) and sinhf(x) are defined as (exp(x) - exp(-x))/2.
The cosh() and coshf() functions compute the hyperbolic cosine of x.
Both cosh(x) and coshf(x) are defined as (e**x + e**(-x))/2.
The tanh() and tanhf() functions compute the hyperbolic tangent of x.
Both tanh(x) and tanhf(x) are defined as (e**x - e**(-x))/(e**x +
e**(-x)).
The sinhcosh() and sinhcoshf() functions compute both the hyperbolic
sine and hyperbolic cosine of x. Both sinhcosh(x) and sinhcoshf(x) are
defined as sinh x + icosh x.
The following table describes function behavior in response to excep-
tional arguments:
tab(@); lfHB lfHB lfHB l l l . _
Function@Exceptional Argument@Routine Behavior
_
sinh(), sinhf()@|x|>ln(2 * max_float)@Overflow
cosh(), coshf()@|x|>ln(2 * max_float)@Overflow
sinhcosh(), sinhcoshf()@|x|>ln(2 * max_float)@Overflow
_
The following table lists boundary values used by these functions:
tab(@); lfHB lfHB lfHB lfHB l l l l . _
Value Name@Data Type@Hexadecimal Value@Decimal Value
_
ln(2 * max_float)@S_FLOAT@
[email protected]
@T_FLOAT@
[email protected]
_ delim off
sinh(3)