Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 3.

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

Roundoff and truncation errors
2009 Spring Errors & Source of Errors SpringBIL108E Errors in Computing Several causes for malfunction in computer systems. –Hardware fails –Critical.
Chapter 1 Computing Tools Data Representation, Accuracy and Precision Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
Approximations and Errors
Round-Off and Truncation Errors
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 Approximations and Errors.
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
Simple Data Type Representation and conversion of numbers
Using and Expressing Measurements
CHEMISTRY ANALYTICAL CHEMISTRY Fall Lecture 4.
Significant Figures.
Information Representation (Level ISA3) Floating point numbers.
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.
Chapter 6 Finding the Roots of Equations
Lecture 2 Number Representation and accuracy
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Accuracy, Precision, and Error
MATH 685/CSI 700 Lecture Notes Lecture 1. Intro to Scientific Computing.
Engineering Fundamentals and Problem Solving, 6e Chapter 6 Engineering Measurements.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
ENGR Introduction to Engineering1 ENGR 107 – Introduction to Engineering Estimation, Accuracy and Precision, and Significant Figures (Lecture #3)
ES 240: Scientific and Engineering Computation. Chapter 4 Chapter 4: Errors Uchechukwu Ofoegbu Temple University.
The Importance of measurement Scientific Notation.
ME 142 Engineering Computation I Computer Precision & Round-Off Error.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 111.
Round-off Errors.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University 1 Chapter 1 Mathematical.
Round-off Errors and Computer Arithmetic. The arithmetic performed by a calculator or computer is different from the arithmetic in algebra and calculus.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter.
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
3.1 Using and Expressing Measurements > 1 Copyright © Pearson Education, Inc., or its affiliates. All Rights Reserved. Chapter 3 Scientific Measurement.
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-1 The number of significant figures in a measurement depends.
Meeting 15 Introduction to Numerical Methods Error Analysis.
Scientific Measurement Measurements and their Uncertainty Dr. Yager Chapter 3.1.
Numerical Analysis CC413 Propagation of Errors.
Errors in Numerical Methods
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Truncation Errors and the Taylor Series Chapter 4.
ESO 208A/ESO 218 LECTURE 2 JULY 31, ERRORS MODELING OUTPUTS QUANTIFICATION TRUE VALUE APPROXIMATE VALUE.
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.
Module 2.2 Errors 03/08/2011. Sources of errors Data errors Modeling Implementation errors Absolute and relative errors Round off errors Overflow and.
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.
Chapter 2 Errors in Numerical Methods and Their Impacts.
Department of Computer Science Georgia State University
Unit 1 Chapter 2 Pages
ME 142 Engineering Computation I
Accuracy and Precision
Chapter 2 ERROR ANALYSIS
Errors in Numerical Methods
Roundoff and Truncation Errors
Errors in Numerical Methods
Approximations and Round-Off Errors Chapter 3
Accuracy vs. Precision & Significant Figures
SKTN 2393 Numerical Methods for Nuclear Engineers
Roundoff and Truncation Errors
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 3

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 2 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. We cannot exactly compute the errors associated with numerical methods. –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?”

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3 Accuracy. How close is a computed or measured value to the true value Precision (or reproducibility). How close is a computed or measured value to previously computed or measured values. Inaccuracy (or bias). A systematic deviation from the actual value. Imprecision (or uncertainty). Magnitude of scatter.

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 Fig. 3.2

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 5 Significant Figures Number of significant figures indicates precision. Significant digits of a number are those that can be used with confidence, e.g., the number of certain digits plus one estimated digit. 53,800How many significant figures? 5.38 x x x Zeros are sometimes used to locate the decimal point not significant figures

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 6 Error Definitions True Value = Approximation + Error E t = True value – Approximation (+/-) True error

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 7 For numerical methods, the true value will be known only when we deal with functions that can be solved analytically (simple systems). In real world applications, we usually not know the answer a priori. Then Iterative approach, example Newton’s method (+ / -)

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 8 Use absolute value. Computations are repeated until stopping criterion is satisfied. If the following criterion is met you can be sure that the result is correct to at least n significant figures. Pre-specified % tolerance based on the knowledge of your solution

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 9 Round-off Errors Numbers such as , 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., exponent Base of the number system used mantissa Integer part

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 10 Figure 3.5

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 11 Figure 3.6

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 12 Figure 3.7

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display  x10 3 in a floating point base-10 system Suppose only 4 decimal places to be stored Normalized to remove the leading zeroes. Multiply the mantissa by 10 and lower the exponent by x Additional significant figure is retained

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 14 Therefore for a base-10 system 0.1 ≤m<1 for a base-2 system0.5 ≤m<1 Floating point representation allows both fractions and very large numbers to be expressed on the computer. However, –Floating point numbers take up more room. –Take longer to process than integer numbers. –Round-off errors are introduced because mantissa holds only a finite number of significant figures.

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 15 Chopping Example:  = to be stored on a base-10 system carrying 7 significant digits.  = chopping error  t = If rounded  =  t = Some machines use chopping, because rounding adds to the computational overhead. Since number of significant figures is large enough, resulting chopping error is negligible.