Skip to main content Accessibility help
×
Hostname: page-component-76fb5796d-25wd4 Total loading time: 0 Render date: 2024-04-26T03:54:17.033Z Has data issue: false hasContentIssue false

Appendix C - Numerical algorithms: A third tool

Published online by Cambridge University Press:  05 May 2014

Erik Bølviken
Affiliation:
Universitetet i Oslo
Get access

Summary

Introduction

Can't we simply rely on the available software and avoid what is behind numerical methods altogether? A lot of work can be completed that way with numerical algorithms as black boxes, but if things go wrong you are stuck without knowledge of what's on the inside, and should you become involved in software development, numerical tools play a leading role. For a broad and practically oriented text try Numerical Recipes in C (Press et al., 2007), with sister volumes in C++, Fortran and Pascal, which comes with hundreds of implemented procedures that can be downloaded and used for your own programming.

The purpose of this appendix is the much more modest one of reviewing numerical methods for this book in a relaxed manner which doesn't require prior knowledge of numerical mathematics. A lot can actually be achieved with a handful of elementary methods, and some of them are up to 200 years old! Minimizing or maximizing functions is an exception deserving special mention. Since the days of Newton–Raphs on the world has moved far, and optimization software may work magnificently even when differentiation is carried out numerically. Why is it advantageous to avoid exact calculation of derivatives? Because implementation is often time consuming, and when the function to be optimized is a Monte Carlo simulation it may be impossible. Don't differentiate the function to be optimized to solve equations instead. This is still advocated in some textbooks, but after considerable effort the original problem has been replaced by a more difficult one! Non-linear equations in one variable are easy (Section C.4). Several of them are best avoided (if possible).

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2014

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×