$ArcTan2: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
(Automatically generated page update)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<span class="pageSubtitle">Inverse tangent of ratio of arguments</span>
<span class="pageSubtitle">Inverse tangent of ratio of arguments</span>
<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented
<p class="warn"><b>Note: </b>Many $functions have been deprecated in favor of Object Oriented
methods. There is currently no direct OO equivalent for the <var>$ArcTan2</var> function.</p>
methods. There is currently no direct OO equivalent for the $ArcTan2 function.</p>
[[Category: Mathematical $functions]]
[[Category: Mathematical $functions]]
<p>
<p>
Line 8: Line 8:
The <var>$ArcTan2</var> function returns
The <var>$ArcTan2</var> function returns
the arctangent (in radians) of the ratio of two arguments
the arctangent (in radians) of the ratio of two arguments
&amp;mdash; ''x'' divided by ''y''.
&mdash; ''x'' divided by ''y''.
If the second
If the second
argument is 0 (or omitted), an error message is printed and a 0 is returned.
argument is 0 (or omitted), an error message is printed and a 0 is returned.
Line 14: Line 14:
==Syntax==
==Syntax==
<p class="syntax"><span class="term">%num</span><span class="literal"> = $ArcTan2(</span><span class="term">x</span>,<span class="term>y</span><span class="literal">)</span>  </p>
<p class="syntax"><span class="term">%num</span><span class="literal"> = $ArcTan2(</span><span class="term">x</span>,<span class="term>y</span><span class="literal">)</span>  </p>
{{Template:Math $functions note}}

Latest revision as of 00:03, 21 September 2018

Inverse tangent of ratio of arguments

Note: Many $functions have been deprecated in favor of Object Oriented methods. There is currently no direct OO equivalent for the $ArcTan2 function.

The $ArcTan2 function returns the arctangent (in radians) of the ratio of two arguments — x divided by y. If the second argument is 0 (or omitted), an error message is printed and a 0 is returned.

Syntax

%num = $ArcTan2(x,y)