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 semicolon, for example:

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

Available binary operators are: +, -, *, /, ^

Available unary operators are: +, -

Available Boolean operators are: <, >, <=, >=, <>, ==

Available functions 1 are:


Footnotes

[1] see add_func(..) in parser/gmad.cc