$ArcTan2: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
(Automatically generated page update)
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}}

Revision as of 19:33, 23 July 2015

Inverse tangent of ratio of arguments

Note: Most Sirius $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)