1sinh(3) Library Functions Manual sinh(3)
2
3
4
6 sinh, sinhf, sinhl - hyperbolic sine function
7
9 Math library (libm, -lm)
10
12 #include <math.h>
13
14 double sinh(double x);
15 float sinhf(float x);
16 long double sinhl(long double x);
17
18 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
19
20 sinhf(), sinhl():
21 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
22 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
23 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
24
26 These functions return the hyperbolic sine of x, which is defined math‐
27 ematically as:
28
29 sinh(x) = (exp(x) - exp(-x)) / 2
30
32 On success, these functions return the hyperbolic sine of x.
33
34 If x is a NaN, a NaN is returned.
35
36 If x is +0 (-0), +0 (-0) is returned.
37
38 If x is positive infinity (negative infinity), positive infinity (nega‐
39 tive infinity) is returned.
40
41 If the result overflows, a range error occurs, and the functions return
42 HUGE_VAL, HUGE_VALF, or HUGE_VALL, respectively, with the same sign as
43 x.
44
46 See math_error(7) for information on how to determine whether an error
47 has occurred when calling these functions.
48
49 The following errors can occur:
50
51 Range error: result overflow
52 errno is set to ERANGE. An overflow floating-point exception
53 (FE_OVERFLOW) is raised.
54
56 For an explanation of the terms used in this section, see at‐
57 tributes(7).
58
59 ┌────────────────────────────────────────────┬───────────────┬─────────┐
60 │Interface │ Attribute │ Value │
61 ├────────────────────────────────────────────┼───────────────┼─────────┤
62 │sinh(), sinhf(), sinhl() │ Thread safety │ MT-Safe │
63 └────────────────────────────────────────────┴───────────────┴─────────┘
64
66 C11, POSIX.1-2008.
67
69 C99, POSIX.1-2001.
70
71 The variant returning double also conforms to SVr4, 4.3BSD, C89.
72
74 acosh(3), asinh(3), atanh(3), cosh(3), csinh(3), tanh(3)
75
76
77
78Linux man-pages 6.04 2023-03-30 sinh(3)