A concise text introduces engineering and computing students to Fortran programming. The text stresses elementary numerical methods as the primary examples for learning Fortran – an approach of special interest to engineers. The emphasis is on Fortran 77, but the text includes an introduction to Fortran 90.
1. Introduction
2. Basic Fortran Constructs
2.1. Computation and Assignment
2.2. Input and Output
2.3. Decisions: The IF Statement
2.4. Repetition: The DO and WHILE Statements
2.5. Subprograms
2.6. Scientific Computing: Numerical Integration
2.7. Writing Good Programs and Detecting Errors
2.8. Lots of Values: Arrays
2.9. Nicer Output: FORMAT Statements
2.10. Scientific Computing: Differential Equations
3. Extensions and Restrictions
3.1. Expressions, Types, and Data
3.2. Logical Variables and Decision Statements
3.3. Scientific Computing: Nonlinear Equations
3.4. More on DO Loops and Arrays
3.5. Two-Dimensional Arrays
3.6. More on Subprograms
3.7. Character Computations
3.8. More on Input/Ouput
3.9. Scientific Computing: Linear Equations
4. The New and the Old
4.1. Fortran 90: Basic Changes
4.2. Fortran 90: Advanced Features
4.3. Obsolescent Features
Caveats and Further Reading
Appendix 1. ASCII Characters
Appendix 2. Intrinsic Functions
James M. Ortega