Demo Code

Arithmetic Computation

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
      1 + 5
6
      1 + 5 6 7     // scalar and vector
6 7 8
      2 * 3 + 9     // right to left execution
24
      2 * ( 3 + 9 ) // parenthesis last
24
      (2 * 3) + 9   // parenthesis first
15

Matrix and Array

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
      !25
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
      5 5#!25   //5x5 matrix
 1  2  3  4  5
 6  7  8  9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
      2 3 4#!25 //2x3x5 array
 1  2  3  4
 5  6  7  8
 9 10 11 12

13 14 15 16
17 18 19 20
21 22 23 24

Workspace and Scripts

File extension:

  • A workspace is a file with extension .eli
  • A script is a file with extension .esf

Basic commands:

  • )save demo1 //save to demo1.eli
  • )load demo1 //load demo1
  • )fload script //load script