OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / 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 .\" 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.
8 .\"
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.
13 .\"
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
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
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)
32 .\"
33 .\"*******************************************************************
34 .\"
35 .\" This file was generated with po4a. Translate the source file.
36 .\"
37 .\"*******************************************************************
38 .TH ATAN2 3 2010\-09\-20 "" "Linux Programmer's Manual"
39 .SH 名前
40 atan2, atan2f, atan2l \- 二つの変数に対する逆正接(arc tangent)関数
41 .SH 書式
42 .nf
43 \fB#include <math.h>\fP
44
45 \fBdouble atan2(double \fP\fIy\fP\fB, double \fP\fIx\fP\fB);\fP
46 \fBfloat atan2f(float \fP\fIy\fP\fB, float \fP\fIx\fP\fB);\fP
47 \fBlong double atan2l(long double \fP\fIy\fP\fB, long double \fP\fIx\fP\fB);\fP
48
49 .fi
50 \fI\-lm\fP でリンクする。
51 .sp
52 .in -4n
53 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
54 .in
55 .sp
56 .ad l
57 \fBatan2f\fP(), \fBatan2l\fP():
58 .RS
59 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
60 || _POSIX_C_SOURCE\ >=\ 200112L;
61 .br
62 or \fIcc\ \-std=c99\fP
63 .RE
64 .ad b
65 .SH 説明
66 \fBatan2\fP()  関数は \fIy/x\fP の逆正接 (arg tangent) の主値を計算する。
67 二つの引き数の符号は結果の象限を決定するために使われる。
68 .SH 返り値
69 成功すると、これらの関数は \fIy/x\fP の逆正接の主値をラジアン単位で返す。 返り値は [\-pi,\ pi] の範囲となる。
70
71 \fIy\fP が +0 (\-0) で \fIx\fP が 0 未満の場合、+pi (\-pi) が返される。
72
73 \fIy\fP が +0 (\-0) で \fIx\fP が 0 より大きい場合、+0 (\-0) が返される。
74
75 \fIy\fP が 0 未満で \fIx\fP が +0 か \-0 の場合、\-pi/2 が返される。
76
77 \fIy\fP が 0 より大きく \fIx\fP が +0 か \-0 の場合、pi/2 が返される。
78
79 .\" POSIX.1 says:
80 .\" If
81 .\" .I x
82 .\" is 0, a pole error shall not occur.
83 .\"
84 \fIx\fP か \fIy\fP のいずかが NaN の場合、NaN が返される。
85
86 .\" POSIX.1 says:
87 .\" If the result underflows, a range error may occur and
88 .\" .I y/x
89 .\" should be returned.
90 .\"
91 \fIy\fP が +0 (\-0) で \fIx\fP が \-0 の場合、+pi (\-pi) が返される。
92
93 \fIy\fP が +0 (\-0) で \fIx\fP が +0 の場合、+0 (\-0) が返される。
94
95 \fIy\fP が 0 より大きい (小さい) 有限値で \fIx\fP が負の無限大の場合、+pi (\-pi) が返される。
96
97 \fIy\fP が 0 より大きい (小さい) 有限値で \fIx\fP が正の無限大の場合、+0 (\-0) が返される。
98
99 \fIy\fP が正の無限大 (負の無限大) で \fIx\fP が有限値の場合、pi/2 (\-pi/2) が返される。
100
101 \fIy\fP が正の無限大 (負の無限大) で \fIx\fP が負の無限大の場合、+3*pi/4 (\-3*pi/4) が返される。
102
103 .\"
104 .\" POSIX.1 says:
105 .\" If both arguments are 0, a domain error shall not occur.
106 \fIy\fP が正の無限大 (負の無限大) で \fIx\fP が正の無限大の場合、+pi/4 (\-pi/4) が返される。
107 .SH エラー
108 .\" POSIX.1 documents an optional underflow error
109 .\" glibc 2.8 does not do this.
110 エラーは発生しない。
111 .SH 準拠
112 C99, POSIX.1\-2001.  \fIdouble\fP 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
113 .SH 関連項目
114 \fBacos\fP(3), \fBasin\fP(3), \fBatan\fP(3), \fBcarg\fP(3), \fBcos\fP(3), \fBsin\fP(3),
115 \fBtan\fP(3)