17.11.2012 Views

Numerical recipes

Numerical recipes

Numerical recipes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9.4 Newton-Raphson Method Using Derivative 363<br />

f(x)<br />

Figure 9.4.1. Newton’s method extrapolates the local derivative to find the next estimate of the root. In<br />

this example it works well and converges quadratically.<br />

3<br />

f(x)<br />

Figure 9.4.2. Unfortunate case where Newton’s method encounters a local extremum and shoots off to<br />

outer space. Here bracketing bounds, as in rtsafe, would save the day.<br />

2<br />

3<br />

2<br />

1<br />

1<br />

x<br />

x<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!