OSDN Git Service

(split) LDP_man-pages: release ioctl.2 [JM:00378]
[linuxjm/LDP_man-pages.git] / draft / man3 / tanh.3
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>
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
30 .\" Modified 2002-07-27 by Walter Harms
31 .\"    (walter.harms@informatik.uni-oldenburg.de)
32 .\"
33 .\" Japanese Version Copyright (c) 1996 Kenji Kajiwara and Kentaro Ogawa
34 .\"         all rights reserved.
35 .\" Translated Sat, 13 Jul 1996 17:54:30 JST
36 .\"         by Kenji Kajiwara and Kentaro Ogawa
37 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
38 .\"
39 .TH TANH 3 2010-09-20 ""  "Linux Programmer's Manual"
40 .\"O .SH NAME
41 .SH Ì¾Á°
42 .\"O tanh, tanhf, tanhl \- hyperbolic tangent function
43 tanh, tanhf, tanhl \- ÁжÊÀþÀµÀÜ (hyperbolic tangent) ´Ø¿ô
44 .\"O .SH SYNOPSIS
45 .SH ½ñ¼°
46 .nf
47 .B #include <math.h>
48 .sp
49 .BI "double tanh(double " x );
50 .br
51 .BI "float tanhf(float " x );
52 .br
53 .BI "long double tanhl(long double " x );
54 .fi
55 .sp
56 .\"O Link with \fI\-lm\fP.
57 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
58 .sp
59 .in -4n
60 .\"O Feature Test Macro Requirements for glibc (see
61 .\"O .BR feature_test_macros (7)):
62 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
63 .RB ( feature_test_macros (7)
64 »²¾È):
65 .in
66 .sp
67 .ad l
68 .BR tanhf (),
69 .BR tanhl ():
70 .RS 4
71 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
72 _POSIX_C_SOURCE\ >=\ 200112L;
73 .br
74 or
75 .I cc\ -std=c99
76 .RE
77 .ad
78 .\"O .SH DESCRIPTION
79 .SH ÀâÌÀ
80 .\"O The
81 .\"O .BR tanh ()
82 .\"O function returns the hyperbolic tangent of \fIx\fP, which
83 .\"O is defined mathematically as:
84 .BR tanh ()
85 ´Ø¿ô¤Ï \fIx\fP ¤ÎÁжÊÀþÀµÀÜ (hyperbolic tangent) ´Ø¿ô¤òÊÖ¤¹¡£
86 ¿ô³ØŪ¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡¥
87 .nf
88
89     tanh(x) = sinh(x) / cosh(x)
90 .fi
91 .\"O .SH "RETURN VALUE"
92 .SH ÊÖ¤êÃÍ
93 .\"O On success, these functions return the hyperbolic tangent of
94 .\"O .IR x .
95 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
96 .I x
97 ¤ÎÁжÊÀþÀµÀܤòÊÖ¤¹¡£
98
99 .\"O If
100 .\"O .I x
101 .\"O is a NaN, a NaN is returned.
102 .I x
103 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
104
105 .\"O If
106 .\"O .I x
107 .\"O is +0 (\-0), +0 (\-0) is returned.
108 .I x
109 ¤¬ +0 (\-0) ¤Î¾ì¹ç¡¢+0 (\-0) ¤¬ÊÖ¤µ¤ì¤ë¡£
110
111 .\"O If
112 .\"O .I x
113 .\"O is positive infinity (negative infinity),
114 .\"O +1 (\-1) is returned.
115 .I x
116 ¤¬Àµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤Î¾ì¹ç¡¢+1 (\-1) ¤¬ÊÖ¤µ¤ì¤ë¡£
117 .\"
118 .\" POSIX.1-2001 documents an optional range error (underflow)
119 .\" for subnormal x;
120 .\" glibc 2.8 does not do this.
121 .\"O .SH ERRORS
122 .SH ¥¨¥é¡¼
123 .\"O No errors occur.
124 ¥¨¥é¡¼¤ÏȯÀ¸¤·¤Ê¤¤¡£
125 .\"O .SH "CONFORMING TO"
126 .SH ½àµò
127 C99, POSIX.1-2001.
128 .\"O The variant returning
129 .\"O .I double
130 .\"O also conforms to
131 .\"O SVr4, 4.3BSD, C89.
132 .I double
133 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
134 .\"O .SH "SEE ALSO"
135 .SH ´ØÏ¢¹àÌÜ
136 .BR acosh (3),
137 .BR asinh (3),
138 .BR atanh (3),
139 .BR cosh (3),
140 .BR ctanh (3),
141 .BR sinh (3)