1SINH(3P)                   POSIX Programmer's Manual                  SINH(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       sinh, sinhf, sinhl — hyperbolic sine functions
13

SYNOPSIS

15       #include <math.h>
16
17       double sinh(double x);
18       float sinhf(float x);
19       long double sinhl(long double x);
20

DESCRIPTION

22       The functionality described on this reference page is aligned with  the
23       ISO C  standard.  Any  conflict between the requirements described here
24       and the ISO C standard is unintentional. This  volume  of  POSIX.1‐2017
25       defers to the ISO C standard.
26
27       These functions shall compute the hyperbolic sine of their argument x.
28
29       An  application  wishing to check for error situations should set errno
30       to zero and  call  feclearexcept(FE_ALL_EXCEPT)  before  calling  these
31       functions. On return, if errno is non-zero or fetestexcept(FE_INVALID |
32       FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW) is non-zero,  an  error  has
33       occurred.
34

RETURN VALUE

36       Upon successful completion, these functions shall return the hyperbolic
37       sine of x.
38
39       If the result would cause an overflow, a range error  shall  occur  and
40       ±HUGE_VAL,  ±HUGE_VALF,  and ±HUGE_VALL (with the same sign as x) shall
41       be returned as appropriate for the type of the function.
42
43       If x is NaN, a NaN shall be returned.
44
45       If x is ±0 or ±Inf, x shall be returned.
46
47       If x is subnormal, a range error may occur
48       and x should be returned.
49
50       If x is not returned, sinh(), sinhf(),  and  sinhl()  shall  return  an
51       implementation-defined  value  no  greater  in  magnitude than DBL_MIN,
52       FLT_MIN, and LDBL_MIN, respectively.
53

ERRORS

55       These functions shall fail if:
56
57       Range Error The result would cause an overflow.
58
59                   If the integer expression (math_errhandling  &  MATH_ERRNO)
60                   is  non-zero,  then errno shall be set to [ERANGE].  If the
61                   integer expression (math_errhandling &  MATH_ERREXCEPT)  is
62                   non-zero,  then the overflow floating-point exception shall
63                   be raised.
64
65       These functions may fail if:
66
67       Range Error The value x is subnormal.
68
69                   If the integer expression (math_errhandling  &  MATH_ERRNO)
70                   is  non-zero,  then errno shall be set to [ERANGE].  If the
71                   integer expression (math_errhandling &  MATH_ERREXCEPT)  is
72                   non-zero, then the underflow floating-point exception shall
73                   be raised.
74
75       The following sections are informative.
76

EXAMPLES

78       None.
79

APPLICATION USAGE

81       On  error,  the  expressions  (math_errhandling   &   MATH_ERRNO)   and
82       (math_errhandling  & MATH_ERREXCEPT) are independent of each other, but
83       at least one of them must be non-zero.
84

RATIONALE

86       None.
87

FUTURE DIRECTIONS

89       None.
90

SEE ALSO

92       asinh(), cosh(), feclearexcept(), fetestexcept(), isnan(), tanh()
93
94       The Base Definitions volume of POSIX.1‐2017, Section 4.20, Treatment of
95       Error Conditions for Mathematical Functions, <math.h>
96
98       Portions  of  this text are reprinted and reproduced in electronic form
99       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
100       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
101       cations Issue 7, 2018 Edition, Copyright (C) 2018 by the  Institute  of
102       Electrical  and  Electronics Engineers, Inc and The Open Group.  In the
103       event of any discrepancy between this version and the original IEEE and
104       The  Open Group Standard, the original IEEE and The Open Group Standard
105       is the referee document. The original Standard can be  obtained  online
106       at http://www.opengroup.org/unix/online.html .
107
108       Any  typographical  or  formatting  errors that appear in this page are
109       most likely to have been introduced during the conversion of the source
110       files  to  man page format. To report such errors, see https://www.ker
111       nel.org/doc/man-pages/reporting_bugs.html .
112
113
114
115IEEE/The Open Group                  2017                             SINH(3P)
Impressum