Professional Documents
Culture Documents
“Algol is FORTRAN done right.” -Bruce Knobe, 1973 “Pascal is FORTRAN done
right.” -Raymond Langsford, 1980 “FORTRAN 77 is FORTRAN done right.” -James Ball,
1983
History of FORTRAN Stands for IBM Mathematical FORmula TRANslation System but
abbreviated to FORmula TRANslation FORTRAN 0 was developed by a IBM research team
headed by John Backus in 1954. Was the first high-level programming language
IBM 701
FORTRAN I 1957 Was the first compiler By 1958 over 50% of software was in
FORTRAN Cut development time.
2 weeks to 2 hours
FORTRAN II - IV FORTRAN II
FORTRAN III
FORTRAN IV
Explicit type declarations Logical selection (IF) statement Subprogram names could
be parameters ANSI standard in 1966
Character string handling Logical loop control statements And a If with a optional
else statement
Data Types
3E5 .123E-3
300000 .000123
1D2
100
Complex Data Types Built in complex number data type Which occupies 2 bytes
The first byte in the pair represents the real part of the complex data type. The
second byte represents the imaginary part of the complex item. represented as
follows Numeric Value (4.61,-6.81) 4.61 – 6.81i (-10,5) -10+5i
Main Program The main program receives control of the processor when an
executable program is loaded for execution. There can be only one main program in
an executable program. That main program is identified by the fact that it does
not have a FUNCTION, SUBROUTINE, or BLOCK DATA statement as its initial statement.
Statement Functions Statement functions are one line defined functions that is
internal to the program unit in which it is defined
ROOT(A,B,C) = (-B+SQRT(B**2-4.0*A*C))/(2.0*A)
Subprograms The main abstraction devices in FORTRAN 77 are the subroutines and
functions. The subroutine definition
M=I I=J J=M RETURN END Functions are structurally similar to subroutines.
GOTO Statements The GOTO statement is used to direct program control to indicated
by the statement number specified in the respective GOTO statement Three types of
GOTO statements
IF(Q) THEN A=B C=D ELSE IF (R) THEN E=F G=H ELSE X=Y Z=W END IF
DO 10 I = 1,10,1
CONTINUE,STOP PAUSE, and END STATEMENT The CONTINUE statement serves as a point
of reference in a program
The STOP terminates execution The PAUSE terminates execution, but leaves the
program in a resumable state
Readability FORTRAN 77 is not to hard to read on a small scale, but when many
GOTO statements are involved it gets very difficult Identifiers can only be six
characters long
Writability Depends on what you are using it for. Is a pretty simply language
Reliability Is not very reliable Only static type checking Lack of exception
handling
Bibliography
Chivers, Ian D. Sleightholme, Jane. Interactive FORTRAN 77: A Hands on Approach 2nd
ed. 1984. http://www.kcl.ac.uk/kis/support/cit//fortran/f77book.pdf
Page, Rex. Didday, Rich. Alpert, Elizabeth. FORTRAN 77 for Humans, 3rd ed. 1986
West Publishing Company
Katzan, Harry Jr. FORTRAN 77, Computer Science Series. 1978 Van Nostrand Reinhold
Company