1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL, 2002-07-27 Walter Harms
3 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
4 .\" <mtk.manpages@gmail.com>
6 .\" Japanese Version Copyright (c) 2003 Akihiro MOTOKI
7 .\" all rights reserved.
8 .\" Translated Tue Sep 9 04:06:20 JST 2003
9 .\" by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
10 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
12 .TH SINCOS 3 2008-08-11 "GNU" "Linux Programmer's Manual"
15 .\"O sincos, sincosf, sincosl \- calculate sin and cos simultaneously
16 sincos, sincosf, sincosl \- Àµ¸¹¤È;¸¹¤òƱ»þ¤Ë·×»»¤¹¤ë
20 .\"O .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
21 .BR "#define _GNU_SOURCE" " /* feature_test_macros(7) »²¾È */"
24 .BI "void sincos(double " x ", double *" sin ", double *" cos );
26 .BI "void sincosf(float " x ", float *" sin ", float *" cos );
28 .BI "void sincosl(long double " x ", long double *" sin ", long double *" cos );
31 .\"O Link with \fI\-lm\fP.
32 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
35 .\"O Several applications need sine and cosine of the same angle
37 .\"O This function computes both at the same time, and stores the results in
41 ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÎÃæ¤Ë¤Ï¡¢Æ±¤¸³ÑÅÙ
43 ¤Ë¤Ä¤¤¤ÆÀµ¸¹¤È;¸¹¤ÎξÊý¤Î·×»»¤¬É¬Íפʤâ¤Î¤¬¤¢¤ë¡£
44 ¤³¤Î´Ø¿ô¤Ïξ¼Ô¤òƱ»þ¤Ë·×»»¤·¡¢¤½¤Î·ë²Ì¤ò
53 .\"O a NaN is returned in
66 .\"O is positive infinity or negative infinity,
67 .\"O a domain error occurs, and
68 .\"O a NaN is returned in
73 ¤¬Àµ¤Î̵¸ÂÂ礫Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢
74 Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
81 .\"O These functions return
89 .\"O .BR math_error (7)
90 .\"O for information on how to determine whether an error has occurred
91 .\"O when calling these functions.
92 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
96 .\"O The following errors can occur:
97 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ¤¬¤¢¤ë¡£
99 .\"O Domain error: \fIx\fP is an infinity
100 Îΰ襨¥é¡¼ (domain error): \fIx\fp ¤¬Ìµ¸ÂÂç
104 .\"O An invalid floating-point exception
105 .\"O .RB ( FE_INVALID )
107 ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
111 .\"O These functions do not set
116 .\" FIXME . Is it intentional that these functions do not set errno?
117 .\" sin() and cos() also don't set errno; bugs have been raised for
121 .\"O These functions first appeared in glibc in version 2.1.
122 ¤³¤ì¤é¤Î´Ø¿ô¤Ï glibc ¥Ð¡¼¥¸¥ç¥ó 2.1 ¤Ç½é¤á¤ÆÅо줷¤¿¡£
123 .\"O .SH "CONFORMING TO"
125 .\"O This function is a GNU extension.
126 ¤³¤Î´Ø¿ô¤Ï GNU ¤Ë¤è¤ë³ÈÄ¥¤Ç¤¢¤ë¡£