Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 737 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]=TAN(45.7) 'Set array variable = TAN(45.7)
Raf[0] 'Report value of af[0] variable
RTAN(45.7) 'Report TAN(45.7)
af[1]=78.3 '78.3 degrees
af[0]=TAN(af[1]) 'Variables may be put in the parenthesis
Raf[0]
END
Program output is:
1.024738192
1.024738192
4.828816413
RELATED COMMANDS:
R
ACOS(value) Arccosine (see page 253)
R
ASIN(value) Arcsine (see page 278)
R
ATAN(value) Arctangent (see page 282)
R
COS(value) Cosine (see page 366)
R
SIN(value) Sine (see page 700)
Part 2: Commands: TAN(value)