1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\" <mtk.manpages@gmail.com>
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
7 .\" References consulted:
8 .\" Linux libc source code
9 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
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)
16 .TH SINH 3 2021-03-22 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
18 sinh, sinhf, sinhl \- hyperbolic sine function
21 .RI ( libm ", " \-lm )
26 .BI "double sinh(double " x );
27 .BI "float sinhf(float " x );
28 .BI "long double sinhl(long double " x );
32 Feature Test Macro Requirements for glibc (see
33 .BR feature_test_macros (7)):
39 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
40 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
41 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
44 These functions return the hyperbolic sine of
47 is defined mathematically as:
50 sinh(x) = (exp(x) \- exp(\-x)) / 2
53 On success, these functions return the hyperbolic sine of
58 is a NaN, a NaN is returned.
62 is +0 (\-0), +0 (\-0) is returned.
66 is positive infinity (negative infinity),
67 positive infinity (negative infinity) is returned.
69 If the result overflows,
71 and the functions return
76 respectively, with the same sign as
79 .\" POSIX.1-2001 documents an optional range error (underflow)
81 .\" glibc 2.8 does not do this.
85 for information on how to determine whether an error has occurred
86 when calling these functions.
88 The following errors can occur:
90 Range error: result overflow
94 An overflow floating-point exception
98 For an explanation of the terms used in this section, see
106 Interface Attribute Value
111 T} Thread safety MT-Safe
117 C99, POSIX.1-2001, POSIX.1-2008.
119 The variant returning