atan2/3—return the arc tangent of the ratio of two numbers

The atan2/3 function returns the arc tangent of the ratio of $NUMBER1 and $NUMBER2 in the $RESULT argument.

$RESULT=atan2($NUMBER1,$NUMBER2)

atan2/3 arguments

Argument

Mode

Type

Description

$NUMBER1

Input

INTEGER|REAL

Specifies the first (integer or real) value of the ratio

$NUMBER2

Input

INTEGER|REAL

Specifies the second (integer or real) value of the ratio

$RESULT

Output

REAL

Angle for which the ratio of $NUMBER1 and $NUMBER2 is the arc tangent (expressed in radians)

atan2/3 example

$RIGHTANGLE = atan2( 1 , 0 );
Was this page helpful? Yes No Submitting... Thank you

Comments