]>
Commit | Line | Data |
---|---|---|
fea681da | 1 | .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) |
4a3c2783 MK |
2 | .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk |
3 | .\" <mtk.manpages@gmail.com> | |
fea681da | 4 | .\" |
5fbde956 | 5 | .\" SPDX-License-Identifier: Linux-man-pages-copyleft |
fea681da MK |
6 | .\" |
7 | .\" References consulted: | |
8 | .\" Linux libc source code | |
9 | .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) | |
10 | .\" 386BSD man pages | |
11 | .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu) | |
12 | .\" Modified 1996-06-08 by aeb | |
13 | .\" Modified 2002-07-27 by Walter Harms | |
14 | .\" (walter.harms@informatik.uni-oldenburg.de) | |
15 | .\" | |
1ae6b2c7 | 16 | .TH SINH 3 2021-03-22 GNU "Linux Programmer's Manual" |
fea681da MK |
17 | .SH NAME |
18 | sinh, sinhf, sinhl \- hyperbolic sine function | |
d11bace6 AC |
19 | .SH LIBRARY |
20 | Math library | |
8fc3b2cf | 21 | .RI ( libm ", " \-lm ) |
fea681da MK |
22 | .SH SYNOPSIS |
23 | .nf | |
24 | .B #include <math.h> | |
68e4db0a | 25 | .PP |
fea681da | 26 | .BI "double sinh(double " x ); |
fea681da | 27 | .BI "float sinhf(float " x ); |
fea681da MK |
28 | .BI "long double sinhl(long double " x ); |
29 | .fi | |
68e4db0a | 30 | .PP |
d39ad78f | 31 | .RS -4 |
4a3c2783 MK |
32 | Feature Test Macro Requirements for glibc (see |
33 | .BR feature_test_macros (7)): | |
d39ad78f | 34 | .RE |
68e4db0a | 35 | .PP |
4a3c2783 MK |
36 | .BR sinhf (), |
37 | .BR sinhl (): | |
9d2adbae | 38 | .nf |
5c10d2c5 | 39 | _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L |
9d2adbae MK |
40 | || /* Since glibc 2.19: */ _DEFAULT_SOURCE |
41 | || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE | |
42 | .fi | |
fea681da | 43 | .SH DESCRIPTION |
5600f73a | 44 | These functions return the hyperbolic sine of |
022671eb MK |
45 | .IR x , |
46 | which | |
658670de | 47 | is defined mathematically as: |
a2b7a144 | 48 | .PP |
658670de | 49 | .nf |
658670de MK |
50 | sinh(x) = (exp(x) \- exp(\-x)) / 2 |
51 | .fi | |
47297adb | 52 | .SH RETURN VALUE |
4a3c2783 MK |
53 | On success, these functions return the hyperbolic sine of |
54 | .IR x . | |
847e0d88 | 55 | .PP |
4a3c2783 MK |
56 | If |
57 | .I x | |
58 | is a NaN, a NaN is returned. | |
847e0d88 | 59 | .PP |
4a3c2783 MK |
60 | If |
61 | .I x | |
62 | is +0 (\-0), +0 (\-0) is returned. | |
847e0d88 | 63 | .PP |
4a3c2783 MK |
64 | If |
65 | .I x | |
66 | is positive infinity (negative infinity), | |
67 | positive infinity (negative infinity) is returned. | |
847e0d88 | 68 | .PP |
4a3c2783 | 69 | If the result overflows, |
efe294cb | 70 | a range error occurs, |
4a3c2783 MK |
71 | and the functions return |
72 | .BR HUGE_VAL , | |
73 | .BR HUGE_VALF , | |
74 | or | |
75 | .BR HUGE_VALL , | |
76 | respectively, with the same sign as | |
77 | .IR x . | |
78 | .\" | |
385cf745 | 79 | .\" POSIX.1-2001 documents an optional range error (underflow) |
4a3c2783 MK |
80 | .\" for subnormal x; |
81 | .\" glibc 2.8 does not do this. | |
82 | .SH ERRORS | |
83 | See | |
84 | .BR math_error (7) | |
85 | for information on how to determine whether an error has occurred | |
86 | when calling these functions. | |
87 | .PP | |
88 | The following errors can occur: | |
89 | .TP | |
90 | Range error: result overflow | |
91 | .I errno | |
92 | is set to | |
93 | .BR ERANGE . | |
94 | An overflow floating-point exception | |
95 | .RB ( FE_OVERFLOW ) | |
96 | is raised. | |
d6d9561a MS |
97 | .SH ATTRIBUTES |
98 | For an explanation of the terms used in this section, see | |
99 | .BR attributes (7). | |
c466875e MK |
100 | .ad l |
101 | .nh | |
d6d9561a MS |
102 | .TS |
103 | allbox; | |
c466875e | 104 | lbx lb lb |
d6d9561a MS |
105 | l l l. |
106 | Interface Attribute Value | |
107 | T{ | |
108 | .BR sinh (), | |
109 | .BR sinhf (), | |
110 | .BR sinhl () | |
111 | T} Thread safety MT-Safe | |
112 | .TE | |
c466875e MK |
113 | .hy |
114 | .ad | |
115 | .sp 1 | |
47297adb | 116 | .SH CONFORMING TO |
9a74e018 | 117 | C99, POSIX.1-2001, POSIX.1-2008. |
847e0d88 | 118 | .PP |
4a3c2783 MK |
119 | The variant returning |
120 | .I double | |
121 | also conforms to | |
68e1685c | 122 | SVr4, 4.3BSD, C89. |
47297adb | 123 | .SH SEE ALSO |
fea681da MK |
124 | .BR acosh (3), |
125 | .BR asinh (3), | |
126 | .BR atanh (3), | |
127 | .BR cosh (3), | |
36268806 | 128 | .BR csinh (3), |
fea681da | 129 | .BR tanh (3) |