OSDN Git Service

(split) LDP: Restore and add Copyrights for draft pages
[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 .\"
41 .\" Japanese Version Copyright (c) 1996 Kenji Kajiwara and Kentaro Ogawa
42 .\"         all rights reserved.
43 .\" Translated Sat, 13 Jul 1996 17:50:45 JST
44 .\"         by Kenji Kajiwara and Kentaro Ogawa
45 .\" Proof Reading: Takashi Yoshino
46 .\" Updated Tue Aug  5 23:16:48 JST 2003
47 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
48 .\" Updated 2008-09-15, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
49 .\"
50 .TH ATAN2 3 2010\-09\-20 "" "Linux Programmer's Manual"
51 .SH 名前
52 atan2, atan2f, atan2l \- 二つの変数に対する逆正接(arc tangent)関数
53 .SH 書式
54 .nf
55 \fB#include <math.h>\fP
56
57 \fBdouble atan2(double \fP\fIy\fP\fB, double \fP\fIx\fP\fB);\fP
58 \fBfloat atan2f(float \fP\fIy\fP\fB, float \fP\fIx\fP\fB);\fP
59 \fBlong double atan2l(long double \fP\fIy\fP\fB, long double \fP\fIx\fP\fB);\fP
60
61 .fi
62 \fI\-lm\fP でリンクする。
63 .sp
64 .in -4n
65 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
66 .in
67 .sp
68 .ad l
69 \fBatan2f\fP(), \fBatan2l\fP():
70 .RS
71 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
72 || _POSIX_C_SOURCE\ >=\ 200112L;
73 .br
74 or \fIcc\ \-std=c99\fP
75 .RE
76 .ad b
77 .SH 説明
78 \fBatan2\fP()  関数は \fIy/x\fP の逆正接 (arg tangent) の主値を計算する。
79 二つの引き数の符号は結果の象限を決定するために使われる。
80 .SH 返り値
81 成功すると、これらの関数は \fIy/x\fP の逆正接の主値をラジアン単位で返す。 返り値は [\-pi,\ pi] の範囲となる。
82
83 \fIy\fP が +0 (\-0) で \fIx\fP が 0 未満の場合、+pi (\-pi) が返される。
84
85 \fIy\fP が +0 (\-0) で \fIx\fP が 0 より大きい場合、+0 (\-0) が返される。
86
87 \fIy\fP が 0 未満で \fIx\fP が +0 か \-0 の場合、\-pi/2 が返される。
88
89 \fIy\fP が 0 より大きく \fIx\fP が +0 か \-0 の場合、pi/2 が返される。
90
91 .\" POSIX.1 says:
92 .\" If
93 .\" .I x
94 .\" is 0, a pole error shall not occur.
95 .\"
96 \fIx\fP か \fIy\fP のいずかが NaN の場合、NaN が返される。
97
98 .\" POSIX.1 says:
99 .\" If the result underflows, a range error may occur and
100 .\" .I y/x
101 .\" should be returned.
102 .\"
103 \fIy\fP が +0 (\-0) で \fIx\fP が \-0 の場合、+pi (\-pi) が返される。
104
105 \fIy\fP が +0 (\-0) で \fIx\fP が +0 の場合、+0 (\-0) が返される。
106
107 \fIy\fP が 0 より大きい (小さい) 有限値で \fIx\fP が負の無限大の場合、+pi (\-pi) が返される。
108
109 \fIy\fP が 0 より大きい (小さい) 有限値で \fIx\fP が正の無限大の場合、+0 (\-0) が返される。
110
111 \fIy\fP が正の無限大 (負の無限大) で \fIx\fP が有限値の場合、pi/2 (\-pi/2) が返される。
112
113 \fIy\fP が正の無限大 (負の無限大) で \fIx\fP が負の無限大の場合、+3*pi/4 (\-3*pi/4) が返される。
114
115 .\"
116 .\" POSIX.1 says:
117 .\" If both arguments are 0, a domain error shall not occur.
118 \fIy\fP が正の無限大 (負の無限大) で \fIx\fP が正の無限大の場合、+pi/4 (\-pi/4) が返される。
119 .SH エラー
120 .\" POSIX.1 documents an optional underflow error
121 .\" glibc 2.8 does not do this.
122 エラーは発生しない。
123 .SH 準拠
124 C99, POSIX.1\-2001.  \fIdouble\fP 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
125 .SH 関連項目
126 \fBacos\fP(3), \fBasin\fP(3), \fBatan\fP(3), \fBcarg\fP(3), \fBcos\fP(3), \fBsin\fP(3),
127 \fBtan\fP(3)
128 .SH この文書について
129 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
130 である。プロジェクトの説明とバグ報告に関する情報は
131 http://www.kernel.org/doc/man\-pages/ に書かれている。