17.11.2012 Views

Numerical recipes

Numerical recipes

Numerical recipes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10 Chapter 1. Preliminaries<br />

if<br />

condition<br />

block<br />

true<br />

false<br />

else if<br />

condition<br />

block<br />

true<br />

case<br />

match?<br />

no<br />

case<br />

match?<br />

no<br />

false<br />

. . .<br />

. . .<br />

IF structure<br />

(e)<br />

switch<br />

expression<br />

yes<br />

yes<br />

default block<br />

SWITCH structure<br />

(f )<br />

else if<br />

condition<br />

true<br />

block<br />

break?<br />

block<br />

block<br />

no<br />

break?<br />

no<br />

yes<br />

yes<br />

false<br />

else block<br />

Figure 1.1.1. Standard control structures used in structured programming (see caption on previous page).<br />

Sample page from NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5)<br />

Copyright (C) 1988-1992 by Cambridge University Press. Programs Copyright (C) 1988-1992 by <strong>Numerical</strong> Recipes Software.<br />

Permission is granted for internet users to make one paper copy for their own personal use. Further reproduction, or any copying of machinereadable<br />

files (including this one) to any server computer, is strictly prohibited. To order <strong>Numerical</strong> Recipes books or CDROMs, visit website<br />

http://www.nr.com or call 1-800-872-7423 (North America only), or send email to directcustserv@cambridge.org (outside North America).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!