Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 367 of 909
Although the floating-point variables and their standard binary operations conform to
IEEE-754 double precision, the floating-point square root and trigonometric functions only
produce IEEE-754 single-precision results. For more details, see Variables and Math on page
195.
EXAMPLE:
af[0]=COS(57.3) 'Set array variable = COS(57.3)
Raf[0] 'Report value of af[0] variable
RCOS(57.3) 'Report COS(57.3)
af[1]=42.3 '42.3 degrees
af[0]=COS(af[1]) 'Variables may be put in the parenthesis.
Raf[0]
END
Program output is:
0.540240287
0.540240287
0.739631056
RELATED COMMANDS:
R
ACOS(value) Arccosine (see page 253)
R
ASIN(value) Arcsine (see page 278)
R
ATAN(value) Arctangent (see page 282)
R
SIN(value) Sine (see page 700)
R
TAN(value) Tangent (see page 736)
Part 2: Commands: COS(value)