next up previous contents
Next: Assignment Up: Expressions and Assignment Previous: Expressions and Assignment

 

Expressions

 

Each of the three broad type classes has its own set of intrinsic (in-built) operators, these are combined with operands to form expressions. Expressions are made from one operator (eg, +, -, *, /, // and **) and at least one operand. Operands are also expressions.

Expressions have types derived from their operands; they are either of intrinsic type or a user defined type. For example,

    a+6*g(i)/5.0-(a**2) ! numeric
    name//" is a wally" ! character
    lhs .GT. rhs        ! logical

In addition to the intrinsic operations:


next up previous contents
Next: Assignment Up: Expressions and Assignment Previous: Expressions and Assignment

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 15:03:35 GMT 1996
Not for commercial use.