Difference between revisions of "MC-Basic:ATAN2"
Line 39: | Line 39: | ||
|SEE ALSO= | |SEE ALSO= | ||
* [[MC-Basic:ATN|ATN]] | * [[MC-Basic:ATN|ATN]] | ||
− | * [[ | + | * [[MC-Basic:TAN|TAN]] |
[[Category:Axystems:MC-Basic:Arithmetic Functions|ATAN]] | [[Category:Axystems:MC-Basic:Arithmetic Functions|ATAN]] | ||
}} | }} |
Revision as of 08:42, 22 May 2014
ATAN2 is used when it is necessary to know both the absolute value of the angle and the quadrant. The first expression is the value on the y axis and the second is the value on the x axis. The result gives the real angle in the range ±π radians.
Syntax
Atan2(<expression>, <expression>)
Availability
All versions
Type
Double
Range
± MaxDouble
Scope
Configuration, Task or Terminal
Limitations
Read only
Examples
?Atan2(1, -1)
- returns 0.75×π
- returns 0.75×π
?Atan2(-1, 1)
- returns -0.25×π