meeting 15 introduction to numerical methods error analysis

11
Meeting 15 Introduction to Numerical Methods Error Analysis

Upload: helena-sabrina-fletcher

Post on 17-Jan-2016

225 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Meeting 15 Introduction to Numerical Methods Error Analysis

Meeting 15• Introduction to Numerical Methods

• Error Analysis

Page 2: Meeting 15 Introduction to Numerical Methods Error Analysis

Numerical Methods

Numerical methods are techniques by which mathematical problems are formulated so that they can be solved with arithmetic operations.

Page 3: Meeting 15 Introduction to Numerical Methods Error Analysis

Why We should Study Numerical Methods

1. Numerical methods are extremely powerful problem-solving tools.2. Numerical methods provide a vehicle to reinforce the understanding of mathematics.

Page 4: Meeting 15 Introduction to Numerical Methods Error Analysis

Significant Digit

The significant digits of a number are those that can be used with confidence. They correspond to the number of certain digits plus one estimated digit.

Zeros are not always significant figures because they may be necessary just to locate a decimal point.

Page 5: Meeting 15 Introduction to Numerical Methods Error Analysis

Significant Digit

The numbers 0.00001845, 0.0001845, and 0.001845 all have four significant figures.

When trailing zeros are used in large numbers, it is not clear how many, if any, of the zeros are significant.

Page 6: Meeting 15 Introduction to Numerical Methods Error Analysis

Significant DigitFor example, at face value the number 45,300 may have three, four, or fivesignificant digits, depending on whether the zeros are known with confidence. Suchuncertainty can be resolved by using scientific notation, where , , designate that the number is known to three, four, and five significantfigures, respectively.

Page 7: Meeting 15 Introduction to Numerical Methods Error Analysis

ACCURACY AND PRECISION

Accuracy refers to how closely a computed or measured value agrees with the true value.

Precision refers to how closely individual computed or measured values agree with each other.

Page 8: Meeting 15 Introduction to Numerical Methods Error Analysis

(a) inaccurate and imprecise

(b) accurate and imprecise

(c) inaccurate and precise

(d) accurate and precise.

Page 9: Meeting 15 Introduction to Numerical Methods Error Analysis

ERROR DEFINITIONS

Numerical errors arise from the use of approximations to represent exact mathematical operations and quantities. • Truncation errors -> which result when approximations are used to represent exact mathematical procedures. • Round-off errors -> which result when numbers having limited significant figures are used to represent exact numbers.

Page 10: Meeting 15 Introduction to Numerical Methods Error Analysis

ERROR DEFINITIONS

True value = approximation + errorThen,

True error = Et = true value − approximationand

True percent relative error = =

Current approximation = previous approximation + approximate error

Then,Approximate error = = current approximation − previous approximation

andApproximate percent relative error = =

Page 11: Meeting 15 Introduction to Numerical Methods Error Analysis

ERROR DEFINITIONS

We may not be concerned with the sign of the error, but we are interested in whether the percentabsolute value is lower than a pre-specified percent tolerance .It is also convenient to relate these errors to the number of significant figures in the approximation.It can be shown (Scarborough, 1966) that if the following criterion is met, we can be assured that the result is correct to at least n significant figures.