Numerical Algorithms. IE 496 Lecture 20

Similar documents
Notes on floating point number, numerical computations and pitfalls

Lecture 7. Floating point arithmetic and stability

Jim Lambers MAT 610 Summer Session Lecture 2 Notes

Errors. Intensive Computation. Annalisa Massini 2017/2018

Floating Point Number Systems. Simon Fraser University Surrey Campus MACM 316 Spring 2005 Instructor: Ha Le

Floating-point Computation

Lecture Notes 7, Math/Comp 128, Math 250

Elements of Floating-point Arithmetic

Mathematical preliminaries and error analysis

1 Backward and Forward Error

Elements of Floating-point Arithmetic

Chapter 4 No. 4.0 Answer True or False to the following. Give reasons for your answers.

Chapter 1 Mathematical Preliminaries and Error Analysis

CHAPTER 2 POLYNOMIALS KEY POINTS

Chapter 1: Introduction and mathematical preliminaries

ACM 106a: Lecture 1 Agenda

AMS 147 Computational Methods and Applications Lecture 17 Copyright by Hongyun Wang, UCSC

The answer in each case is the error in evaluating the taylor series for ln(1 x) for x = which is 6.9.

Unit 1 Vocabulary. A function that contains 1 or more or terms. The variables may be to any non-negative power.

CME 302: NUMERICAL LINEAR ALGEBRA FALL 2005/06 LECTURE 5. Ax = b.

Topics. Review of lecture 2/11 Error, Residual and Condition Number. Review of lecture 2/16 Backward Error Analysis The General Case 1 / 22

Essential Mathematics

Math 411 Preliminaries

Let x be an approximate solution for Ax = b, e.g., obtained by Gaussian elimination. Let x denote the exact solution. Call. r := b A x.

FLOATING POINT ARITHMETHIC - ERROR ANALYSIS

Chapter 1 Error Analysis

Outline. Math Numerical Analysis. Errors. Lecture Notes Linear Algebra: Part B. Joseph M. Mahaffy,

Notes for Chapter 1 of. Scientific Computing with Case Studies

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

Arithmetic and Error. How does error arise? How does error arise? Notes for Part 1 of CMSC 460

FLOATING POINT ARITHMETHIC - ERROR ANALYSIS

Lecture 9. Errors in solving Linear Systems. J. Chaudhry (Zeb) Department of Mathematics and Statistics University of New Mexico

1.1 COMPUTER REPRESENTATION OF NUM- BERS, REPRESENTATION ERRORS

CHAPTER 11. A Revision. 1. The Computers and Numbers therein

Section 8.3 Partial Fraction Decomposition

2. Review of Calculus Notation. C(X) all functions continuous on the set X. C[a, b] all functions continuous on the interval [a, b].

Simultaneous Linear Equations

Warm-Up. Use long division to divide 5 into

Introduction and mathematical preliminaries

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Fall 2014 MAT 375 Numerical Methods. Numerical Differentiation (Chapter 9)

Section A.6. Solving Equations. Math Precalculus I. Solving Equations Section A.6

Core Mathematics 2 Algebra

How might we evaluate this? Suppose that, by some good luck, we knew that. x 2 5. x 2 dx 5

Tu: 9/3/13 Math 471, Fall 2013, Section 001 Lecture 1

, a 1. , a 2. ,..., a n

1 Number Systems and Errors 1

Compute the behavior of reality even if it is impossible to observe the processes (for example a black hole in astrophysics).

An Introduction to Numerical Analysis

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

Function Junction: Homework Examples from ACE

Scientific Computing: Dense Linear Systems

Math 471. Numerical methods Introduction

Applications of Mathematics MA 794

Preliminary Examination, Numerical Analysis, August 2016

MA.8.1 Students will apply properties of the real number system to simplify algebraic expressions and solve linear equations.

5.) For each of the given sets of vectors, determine whether or not the set spans R 3. Give reasons for your answers.

NUMERICAL MATHEMATICS & COMPUTING 6th Edition

Roots and Coefficients Polynomials Preliminary Maths Extension 1

Lecture notes to the course. Numerical Methods I. Clemens Kirisits

Chapter 2 notes from powerpoints

Validation for scientific computations Error analysis

x y More precisely, this equation means that given any ε > 0, there exists some δ > 0 such that

Econ Slides from Lecture 8

ECS 231 Computer Arithmetic 1 / 27

Computer Arithmetic. MATH 375 Numerical Analysis. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Computer Arithmetic

nonlinear simultaneous equations of type (1)

Lecture 2: Numerical linear algebra

Conditioning and Stability

Math 411 Preliminaries

(x + 1)(x 2) = 4. x

ESO 208A: Computational Methods in Engineering. Saumyen Guha

Binary floating point

1.2 Finite Precision Arithmetic

Two hours. To be provided by Examinations Office: Mathematical Formula Tables. THE UNIVERSITY OF MANCHESTER. 29 May :45 11:45

Mathematical Focus 1 Complex numbers adhere to certain arithmetic properties for which they and their complex conjugates are defined.

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

7x 5 x 2 x + 2. = 7x 5. (x + 1)(x 2). 4 x

Introduction, basic but important concepts

Lecture 28 The Main Sources of Error

Tropical Polynomials

Introduction to Applied Linear Algebra with MATLAB

1 Floating point arithmetic

Solving Linear Systems of Equations

Numerical Methods - Lecture 2. Numerical Methods. Lecture 2. Analysis of errors in numerical methods

Bindel, Fall 2016 Matrix Computations (CS 6210) Notes for

LU Factorization. Marco Chiarandini. DM559 Linear and Integer Programming. Department of Mathematics & Computer Science University of Southern Denmark

Chapter 4 No. 4.0 Answer True or False to the following. Give reasons for your answers.

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

AIMS Exercise Set # 1

evaluate functions, expressed in function notation, given one or more elements in their domains

Mathematics for Engineers. Numerical mathematics

Introduction to Numerical Analysis

Integration of Rational Functions by Partial Fractions

Chapter 1 Computer Arithmetic

Section September 6, If n = 3, 4, 5,..., the polynomial is called a cubic, quartic, quintic, etc.

APPENDIX : PARTIAL FRACTIONS

Matrix notation. A nm : n m : size of the matrix. m : no of columns, n: no of rows. Row matrix n=1 [b 1, b 2, b 3,. b m ] Column matrix m=1

Practice Test - Chapter 2

APPLIED NUMERICAL LINEAR ALGEBRA

Transcription:

Numerical Algorithms IE 496 Lecture 20

Reading for This Lecture Primary Miller and Boxer, Pages 124-128 Forsythe and Mohler, Sections 1 and 2

Numerical Algorithms

Numerical Analysis So far, we have looked primarily at algorithms for discrete problems. Now we will consider problems from continuous mathematics. Numerical analysis is the study of algorithms for these problems. The main difference between the two areas is that in continuous mathematics, numbers must be approximated in general.

Problems and Algorithms A problem is a map from f: X Y, where X and Y are normed vector spaces. A numerical algorithm is a procedure which calculates F(x) Y, an approximation of f(x). A numerical algorithm does not necessatily have to be finite. Some algorithms converge (hopefully quickly) to the true solution "in the limit".

Conditioning A problem is well-conditioned if x x f(x ) f(x). Otherwise, it is ill-conditioned. Notice that well-conditioned requires all small perturbations to have a small effect. Ill-conditioned only requires some small perturbation to have a large effect. Condition number of a problem Absolute Relative

Stability An algorithm is stable if F(x) f(x ) for some x x. This says that a stable algorithm conputes "nearly the right answer" to "nearly the right question". Notice the contrast between conditioning and stability: Conditioning applies to problems. Stability applies to algorithms.

Accuracy Stability plus good conditioning implies accuracy. If a stable algorithm is applied to a well-conditioned problem, then F(x) f(x). Conversely, if a problem is ill-conditioned, an accurate solution may not be possible or even meaningful. We cannot ask more of an algorithm than stability.

Examples Addition, subtraction, multiplication, division. Addition, multiplication, division with positive numbers are well-conditioned problems. Subtraction is not. Zeros of a quadratic equation The problem of computing the two roots is well-conditioned. However, the quadratic formula is not a stable algorithm. Solving systems of linear equations Ax = b. Conditioning depends on the matrix A.

Floating-point Arithmetic The floating-point numbers F are a subset of the real numbers. For a real number x, let fl(x) F denote the floating point approximation to x. Let and represent the four floating point and exact arithmetic operations. Typically, there is a number u << 1 called machine epsilon, such that fl(x) = x(1 + ε) for some ε with ε u. a, b F, a b = (a b)(1 + ε) for some ε with ε u.

Stability of Floating Point Arithmetic Floating point arithmetic is stable for computing sums, products, quotients, and differences of two numbers. Sequences of these operations can be unstable however. Example Assume 10 digit precision (10-10 + 1) - 1 = 0 10-10 + (1-1) = 10-10 Floating point operations are not always associative.

More Bad Example Calculating e-a with a > 0 by Taylor Series. The round-off error is approximately u times the largest partial sum. Calculating e a and then taking its inverse gives a full-precision answer Roots of a quadratic (ax2 + bx + c) If x 1 0 and x 2 >> 0, then the quadratic formula is unstable. Computing x 2 by the quadratic formula and then setting x 1 = cx 2 / a is stable.

Backward Error Analysis Backward error analysis is a method of analyzing roundoff error and assessing stability. We want to show that the result of a floating-point operation has the same effect as if the original data had been perturbed by an amount in O(u). If we can show this, then the algorithm is stable.

More examples Matrix factorization Generally ill-conditioned. There are stable algorithms, however. Zeros of a polynomial Generally ill-conditioned. Eigenvalues of a matrix For a symmetric matrix, finding eigenvalues is wellconditioned, finding eigenvectors is ill-conditioned. For non-symmetric matrices, both are ill-conditioned. In all cases, there are stable algorithms.