32.17.6.3 Explanation of the ATAN and ATANP Instructions
ATAN and ATANP instructions are arc tangent instructions for
trigonometric functions. When the TAN instruction is executed and
passes power, the tangent of S1 is calculated and the result is
stored in D1. TAN-1(S1) is stored in D1. Input values between -1.0
to 1.0 for S1, and the result in D1 is a real number, measured in
radians, between -Pi/2 to Pi/2. Pi is approximately 3.1415926535897
(real number).
The ATAN and ATANP instructions are always conducted. When using
the ATAN and ATANP instructions, an error will occur if the
variables specified in operands S1 and D1 are not the same type.
Designate the same variable type in all operands S1 and D1.
Refer to the following for specifying a constant.
When operand D1 is a float variable
When 0f (zero and lower case "f") is input, the following values
are interpreted as float values.
When operand D1 is a real variable
When 0r (zero and lower case "r") is input, the following values
are interpreted as real values.
When calculating data in a specified
array
Specify the array using Data [0] or Data [N] (N indicates an
integer variable).
When operands S1 and D1 specify the entire array, an error will
occur even if the specified variables are the same type.
|