4 - 4 en-938872/2
For tables with 2, 3 or 4 dimensions:
- the value of a dimension must be between 1 and 255.
The dimensions must be declared as immediate values or declared symbolic
variables.
Example:
[VAR1] = 10
[VAR] = [TAB1 (VAR1,5)]
is equivalent to:
[TAB1 (10,5)]
Symbolic variables are real values.
Table indexes are immediate values or symbolic variables.
A dimension cannot be defined using:
- L programme variables,
- E external parameters.
Example:
If symbolic variable [TAB(L0,3)] is programmed, it is not programme variable L0 but
symbolic variable [L0] that is searched for.
The table indexes can be additions or subtractions of values or symbolic variables.
Example:
VAR [IX] [COSX] [SINX] [NBT] = 4
[TABL(2,NBT)] = 0, 0, 10, 5, 20, 8, 30, -2
ENDV
FOR [IX] = 1 TO [NBT] -1 DO
[COSX] = [TABL(1,IX+1)] - [TABL(1,IX)]
[SINX] = [TABL(2,IX+1)] - [TABL(2,IX)]
L0 = [COSX]
*
[COSX] L0 = [SINX]
*
[SINX] + L0
[COSX] = [COSX] / RL0 [SINX] = [SINX] / RL0
X [TABL(1,IX+1)] Y [TABL(2,IX+1)]
ENDF
Structure of tables with several dimensions
The entries for the first dimension are located first in the declaration, then multiplied
by the number of entries of the second dimension. The result is then multiplied by the
number of entries of the following dimension and so forth.