EasyManua.ls Logo

Moog SmartMotor

Moog SmartMotor
909 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Part 2: Commands
Moog Animatics SmartMotor Developer's Guide,Rev. L
Page 453 of 909
produce IEEE-754 single-precision results. For more details, see Variables and Math on page
195.
EXAMPLE:
a=9 'Set variable a = 9
af[0]=FSQRT(4) 'Set array variable af[0] = FSQRT(4)
RFSQRT(4)
af[1]=FSQRT(6.5) 'Set array variable af[1] = FSQRT(6.5)
RFSQRT(6.5)
af[2]=FSQRT(8.5) 'Set array variable af[2] = FSQRT(8.5)
RFSQRT(8.5)
af[3]=FSQRT(a) 'Set array variable af[3] = FSQRT(a)
RFSQRT(a)
PRINT(af[0],", ",af[1],", ",af[2],", ",af[3],#13) 'Print variable values
END
Program output is:
2.000000000
2.549509763
2.915475845
3.000000000
2.000000000, 2.549509763, 2.915475845, 3.000000000
RELATED COMMANDS:
R
SQRT(value) Integer Square Root (see page 718)
Part 2: Commands: FSQRT(value)

Table of Contents

Related product manuals