119
Command, function and parameter description Section 6-3
Therefore, VR(0) will contain the value 2.
Example 2
IF MPOS AXIS(0) > 0 AND MPOS AXIS(1) > 0 THEN GOTO cycle1
6-3-23 ASIN
Type: Mathematical Function
Syntax: ASIN(
expression
)
Description: The ASIN function returns the arc-sine of the expression. The expression
value must be between –1 and 1. The result in radians will be between –PI/2
and PI/2. Input values outside the range will return zero.
Arguments:
expression
Any valid BASIC expression.
Example: >> PRINT ASIN(-1)
-1.5708
6-3-24 ATAN
Type: Mathematical Function
Syntax: ATAN(
expression
)
Description: The ATAN function returns the arc-tangent of the expression. ATAN can have
any value. The result will be in radians and will be between -PI/2 and PI/2.
Arguments:
expression
Any valid BASIC expression.
Example: >> PRINT ATAN(1)
0.7854
6-3-25 ATAN2
Type: Mathematical Function
Syntax: ATAN2(
expression_1
,
expression_2
)
Description: The ATAN2 function returns the arc-tangent of the nonzero complex number
(expression_2, expression_1), which is equivalent to the angle between a
point with coordinate (expression_1, expression_2) and the x-axis. If
expression_2 >= 0, the result is equal to the value of ATAN (expression_1 /
expression_2). The result in radians will be between –PI and PI.
Arguments:
expression_1
Any valid BASIC expression.
expression_2
Any valid BASIC expression.
Example: >> PRINT ATAN2(0,1)
0.0000
6-3-26 ATYPE
Type: Axis parameter
01010
AND 10010
00010