547
Floating-point Math Instructions
Section 3-15
Description
ACOS(464) computes the angle (in radians) for a cosine value expressed as a
32-bit floating-point number in S+1 and S and places the result in R+1 and R.
(The floating point source data must be in IEEE754 format.)
The source data must be between –1.0 and 1.0. If the absolute value of the
source data exceeds 1.0, an error will occur and the instruction won’t be exe-
cuted.
The result is output to words R+1 and R as an angle (in radians) within the
range of 0 to
π
.
The following diagram shows the relationship between the input data and
result.
Flags
Precautions
The source data in S+1 and S must be in IEEE754 floating-point data format.
R+1
R
S
Source (32-bit floating-point data)
S+1
Result (32-bit floating-point data)
COS
–1
S: Input data (cosine value)
R: Result (radians)
R
Name
Label
Operation
Error Flag
ER
ON if the source data is not recognized as floating-point
data.
ON if the source data is not a number (NaN).
ON if the absolute value of the source data exceeds 1.0.
OFF in all other cases.
Equals Flag
=
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
Overflow Flag
OF
OFF
Underflow Flag
UF
OFF
Negative Flag
N
ON if the result is negative.
OFF in all other cases.
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...