Package for Machine Design

Finite Element Analysis in Structural Mechanics

User Tools

Site Tools


en:ref:c:2

Condensed notation for numerical data

Repetition

m∗a

  • m ... count
  • a ... number

Example

3*0.3 → 0.3 0.3 0.3

Arithmetic sequence with difference ±1

a:b

  • a ... first number
  • b ... last number

Example

3:6 → 3 4 5 6

Example

8:5 → 8 7 6 5

Example

0.1:2.9 → 0.1 1.1 2.1

Arithmetic sequence with a given difference

m∗aDd

  • m ... number count
  • a ... first number
  • d ... difference

Example

4*0.5D0.1 → 0.5 0.6 0.7 0.8

Example

3*8D-2 → 8 6 4

Interval split by count

m∗a:b

  • m ... number count
  • a ... first number
  • b ... last number

Example

4*0.5:0.8 → 0.5 0.6 0.7 0.8

Example

3*8:4 → 8 6 4

Interval split by difference

a:bDd

  • a ... first number
  • b ... last number
  • d ... difference

Example

2.9:3.1D0.1 → 2.9 3.0 3.1

Example

8.6:8.3D0.1 → 8.6 8.5 8.4 8.3

Example

3.0:3.5D0.2 → 3.0 3.25 3.5

Sequence repetition

In some groups of input data, a regular repetition of certain sequences of numbers can be observed, which can also be exploited. At the first occurrence, a sequence is defined by enclosing it in parentheses, which are written in the form =X, where X is any letter of the English alphabet with the exception of E and D. This letter is the identifier of the sequence and it is valid for the entire group, not the batch. The parentheses of sequences can overlap from the left as well as from the right.

Example

=A 3 2 =B 8 9 =C 7.23 =B =A =C

defines three sequences:

A → 3 2 8 9 7.23
B → 8 9 7.23
C → 7.23

At the next occurrence, the sequence is replaced by =X or =dX, where d is the difference by which the whole sequence will be increased.

Example

=G 0.3 0.8 =G 0.6 =G 1.5 =G → 0.3 0.8 0.6 0.3 0.8 1.5 0.3 0.8

Example

=G 0.3 0.8 =G 0.6 =2G 1.5 =0.2G → 0.3 0.8 0.6 2.3 2.8 1.5 0.5 1.0

If a sequence is repeated back-to-back several times, it may be written in the form m*(sequence), where m is the sequence repetition count. For a sequence enclosed by the parentheses, it is possible to use all of the condensed notations described above.

Example

3*(4 3) → 4 3 4 3 4 3

Example

2*(=A 4 3 =A =2A) → 4 3 6 5 4 3 6 5
en/ref/c/2.txt · Last modified: by Petr Pařík