1SINH(3P) POSIX Programmer's Manual SINH(3P)
2
3
4
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
11
13 sinh, sinhf, sinhl — hyperbolic sine functions
14
16 #include <math.h>
17
18 double sinh(double x);
19 float sinhf(float x);
20 long double sinhl(long double x);
21
23 The functionality described on this reference page is aligned with the
24 ISO C standard. Any conflict between the requirements described here
25 and the ISO C standard is unintentional. This volume of POSIX.1‐2008
26 defers to the ISO C standard.
27
28 These functions shall compute the hyperbolic sine of their argument x.
29
30 An application wishing to check for error situations should set errno
31 to zero and call feclearexcept(FE_ALL_EXCEPT) before calling these
32 functions. On return, if errno is non-zero or fetestexcept(FE_INVALID |
33 FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW) is non-zero, an error has
34 occurred.
35
37 Upon successful completion, these functions shall return the hyperbolic
38 sine of x.
39
40 If the result would cause an overflow, a range error shall occur and
41 ±HUGE_VAL, ±HUGE_VALF, and ±HUGE_VALL (with the same sign as x) shall
42 be returned as appropriate for the type of the function.
43
44 If x is NaN, a NaN shall be returned.
45
46 If x is ±0 or ±Inf, x shall be returned.
47
48 If x is subnormal, a range error may occur
49 and x should be returned.
50
51 If x is not returned, sinh(), sinhf(), and sinhl() shall return an
52 implementation-defined value no greater in magnitude than DBL_MIN,
53 FLT_MIN, and LDBL_MIN, respectively.
54
56 These functions shall fail if:
57
58 Range Error The result would cause an overflow.
59
60 If the integer expression (math_errhandling & MATH_ERRNO)
61 is non-zero, then errno shall be set to [ERANGE]. If the
62 integer expression (math_errhandling & MATH_ERREXCEPT) is
63 non-zero, then the overflow floating-point exception shall
64 be raised.
65
66 These functions may fail if:
67
68 Range Error The value x is subnormal.
69
70 If the integer expression (math_errhandling & MATH_ERRNO)
71 is non-zero, then errno shall be set to [ERANGE]. If the
72 integer expression (math_errhandling & MATH_ERREXCEPT) is
73 non-zero, then the underflow floating-point exception shall
74 be raised.
75
76 The following sections are informative.
77
79 None.
80
82 On error, the expressions (math_errhandling & MATH_ERRNO) and
83 (math_errhandling & MATH_ERREXCEPT) are independent of each other, but
84 at least one of them must be non-zero.
85
87 None.
88
90 None.
91
93 asinh(), cosh(), feclearexcept(), fetestexcept(), isnan(), tanh()
94
95 The Base Definitions volume of POSIX.1‐2008, Section 4.19, Treatment of
96 Error Conditions for Mathematical Functions, <math.h>
97
99 Portions of this text are reprinted and reproduced in electronic form
100 from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
101 -- Portable Operating System Interface (POSIX), The Open Group Base
102 Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
103 cal and Electronics Engineers, Inc and The Open Group. (This is
104 POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
105 event of any discrepancy between this version and the original IEEE and
106 The Open Group Standard, the original IEEE and The Open Group Standard
107 is the referee document. The original Standard can be obtained online
108 at http://www.unix.org/online.html .
109
110 Any typographical or formatting errors that appear in this page are
111 most likely to have been introduced during the conversion of the source
112 files to man page format. To report such errors, see https://www.ker‐
113 nel.org/doc/man-pages/reporting_bugs.html .
114
115
116
117IEEE/The Open Group 2013 SINH(3P)