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 .\" 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.
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.
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
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" References consulted:
26 .\" Linux libc source code
27 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
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)
33 .\" Japanese Version Copyright (c) 1996 Kenji Kajiwara and Kentaro Ogawa
34 .\" all rights reserved.
35 .\" Translated Sat, 13 Jul 1996 17:42:24 JST
36 .\" by Kenji Kajiwara and Kentaro Ogawa
37 .\" Proof Reading: Takashi Yoshino
38 .\" Updated Tue Aug 5 23:16:48 JST 2003
39 .\" by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
40 .\" Updated & Modified Tue Feb 15 04:17:01 JST 2005
41 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
42 .\" Updated 2008-09-15, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
44 .TH COS 3 2010-09-11 "" "Linux Programmer's Manual"
47 .\"O cos, cosf, cosl \- cosine function
48 cos, cosf, cosl \- ;¸¹ (¥³¥µ¥¤¥ó) ´Ø¿ô
54 .BI "double cos(double " x );
56 .BI "float cosf(float " x );
58 .BI "long double cosl(long double " x );
61 .\"O Link with \fI\-lm\fP.
62 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
65 .\"O Feature Test Macro Requirements for glibc (see
66 .\"O .BR feature_test_macros (7)):
67 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
68 .RB ( feature_test_macros (7)
76 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
77 _POSIX_C_SOURCE\ >=\ 200112L;
87 .\"O function returns the cosine of \fIx\fP, where \fIx\fP is
88 .\"O given in radians.
90 ´Ø¿ô¤Ï \fIx\fP ¤Î;¸¹ (¥³¥µ¥¤¥ó) ¤ÎÃͤòÊÖ¤¹¡£
91 \fIx\fP ¤Ï¥é¥¸¥¢¥óñ°Ì¤Ç»ØÄꤹ¤ë¡£
94 .\"O On success, these functions return the cosine of
96 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
102 .\"O is a NaN, a NaN is returned.
104 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
108 .\"O is positive infinity or negative infinity,
109 .\"O a domain error occurs,
110 .\"O and a NaN is returned.
112 ¤¬Àµ¤Î̵¸ÂÂ礫Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢
113 Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
117 .\"O .BR math_error (7)
118 .\"O for information on how to determine whether an error has occurred
119 .\"O when calling these functions.
120 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
124 .\"O The following errors can occur:
125 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ¤¬¤¢¤ë¡£
127 .\"O Domain error: \fIx\fP is an infinity
128 Îΰ襨¥é¡¼ (domain error): \fIx\fP ¤¬Ìµ¸ÂÂç¤Ç¤¢¤ë
137 (¡Ö¥Ð¥°¡×¤ÎÀá¤ò»²¾È)¡£
138 .\"O An invalid floating-point exception
139 .\"O .RB ( FE_INVALID )
141 ̵¸ú (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
144 .\"O .SH "CONFORMING TO"
147 .\"O The variant returning
149 .\"O also conforms to
152 ÈǤδؿô¤Ï SVr4, 4.3BSD ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
155 .\"O Before version 2.10, the glibc implementation did not set
156 .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6780
160 .\"O when a domain error occurred.
161 ¥Ð¡¼¥¸¥ç¥ó 2.10 ¤è¤êÁ°¤Î glibc ¤Î¼ÂÁõ¤Ç¤Ï¡¢
162 ¥É¥á¥¤¥ó¥¨¥é¡¼¤¬È¯À¸¤·¤¿ºÝ¤Ë¡¢