1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"radians">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>atan
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>atan
</refname>
17 <refpurpose>return the arc-tangent of the parameters
</refpurpose>
19 <refsynopsisdiv><title>Declaration
</title>
22 <funcdef>genType
<function>atan
</function></funcdef>
23 <paramdef>genType
<parameter>y
</parameter></paramdef>
24 <paramdef>genType
<parameter>x
</parameter></paramdef>
29 <funcdef>genType
<function>atan
</function></funcdef>
30 <paramdef>genType
<parameter>y_over_x
</parameter></paramdef>
34 <refsect1 id=
"parameters"><title>Parameters
</title>
37 <term><parameter>y
</parameter></term>
40 Specify the numerator of the fraction whose arctangent to return.
45 <term><parameter>x
</parameter></term>
48 Specify the denominator of the fraction whose arctangent to return.
53 <term><parameter>y_over_x
</parameter></term>
56 Specify the fraction whose arctangent to return.
62 <refsect1 id=
"description"><title>Description
</title>
64 <function>atan
</function> returns the angle whose trigonometric arctangent is
65 <inlineequation><mml:math>
66 <!-- eqn: b sub 0: -->
69 <mml:mi mathvariant=
"italic">y
</mml:mi>
72 <mml:mi mathvariant=
"italic">x
</mml:mi>
75 </mml:math></inlineequation> or
<inlineequation><mml:math><mml:mi mathvariant=
"italic">y_over_x
</mml:mi></mml:math></inlineequation>,
76 depending on which overload is invoked. In the first overload, the signs of
<inlineequation><mml:math><mml:mi mathvariant=
"italic">y
</mml:mi></mml:math></inlineequation>
77 and
<inlineequation><mml:math><mml:mi mathvariant=
"italic">x
</mml:mi></mml:math></inlineequation> are used to determine the quadrant
78 that the angle lies in. The values returned by
<function>atan
</function> in this case are in the range
79 <inlineequation><mml:math>
80 <mml:list order=
"numeric">
81 <mml:csymbol><mml:mo>−</mml:mo><mml:pi/></mml:csymbol>
84 </mml:math></inlineequation>. Results are undefined if
<inlineequation><mml:math><mml:mi mathvariant=
"italic">x
</mml:mi></mml:math></inlineequation> is zero.
87 For the second overload,
<function>atan
</function> returns the angle whose tangent is
88 <inlineequation><mml:math><mml:mi mathvariant=
"italic">y_over_x
</mml:mi></mml:math></inlineequation>. Values
89 returned in this case are in the range
90 <inlineequation><mml:math>
91 <mml:list order=
"numeric">
93 <mml:mo>−</mml:mo>
95 <mml:csymbol><mml:pi/></mml:csymbol>
104 </mml:math></inlineequation>.
107 <refsect1 id=
"versions"><title>Version Support
</title>
108 <informaltable frame=
"topbot">
113 <entry>atan
</entry>#newin11#
119 <refsect1 id=
"seealso"><title>See Also
</title>
121 <citerefentry><refentrytitle>sin
</refentrytitle></citerefentry>,
122 <citerefentry><refentrytitle>cos
</refentrytitle></citerefentry>,
123 <citerefentry><refentrytitle>tan
</refentrytitle></citerefentry>
126 <refsect1 id=
"Copyright"><title>Copyright
</title>
128 Copyright
<trademark class=
"copyright"></trademark> 2011 Khronos Group.
129 This material may be distributed subject to the terms and conditions set forth in
130 the Open Publication License, v
1.0,
8 June
1999.
131 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.