ARCTAN
8.0.9
The ARCTAN instruction calculates the arctangent of a value. The instruction uses the following format:
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
source
Required. A Numeric Variable, numeric Literal, or Expression for which the arctangent is calculated.
sep
Required. A comma or one of the following prepositions: BY, TO, OF, FROM, USING, WITH, IN, or INTO.
dest
Required. A Numeric Variable that receives the arctangent of the source.
Flags Affected: LESS, OVER, ZERO
Note the following:
The result is placed in the {dest} operand.
The {source} operand remains unchanged.
The calculated value of {dest} is expressed in radians.
The EQUAL (or ZERO), OVER, and LESS Condition Flags are applicable.
The rounding and truncation rules described in the section Numeric Variables are applicable.
If the environment variable PLB_ROUND is present, the result is rounded in accordance with the ANSI PL/B specification. Otherwise, the source operand is aligned and rounded, as applicable, to the destination operand's format.
This instruction supports the mixing of variable types (FORM and INTEGER).
Enhanced Array processing is supported.
ARCTAN is not supported by the PLBCE runtime.
See Also: Example Code, Mathematical Instructions
![]() |