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 .\"*******************************************************************
8 .\" This file was generated with po4a. Translate the source file.
10 .\"*******************************************************************
11 .TH SINCOS 3 2008\-08\-11 GNU "Linux Programmer's Manual"
13 sincos, sincosf, sincosl \- 正弦と余弦を同時に計算する
16 \fB#define _GNU_SOURCE\fP /* feature_test_macros(7) 参照 */
17 \fB#include <math.h>\fP
19 \fBvoid sincos(double \fP\fIx\fP\fB, double *\fP\fIsin\fP\fB, double *\fP\fIcos\fP\fB);\fP
21 \fBvoid sincosf(float \fP\fIx\fP\fB, float *\fP\fIsin\fP\fB, float *\fP\fIcos\fP\fB);\fP
23 \fBvoid sincosl(long double \fP\fIx\fP\fB, long double *\fP\fIsin\fP\fB, long double *\fP\fIcos\fP\fB);\fP
28 アプリケーションの中には、同じ角度 \fIx\fP について正弦と余弦の両方の計算が必要なものがある。 この関数は両者を同時に計算し、その結果を
29 \fI*sin\fP と \fI*cos\fP に格納する。
31 \fIx\fP が NaN の場合、 \fI*sin\fP と \fI*cos\fP に NaN が返される。
33 \fIx\fP が正の無限大か負の無限大の場合、 領域エラー (domain error) が発生し、 \fI*sin\fP と \fI*cos\fP に NaN
36 これらの関数は \fIvoid\fP を返す。
38 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7) を参照のこと。
42 領域エラー (domain error): \fIx\fP が無限大である
46 不正 (invalid) 浮動小数点例外 (\fBFE_INVALID\fP) が上がる。
48 .\" FIXME . Is it intentional that these functions do not set errno?
49 .\" sin() and cos() also don't set errno; bugs have been raised for
51 これらの関数は \fIerrno\fP を設定しない。
53 これらの関数は glibc バージョン 2.1 で初めて登場した。
57 \fBcos\fP(3), \fBsin\fP(3), \fBtan\fP(3)