GE 90-30/20/Micro Universal Remote User Manual


 
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4-35
4
Trig Functions (SIN, COS, TAN, ASIN, ACOS, ATAN)
The SIN, COS, and TAN functions are used to find the trigonometric sine, cosine, and tangent,
respectively, of its input. When one of these functions receives power flow, it computes the sine (or
cosine or tangent) of IN, whose units are radians, and stores the result in output Q. Both IN and Q
are floating-point values.
The ASIN, ACOS, and ATAN functions are used to find the inverse sine, cosine, and tangent,
respectively, of its input. When one of these functions receives power flow, it computes the inverse
sine (or cosine or tangent) of IN and stores the result in output Q, whose units are radians. Both IN
and Q are floating-point values.
The SIN, COS, and TAN functions accept a broad range of input values, where
–2
63
< IN <+2
63
, (2
63
9.22x10
18
).
The ASIN and ACOS functions accept a narrow range of input values, where – 1 IN 1. Given a
valid value for the IN parameter, the ASIN_REAL function will produce a result Q such that:
ASIN (IN)
ππ
2
Q
=
ππ
2
The ACOS_REAL function will produce a result Q such that:
ACOS (IN)
ππ
Q
0
=
The ATAN function accepts the broadest range of input values, where – IN + . Given a
valid value for the IN parameter, the ATAN_REAL function will produce a result Q such that:
ATAN (IN)
ππ
2
Q
=
ππ
2
_____
| |
(enable) —| SIN_|— (ok)
| |
| REAL|
| |
(input parameter IN) —|IN Q|— (output parameter Q)
|_____|
Note
The TRIG functions are only available on the 350 and 360 series CPUs, Release
9 or later, or on all releases of CPU352.