Floating-point Math Instructions
5-21-15
COSINE TO ANGLE: ACOS(464)
Ladder Symbol
(464)
ACOS
Variations
ACOS(464)
Description
Relation Between Input Data and Result
Precautions
Flags
OF (A50009):
UF (A50010):
Operand Data Areas
S: First source word
S
R
R: First result word
When the execution condition OFF, ACOS(464) is not executed. When the
execution condition is ON, ACOS(464) computes the angle (in radians) for a co-
sine expressed as the 32-floating-point content of S and S+1, and places the
result in R and R+1.
–1
COS
S+1
R+1
The result is output to words R+1 and R as an angle (in radians) within the range
of 0 to π.
The cosine must be floating-point data within the range of –1.0 to 1.0.
Note Refer to page 115 for general precautions on operand data areas.
ER (A50003):
EQ (A50006):
N (A50008):
OF (A50009):
UF (A50010):
OFF when the computation is executed.
OFF when the computation is executed.
CIO, G, A, T, C, #, DM
CIO, G, A, DM
S
R
R
The cosine data is not within the range of –1.0 to 1.0.
The cosine data is not floating-point data.
The content of a*DM word is not BCD when set for BCD.
The exponent and mantissa of the result are 0.
OFF when the computation is executed.
OFF when the computation is executed.
OFF when the computation is executed.
Section 5-21
(CVM1 V2)
Source (floating-point data, 32 bits)
Result (floating-point data, 32 bits)
S: Input data (cosine)
R: Result (radians)
309