12.07.2015 Views

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.7.3 Relational ExpressionsA relational expression is composed of two arithmetic expressions separated by a relationaloperator. The value of the expression is true or false (.TRUE. or .FALSE.) depending on thevalue of the expressions and the nature of the operator. The table below shows the relationaloperators.Operator.LT..LE..EQ..NE..GT..GE.RelationshipLess thanLess than or equal toEqual toNot equal toGreater thanGreater than or equal toIn relational expressions the arithmetic elements are evaluated to obtain their values. Therelationship is then evaluated to obtain the true or false result. Thus the relational expression:TIME + MEAN .LT. LASTmeans if the sum of TIME and MEAN is less than the value of LAST, then the result is true,otherwise it is false.1.7.4 Logical ExpressionsA logical expression is composed of two relational or logical expressions separated by a logicaloperator. Each logical expression yields the value true or false (.TRUE. or .FALSE.) Thefollowing table shows the logical operators.Operator.AND..OR..NOT..NEQV..XOR..EQV.RelationshipTrue if both expressions are true.True if either expression or both is true.This is a unary operator; it is true if the expression is false, otherwiseit is false.False if both expressions have the same logical valueSame as .NEQV.True if both expressions have the same logical value24 Chapter 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!