next up previous contents
Next: 2.12 filenames Up: 2. General commands Previous: 2.10 exit

2.11 expressions

Arithmetic expressions can be evaluated in a FORTRAN style. Five basic operators are defined:

"+"  Addition
"-"  Subtraction
"*"  Multiplication
"/"  Division
"**" Exponentiation
The usual hierarchy of operators holds. The parts of the expression can be grouped with parentheses "(",")" in order to circumvent the standard hierarchy

Several intrinsic functions have been defined, see "functions" for a full listing.

Examples of valid expressions are:

1
1+3*(sin(3.14*r[1]))
x[1]*0.155
asind(0.5)


Thomas Proffen {Billinge}
1999-07-20