Review


Assignment :

Read Chapter 6 by Monday, Start Homework 8

New Fortran:

none

What to study for the exam? Start by looking below. If you understand, all listed commands and concepts, you will be in very good shape. I will not ask any questions on Fortran statements not listed here (not much comfort there), nor will I question you on Unix commands not listed here. There are other related issues which are important, such as relative speed of commands, that you should pick up from the class notes.

I have constructed the exam based, entirely on the lists below, and the basic Web notes, and examples on the Web. I have not included questions based on any material in the text not covered in the class notes. I have not included questions from special Web notes, such as the statement definition pages or material on historical figures in the development of computing.

As you review previous exams. Remember that the class was not structured in the same way that it is this year.

Fortran Summary

Program bounding:

PROGRAM, END
Subprograms:

SUBROUTINE, CALL, FUNCTION, reference, calling sequence, arguments, function typing, setting the function value, RETURN, END
Modules:

MODULE, END MODULE

Comments:

C, c, or * in Column 1
Stop execution:

STOP
Data Typing Statements:

REAL INTEGER LOGICAL IMPLICIT NONE
Assignment:

=, DATA, PARAMETER
Arithmetic Operators and Expressions

+ - * / ** ( ) relative speed of operations
Logical Operators and Expressions

.NOT. .AND. .OR. .EQV. .NEQV.
Relational Operators

.EQ. .NE. .LT. .LE. .GT. .GE. == /= < <= > >=
Precidence of Operators

parentheses ; ** ; * or / ; + or - ; relational operators; .NOT. ; .AND. ; .OR. ; .EQV. or .NEQV.
Intrinsic Functions:

ABS, IABS, SIN, COS, TAN, EXP, LOG, ASIN, ACOS, ATAN, SQRT, NINT, MIN, MAX, AMAX1, AMAX0, MAX0, MAX1, AMIN1, AMIN0, MIN0, MIN1
Input/Output Statements:

READ, PRINT, WRITE, OPEN, CLOSE
If Structures:

IF(logical) statement; IF(logical) GO TO label; IF (logical) THEN, ELSE IF, ELSE, ENDIF; IF(arithmetic) label, label, label
Conditional Structures:

SELECT CASE ( ), CASE, CASE DEFAULT, END SELECT; computed GO TO
DO loops:

DO 100 I=IMIN,IMAX,ISTEP ; DO I=IMIN,IMAX,ISTEP; DO; DO WHILE (logical), END DO
Labels:

Number anywhere in columns 1-5, used for target of a branch, or special statement identification

CONTINUE statement:

doesn't do anything, but great place holder for a label on DO
Simple GO TO statement

Unix

man, ls, mkdir, cd, pwd, cp, mv, rm, rmdir, exit, f77, dbx

vi and vi commands: dd, x, a, i, Esc, :w, :wq, :q!

Computational Applications

Interpolation, Newton's Method


Back to the Table of Contents / Home


Written and Maintained by John Mahaffy : jhm@psu.edu