Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 719 of 909
EXAMPLE:
a=9 'Set variable a = 9
r=SQRT(4) 'Set variable r = SQRT(4)
RSQRT(4)
s=SQRT(6) 'Set variable s = SQRT(6)
RSQRT(6)
t=SQRT(8) 'Set variable t = SQRT(8)
RSQRT(8)
u=SQRT(a) 'Set variable u = SQRT(a)
RSQRT(a)
PRINT(r,", ",s,", ",t,", ",u,#13) 'Print value of each variable
END
Program output is:
2
2
2
3
2, 2, 2, 3
RELATED COMMANDS:
R
FSQRT(value) Floating-Point Square Root (see page 452)
Part 2: Commands: SQRT(value)