]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/sinh.3
Many pages: Fix style issues reported by `make lint-groff`
[thirdparty/man-pages.git] / man3 / sinh.3
CommitLineData
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
18sinh, sinhf, sinhl \- hyperbolic sine function
d11bace6
AC
19.SH LIBRARY
20Math 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
32Feature 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 44These functions return the hyperbolic sine of
022671eb
MK
45.IR x ,
46which
658670de 47is 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
53On success, these functions return the hyperbolic sine of
54.IR x .
847e0d88 55.PP
4a3c2783
MK
56If
57.I x
58is a NaN, a NaN is returned.
847e0d88 59.PP
4a3c2783
MK
60If
61.I x
62is +0 (\-0), +0 (\-0) is returned.
847e0d88 63.PP
4a3c2783
MK
64If
65.I x
66is positive infinity (negative infinity),
67positive infinity (negative infinity) is returned.
847e0d88 68.PP
4a3c2783 69If the result overflows,
efe294cb 70a range error occurs,
4a3c2783
MK
71and the functions return
72.BR HUGE_VAL ,
73.BR HUGE_VALF ,
74or
75.BR HUGE_VALL ,
76respectively, 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
83See
84.BR math_error (7)
85for information on how to determine whether an error has occurred
86when calling these functions.
87.PP
88The following errors can occur:
89.TP
90Range error: result overflow
91.I errno
92is set to
93.BR ERANGE .
94An overflow floating-point exception
95.RB ( FE_OVERFLOW )
96is raised.
d6d9561a
MS
97.SH ATTRIBUTES
98For 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
103allbox;
c466875e 104lbx lb lb
d6d9561a
MS
105l l l.
106Interface Attribute Value
107T{
108.BR sinh (),
109.BR sinhf (),
110.BR sinhl ()
111T} Thread safety MT-Safe
112.TE
c466875e
MK
113.hy
114.ad
115.sp 1
47297adb 116.SH CONFORMING TO
9a74e018 117C99, POSIX.1-2001, POSIX.1-2008.
847e0d88 118.PP
4a3c2783
MK
119The variant returning
120.I double
121also conforms to
68e1685c 122SVr4, 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)