SourcePoint Intel Help

Table of Contents

atan2

Return the second arc tangent of expr2 divided by expr1.

Syntax

[result =] atan2(expr1, expr2)

Where:

result

specifies a debug object of type real8 to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

expr1, expr2

specifies a number or an expression of type real8 evaluated in radians.

Discussion

The atan2 command returns the second arc tangent of expr2 divided by expr1. The return value is in the range -pi to pi.

Note: Values returned by this function are in real8 or 64-bit floating point precision. These values are displayed in the Command window rounded to 6 decimal digits. However, assignments and comparisons are performed on the full 64-bit value. 

Example

Command input:

atan2(1,2)

Result:

0.463648

Related Topics: