Next: , Previous: program-structure, Up: Lattice


3.2 Arithmetical expressions

Throughout the program a standard set of arithmetical expressions is available. Every expression is ended with a semicolumn. For example

     
     x=1;
     y=2.5-x;
     z=sin(x) + log(y) - 8e5;
     

The variables then could be used along with numerical constants. The if-else clause is also available, for example

     z=1;
     if(z<2)
     y=2.5-x
       else
     y=15;