Numerical Recipes in Fortran 77 - The Art of Scientific Computing
ISBN : 052143064X
Cover Design - Numerical Recipes in Fortran 77 - The Art of Scientific Computing
For your free electronic copy of this book please verify the numbers below.
(We need to do this to make sure you're a person and not a malicious script)
Sample Chapter From Numerical Recipes in Fortran 77 - The Art of Scientific Computing
Copyright © William H. Press, Brian P. Flannery, Saul A. Teukolsky, William T. Vetterling
Chapter 1. Preliminaries
1.0 IntroductionThis book, like its predecessor edition, is supposed to teach you methods of
numerical computing that are practical, efficient, and (insofar as possible) elegant.
We presume throughout this book that you, the reader, have particular tasks that you
want to get done. We view our job as educating you on how to proceed. Occasionally
we may try to reroute you briefly onto a particularly beautiful side road; but by and
large, we will guide you along main highways that lead to practical destinations.
Throughout this book, you will find us fearlessly editorializing, telling you
what you should and shouldn’t do. This prescriptive tone results from a conscious
decision on our part, and we hope that you will not find it irritating. We do not
claim that our advice is infallible! Rather, we are reacting against a tendency, in
the textbook literature of computation, to discuss every possible method that has
ever been invented, without ever offering a practical judgment on relative merit. We
do, therefore, offer you our practical judgments whenever we can. As you gain
experience, you will form your own opinion of how reliable our advice is.
We presume that you are able to read computer programs in FORTRAN, that
being the language of this version of Numerical Recipes (Second Edition). The
book Numerical Recipes in C (Second Edition) is separately available, if you prefer
to program in that language. Earlier editions of Numerical Recipes in Pascal and
Numerical Recipes Routines and Examples in BASIC are also available; while not
containing the additional material of the Second Edition versions in C and FORTRAN,
these versions are perfectly serviceable if Pascal or BASIC is your language of
When we include programs in the text, they look like this:
Our programs begin with an introductory comment summarizing their purpose and explaining
their calling sequence. This routine calculates the phases of the moon. Given an integer
n and a code nph for the phase desired (nph = 0 for new moon, 1 for first quarter, 2 for
full, 3 for last quarter), the routine returns the Julian Day Number jd, and the fractional
part of a day frac to be added to it, of the nth such phase since January, 1900. Greenwich
Mean Time is assumed.
pause ’nph is unknown in flmoon’