Skip to main content Accessibility help
×
Hostname: page-component-7479d7b7d-qs9v7 Total loading time: 0 Render date: 2024-07-14T20:13:35.196Z Has data issue: false hasContentIssue false

1 - The Numerical Evaluation of Expressions

Published online by Cambridge University Press:  20 May 2010

Arnold Neumaier
Affiliation:
Universität Wien, Austria
Get access

Summary

In this chapter, we introduce the reader on a very elementary level to some basic considerations in numerical analysis. We look at the evaluation of arithmetic expressions and their derivatives, and show some simple ways to save on the number of operations and storage locations needed to do computations.

We demonstrate how finite precision arithmetic differs from computation with ideal real numbers, and give some ideas about how to recognize pitfalls in numerical computations and how to avoid the associated numerical instability. We look at the influence of data errors on the results of a computation, and how to quantify this influence using the concept of a condition number. Finally we show how, using interval arithmetic, it is possible to obtain mathematically correct results and error estimates although computations are done with limited precision only.

We present some simple algorithms in a pseudo-MATLAB® formulation very close to the numerical MATrix LABoratory language MATLAB (and some – those printed in typewriter font – in true MATLAB) to facilitate getting used to this excellent platform for experimenting with numerical algorithms. MATLAB is very easy to learn once you get the idea of it, and the online help is usually sufficient to expand your knowledge. We explain many MATLAB conventions on their first use (see also the index); for unexplained MATLAB features you may try the online help facility. Type help at the MATLAB prompt to find a list of available directories with MATLAB functions; add the directory name after help to get information about the available functions, or type the function name (without the ending .m) after help to get information about the use of a particular function.

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

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
×