sinh(3M) sinh(3M)
NAME
sinh, sinhf, cosh, coshf, tanh, tanhf, asinh, acosh, atanh - hyper-
bolic functions
SYNOPSIS
cc [flag ...] file ... -lm [library ...]
#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 asinh(double x);
double acosh(double x);
double atanh(double x);
DESCRIPTION
sinh(), cosh(), and tanh() and the single-precision versions sinhf(),
coshf(), and tanhf() return, respectively, the hyberbolic sine,
cosine, and tangent of their argument. asinh(), acosh(), and atanh()
return, respectively, the inverse hyperbolic sine, cosine, and tangent
of their argument.
RESULT
sinh, sinhf, cosh, and coshf return HUGE (and sinh and sinhf may
return -HUGE for negative x) when the correct value would overflow and
set errno to ERANGE.
acosh() returns NaN and sets errno to EDOM when the argument x is less
than 1. A message indicating DOMAIN error is output on standard error.
atanh() returns NaN and sets errno to EDOM if |x| >= 1. If |x| = 1, a
message indicating SING error is output on standard error; if |x| > 1
the message will indicate DOMAIN error.
ERRORS
The following error code descriptions are function-specific. You will
find a general description in introprm2(2) or in errno(5).
Page 1 Reliant UNIX 5.44 Printed 11/98
sinh(3M) sinh(3M)
The acosh() function will fail if:
EDOM The x argument is less than 1.0.
The atanh() function will fail if:
EDOM The x argument has an absolute value greater than 1.0.
The atanh() function will fail if:
ERANGE The x argument has an absolute value equal to 1.0
The asinh(), acosh() and atanh() functions may fail if:
EDOM The value of x is NaN.
NOTES
The functions sinhf(), coshf(), and tanhf() can be used in ANSI mode
only.
SEE ALSO
matherr(3M), math(5).
Page 2 Reliant UNIX 5.44 Printed 11/98