The parenthesis enclosing the argument can be omitted when the argument is a
numeric value or variable.
EXAMPLE: RAN# * 10
PARAMETERS: argument : numeric expression
EXPLANATION:
1. Returns a random value in the ]-1, 1[ range.
2. Random numbers are generated from the same table when X=1.
3. The last random number generated is repeated when X=0.
4. Random numbers are generated from the random table when X=-1.
5. Random number generation begins with the same value each time a program
is executed. This means that the same series of numbers is generated unless
the argument of RAN# is omitted or is equal to -1.
EXAMPLE: RAN# * 10
REC
PURPOSE: Converts polar coordinates (r, θ) to rectangular coordinates (x, y).
FORMAT:
EXAMPLE: REC(10,15)
PARAMETERS: x- and y-coordinates: numeric expressions not both zero.
1. Distance r: numeric expression in the [0, 10
100
[ range.
2. Angle θ in the ]-1440°, 1440°[ or ]-8π Radians, 8π Radians[ range.
EXPLANATION:
1. Converts polar coordinates (r, θ) to rectangular coordinates (x, y). The
following relational expressions are used at this time:
x = r cosθ y = r sinθ
2. The value of x is automatically assigned to variable X, wile y is automatically
assigned to variable Y
SEE: POL