8-140Trio BASIC Commands
Mathematical Operations and Commands
Trio Motion Technology
ATAN
Type:
Mathematical Function
Syntax:
ATAN(expression)
Alternate Format:
ATN(expression)
Description:
The
ATAN
function returns the arc-tangent of a number. The result in radians is in
the range -PI/2.. +PI/2
Parameters:
Example:
>>PRINT ATAN(1)
0.7854
ATAN2
Type:
Mathematical Function
Syntax:
ATAN2(expression1,expression 2)
Description:
The
ATAN2
function returns the arc-tangent of the ratio expression1/expression 2.
The result in radians is in the range -PI.. +PI
Parameters:
Example:
>>PRINT ATAN2(0,1)
0.0000
Expression:
Any valid Trio BASIC expression.
Expressions:
Any valid Trio BASIC expression.