Approximations and Errors

Slides:



Advertisements
Similar presentations
Part 1 Chapter 4 Roundoff and Truncation Errors PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Advertisements

3- 1 Chapter 3 Introduction to Numerical Methods Second-order polynomial equation: analytical solution (closed-form solution): For many types of problems,
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 Approximations and Errors.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 5 Approximations, Errors and The Taylor Series.
NUMERICAL ERROR ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.
1 Error Analysis Part 1 The Basics. 2 Key Concepts Analytical vs. numerical Methods Representation of floating-point numbers Concept of significant digits.
Ch. 3.1 – Measurements and Their Uncertainty
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 31.
Introduction and Analysis of Error Pertemuan 1
CHEMISTRY ANALYTICAL CHEMISTRY Fall Lecture 4.
Significant Figures.
Chapter 3 Scientific Measurement 3.1 Using and Expressing Measurements
MMJ 1113 Computational Methods for Engineers Mohsin Mohd Sies Fakulti Kejuruteraan Mekanikal, Universiti Teknologi Malaysia.
Using and Expressing Measurements
Words to Know Qualitative measurements – results are in a descriptive, nonnumeric form (Forehead feels hot) Quantitative – results are in a definite form,
Chapter 1.5 Uncertainty in Measurement. Exact Numbers Values that are known exactly Numbers obtained from counting The number 1 in conversions Exactly.
Measurements: Every measurement has UNITS.
The Scientific Method 1. Using and Expressing Measurements Scientific notation is written as a number between 1 and 10 multiplied by 10 raised to a power.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Accuracy, Precision, and Error
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
Chem 160- Ch # 2l. Numbers from measurements.. Measurements Experiments are performed. Numerical values or data are obtained from these measurements.
Measurement and Its Uncertainties.
Significant Digits p. 940 – 941 or significant figures or sigfigs or sf.
ES 240: Scientific and Engineering Computation. Chapter 4 Chapter 4: Errors Uchechukwu Ofoegbu Temple University.
The Importance of measurement Scientific Notation.
Scientific Measurement. Measurements are fundamental to the experimental sciences.  Measurement: A quantity that has both a number and a unit.  Scientific.
Honors Chemistry I. Uncertainty in Measurement A digit that must be estimated is called uncertain. A measurement always has some degree of uncertainty.
ME 142 Engineering Computation I Computer Precision & Round-Off Error.
How big? Measurements and Significant Digits How small? How accurate?
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University 1 Chapter 1 Mathematical.
Objectives Distinguish between accuracy and precision. Determine the number of significant figures in measurements. Perform mathematical operations involving.
NUMERICAL ERROR Student Notes ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.
MECN 3500 Inter - Bayamon Lecture 3 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 3.
Meeting 15 Introduction to Numerical Methods Error Analysis.
Chemistry Mrs. Algier Do Now: Complete the Chapter 2 vocabulary worksheet.
Scientific Measurement Measurements and their Uncertainty Dr. Yager Chapter 3.1.
Numerical Analysis CC413 Propagation of Errors.
What is the difference between accuracy and precision? Good precision Low accuracy = average position Low precision High accuracy.
Errors in Numerical Methods
Precision, Error and Accuracy Physics 12. Measurement  When taking measurements, it is important to note that no measurement can be taken exactly  Therefore,
ESO 208A/ESO 218 LECTURE 2 JULY 31, ERRORS MODELING OUTPUTS QUANTIFICATION TRUE VALUE APPROXIMATE VALUE.
Measurements and their Uncertainty
SIGNIFICANT FIGURES Rules for Significant Figures.
Numerical Analysis CC413 Propagation of Errors. 2 In numerical methods, the calculations are not made with exact numbers. How do these inaccuracies propagate.
3.1 Using and Expressing Measurements > 1 Copyright © Pearson Education, Inc., or its affiliates. All Rights Reserved. Chapter 3 Scientific Measurement.
 Importance: to ensure the accuracy of our measurements  To make sure we tell others only what we actually know based on our equipment and it’s limitations.
Lecture 1 Introduction Dr. Hakikur Rahman Thanks to Dr. S. M. Lutful Kabir for Slides CSE 330: Numerical Methods.
CHAPTER 3 SCIENTIFIC MEASUREMENT. A measurement is a quantity that has both a number and a unit Quantity represents a size, magnitude, or amount Your.
3.1 Using and Expressing Measurements > 1 Copyright © Pearson Education, Inc., or its affiliates. All Rights Reserved. Chapter 3 Scientific Measurement.
1 Approximations and Round-Off Errors Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers Chapter.
Units 1: Introduction to Chemistry
Chapter 2 Errors in Numerical Methods and Their Impacts.
Rules for Significant Figures
Unit 1 Chapter 2 Pages
ME 142 Engineering Computation I
Chapter 2 ERROR ANALYSIS
Roundoff and Truncation Errors
Introduction to Significant Figures &
ERT 207 Analytical Chemistry
Approximations and Round-Off Errors Chapter 3
Accuracy vs. Precision & Significant Figures
Roundoff and Truncation Errors
Adama Science and Technology University Chemical Engineering Program Numerical Methods for Chemical Engineers (ChE 2104 ) Errors of Numeric Result Chemical.
Uncertainty in Measurement
Presentation transcript:

Approximations and Errors The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 Approximations and Errors

Approximations and Errors The major advantage of numerical analysis is that a numerical answer can be obtained even when a problem has no “analytical” solution. Although the numerical technique yielded close estimates to the exact analytical solutions, there are errors because the numerical methods involve “approximations”.

Approximations and Round-Off Errors Chapter 3 For many engineering problems, we cannot obtain analytical solutions. Numerical methods yield approximate results, results that are close to the exact analytical solution. Only rarely given data are exact, since they originate from measurements. Therefore there is probably error in the input information. Algorithm itself usually introduces errors as well, e.g., unavoidable round-offs, etc … The output information will then contain error from both of these sources. How confident we are in our approximate result? The question is “how much error is present in our calculation and is it tolerable?” by Lale Yurttas, Texas A&M University Chapter 3

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. Bias refers to systematic deviation of values from the true value.

Significant Figures Rules for identifying sig. figures: Significant figures of a number are those that can be used with confidence. Rules for identifying sig. figures: All non-zero digits are considered significant. For example, 91 has two significant digits (9 and 1), while 123.45 has five significant digits (1, 2, 3, 4 and 5). Zeros appearing anywhere between two non-zero digits are significant. Example: 101.12 has five significant digits. Leading zeros are not significant. For example, 0.00052 has two significant digits Trailing zeros are generally considered as significant. For example, 12.2300 has six significant digits.

Significant Figures Scientific Notation If it is not clear how many, if any, of zeros are significant. This problem can be solved by using the scientific notation 0.0013 = 1.3*10-3 0.00130 = 1.30*10-3 2 sig. figures 3 sig. figures If a number is expressed as 2.55 *104, (3 s.f), then we are only confident about the first three digits. The exact number may be 25500, 25513, 25522.6 , .. etc. So we are not sure about the last two digits nor the fractional part- If any. However, if it is expressed as 2.550 * 104, (4 s.f), then we are confident about the first four digits but uncertain about the last one and the fractional part – if any.

Error Definition Numerical errors arise from the use of approximations Truncation errors Round-off errors Result when approximations are used to represent exact mathematical procedure. Result when numbers having limited significant figures are used to represent exact numbers.

Round-off Errors Numbers such as p, e, or cannot be expressed by a fixed number of significant figures. Computers use a base-2 representation, they cannot precisely represent certain exact base-10 numbers Fractional quantities are typically represented in computer using “floating point” form, e.g., Example: p = 3.14159265358 to be stored carrying 7 significant digits. p = 3.141592 chopping p = 3.141593 rounding

Truncation Errors Truncation errors are those that result using approximation in place of an exact mathematical procedure.

True Error True error (Et) True error (Et) or Exact value of error = true value – approximated value True percent relative error ( ) See Example 3.1 – P 54

Example 3.1

Example 3.1

Approximate Error The true error is known only when we deal with functions that can be solved analytically. In many applications, a prior true value is rarely available. For this situation, an alternative is to calculate an approximation of the error using the best available estimate of the true value as:

Approximate Error In many numerical methods a present approximation is calculated using previous approximation: Note: - The sign of or may be positive or negative - We interested in whether the absolute value is lower than a prespecified tolerance (es), not to the sign of error. Thus, the computation is repeated until (stopping criteria):

Prespecified Error We can relate (es) to the number of significant figures in the approximation, So, we can assure that the result is correct to at least n significant figures if the following criteria is met: See Example 3.2 p56

Example The exponential function can be computed using Maclaurin series as follows: Estimate e0.5 using series, add terms until the absolute value of approximate error a fall below a pre-specified error s conforming with three significant figures. {The exact value of e0.5=1.648721…} Solution

Using one term: Using two terms: Using three terms: a% t% Results --- 39.3 1.0 1 33.3 9.02 1.5 2 7.69 1.44 1.625 3 1.27 0.175 1.645833333 4 0.158 0.0172 1.648437500 5 0.0158 0.00142 1.648697917 6