~~~~~~~~~ OPERATORS ~~~~~~~~~ Arithmetic Operators -------------------------------------------------------------------------------------------- Operator Description Sample Meaning -------------------------------------------------------------------------------------------- + Addition x+y addition of x and y - Subtraction x-y difference between x and y * Multiplication x*y multiplication of x and y / Division x/y ratio of x and y ** Exponential x**y x to the power of y -------------------------------------------------------------------------------------------- Comparison Operators -------------------------------------------------------------------------------------------- Operator Description Sample Meaning -------------------------------------------------------------------------------------------- .GT. Greater than x.GT.y Is x greater than y? .LT. Less than x.LT.y Is x less than y? .EQ. Equal x.EQ.y Is x equal to y? .LE. Greater than or equal x.GE.y Is x greater than or equal to y? .GE. Less than or equal x.LE.y Is x less than or equal to y? .NE. Not equal x.NE.y Is x not equal to y? -------------------------------------------------------------------------------------------- Logical Operators ----------------------------- Operator Meaning ----------------------------- .NOT. Negation .AND. Conjunction .OR. Disjunction .EQV. Equivalence .NEQV. Nonequivalence ------------------------------ Let p and q be logical variables, then truth tables p q .NOT.p .NOT.q - - ------- ------ F F T T F T T F T F F T T T F F ----------------------------------------- p q p.AND.q p.OR.q p.EQV.q p.NEQV.q - - ------- ------ ------- -------- F F F F T F F T F T F T T F F T F T T T T T T F Other operators -------------------------------------------------------------------------------------------- Operator Description Example -------------------------------------------------------------------------------------------- ! initiates a comment, everything after ! this is a comment, i love comments this character on the same line is ignored by the compiler. // String concatenation operator "centi" // "meters" = "centimeters" which joins two individual strings or adds one strings to another & Continuation Operator PRINT *,'This is a & test string' --------------------------------------------------------------------------------------------