1. A Subset of Fortran 77
Society for Industrial and Applied Mathematics eBooks · 1988
Our treatment of Fortran 77 (F77) assumes that the reader is already familiar with some high-level language, e.g., PASCAL. There are many books devoted to the presentation of the basics of Fortran 77 (see, e.g., Zwass [8]). We do not attempt to be exhaustive at this level. For example, we say nothing about the "opening" and "closing" of files, and character manipulation is mentioned only briefly. Rather, our emphasis is on matrix computations and we have attempted to be complete in this regard. We pay special attention to arrays since the implementation of matrix algorithms is an underlying theme of the book.We believe that it is still important for students with a serious interest in scientific computation to be familiar with Fortran. This is not to say that we are advocating that all scientific computing be done in Fortran. On the contrary, the most appropriate language for a particular application at hand should be used. The language "C" is an increasingly popular choice. MATLAB is well suited to dense matrix computations and graphical work. However, we strongly believe that high-quality subroutines should be used as building blocks whenever possible. For reasons of portability and standardization, this software is almost always Fortran software and will probably continue to be so for many years. Therefore, familiarity with Fortran is essential.A scientific programmer working in a language other than Fortran can often use Fortran subroutines directly, provided the language and computer system support such an interface. Otherwise a direct translation can be used, provided that extreme care is taken. In either case, Fortran knowledge is required.