OSDN Git Service

9efd5e8fd9608bc9c6aabfd8297ff4fac2577560
[linuxjm/LDP_man-pages.git] / draft / man3 / atan2.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 .\" %%%LICENSE_START(VERBATIM)
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
14 .\"
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" %%%LICENSE_END
26 .\"
27 .\" References consulted:
28 .\"     Linux libc source code
29 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
30 .\"     386BSD man pages
31 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
32 .\" Modified 2002-07-27 by Walter Harms
33 .\"     (walter.harms@informatik.uni-oldenburg.de)
34 .\"
35 .\"*******************************************************************
36 .\"
37 .\" This file was generated with po4a. Translate the source file.
38 .\"
39 .\"*******************************************************************
40 .TH ATAN2 3 2010\-09\-20 "" "Linux Programmer's Manual"
41 .SH 名前
42 atan2, atan2f, atan2l \- 二つの変数に対する逆正接(arc tangent)関数
43 .SH 書式
44 .nf
45 \fB#include <math.h>\fP
46
47 \fBdouble atan2(double \fP\fIy\fP\fB, double \fP\fIx\fP\fB);\fP
48 \fBfloat atan2f(float \fP\fIy\fP\fB, float \fP\fIx\fP\fB);\fP
49 \fBlong double atan2l(long double \fP\fIy\fP\fB, long double \fP\fIx\fP\fB);\fP
50
51 .fi
52 \fI\-lm\fP でリンクする。
53 .sp
54 .in -4n
55 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
56 .in
57 .sp
58 .ad l
59 \fBatan2f\fP(), \fBatan2l\fP():
60 .RS
61 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
62 || _POSIX_C_SOURCE\ >=\ 200112L;
63 .br
64 or \fIcc\ \-std=c99\fP
65 .RE
66 .ad b
67 .SH 説明
68 \fBatan2\fP()  関数は \fIy/x\fP の逆正接 (arg tangent) の主値を計算する。
69 二つの引き数の符号は結果の象限を決定するために使われる。
70 .SH 返り値
71 成功すると、これらの関数は \fIy/x\fP の逆正接の主値をラジアン単位で返す。 返り値は [\-pi,\ pi] の範囲となる。
72
73 \fIy\fP が +0 (\-0) で \fIx\fP が 0 未満の場合、+pi (\-pi) が返される。
74
75 \fIy\fP が +0 (\-0) で \fIx\fP が 0 より大きい場合、+0 (\-0) が返される。
76
77 \fIy\fP が 0 未満で \fIx\fP が +0 か \-0 の場合、\-pi/2 が返される。
78
79 \fIy\fP が 0 より大きく \fIx\fP が +0 か \-0 の場合、pi/2 が返される。
80
81 .\" POSIX.1 says:
82 .\" If
83 .\" .I x
84 .\" is 0, a pole error shall not occur.
85 .\"
86 \fIx\fP か \fIy\fP のいずかが NaN の場合、NaN が返される。
87
88 .\" POSIX.1 says:
89 .\" If the result underflows, a range error may occur and
90 .\" .I y/x
91 .\" should be returned.
92 .\"
93 \fIy\fP が +0 (\-0) で \fIx\fP が \-0 の場合、+pi (\-pi) が返される。
94
95 \fIy\fP が +0 (\-0) で \fIx\fP が +0 の場合、+0 (\-0) が返される。
96
97 \fIy\fP が 0 より大きい (小さい) 有限値で \fIx\fP が負の無限大の場合、+pi (\-pi) が返される。
98
99 \fIy\fP が 0 より大きい (小さい) 有限値で \fIx\fP が正の無限大の場合、+0 (\-0) が返される。
100
101 \fIy\fP が正の無限大 (負の無限大) で \fIx\fP が有限値の場合、pi/2 (\-pi/2) が返される。
102
103 \fIy\fP が正の無限大 (負の無限大) で \fIx\fP が負の無限大の場合、+3*pi/4 (\-3*pi/4) が返される。
104
105 .\"
106 .\" POSIX.1 says:
107 .\" If both arguments are 0, a domain error shall not occur.
108 \fIy\fP が正の無限大 (負の無限大) で \fIx\fP が正の無限大の場合、+pi/4 (\-pi/4) が返される。
109 .SH エラー
110 .\" POSIX.1 documents an optional underflow error
111 .\" glibc 2.8 does not do this.
112 エラーは発生しない。
113 .SH 準拠
114 C99, POSIX.1\-2001.  \fIdouble\fP 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
115 .SH 関連項目
116 \fBacos\fP(3), \fBasin\fP(3), \fBatan\fP(3), \fBcarg\fP(3), \fBcos\fP(3), \fBsin\fP(3),
117 \fBtan\fP(3)
118 .SH この文書について
119 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
120 である。プロジェクトの説明とバグ報告に関する情報は
121 http://www.kernel.org/doc/man\-pages/ に書かれている。