Chapter 2 Errors in Numerical Methods and Their Impacts.

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,
Roundoff and truncation errors
2009 Spring Errors & Source of Errors SpringBIL108E Errors in Computing Several causes for malfunction in computer systems. –Hardware fails –Critical.
Errro Analysis Error. Why Bother? The knowledge we have of the physical world is obtained by doing experiments and making measurements. It is important.
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
Chapters 3 Uncertainty January 30, 2007 Lec_3.
Round-Off and Truncation Errors
Dr Damian Conway Room 132 Building 26
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
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.
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.
Chapter 2 Data Handling.
MMJ 1113 Computational Methods for Engineers Mohsin Mohd Sies Fakulti Kejuruteraan Mekanikal, Universiti Teknologi Malaysia.
Measurements: Every measurement has UNITS.
Chapter 1 Data Storage(3) Yonsei University 1 st Semester, 2015 Sanghyun Park.
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.
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 1 Chapter 1 Mathematical.
LECTURER PROF.Dr. DEMIR BAYKA AUTOMOTIVE ENGINEERING LABORATORY I.
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
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.
Sensitivity derivatives Can obtain sensitivity derivatives of structural response at several levels Finite difference sensitivity (section 7.1) Analytical.
Meeting 15 Introduction to Numerical Methods Error Analysis.
Slide 1 of 48 Measurements and Their Uncertainty
Numerical Analysis CC413 Propagation of Errors.
Errors in Numerical Methods
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.
Module 2.2 Errors 03/08/2011. Sources of errors Data errors Modeling Implementation errors Absolute and relative errors Round off errors Overflow and.
1 Approximations and Round-Off Errors Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers Chapter.
Fundamentals of Computer Science
ME 142 Engineering Computation I
Chapter 2 ERROR ANALYSIS
GHS Enriched Chemistry Chapter 2, Section 3
Errors in Numerical Methods
Chapter 3 Scientific Measurement 3.1 Using and Expressing Measurements
Roundoff and Truncation Errors
Floating Point Representation
Errors in Numerical Methods
Introduction to Significant Figures &
Approximations and Round-Off Errors Chapter 3
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
Accuracy vs. Precision & Significant Figures
Accuracy and Precision
Measurements and Their Uncertainty 3.1
SKTN 2393 Numerical Methods for Nuclear Engineers
Chapter 1 / Error in Numerical Method
Roundoff and Truncation Errors
SIGNIFICANT FIGURES.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

Chapter 2 Errors in Numerical Methods and Their Impacts

Objectives Know the difference between accuracy&precision Understand round-off error Understand truncation error and know how to apply Taylor’s series to estimate the error Understand the trade-off between truncation and round-off errors Understand the impact of errors in numerical methods

Content Introduction Errors Round-off errors Truncation errors Total errors Other errors Conclusion

Introduction Why we need to know ? Computers are great tools, however, without fundamental understanding of engineering problems, they will be useless.

Errors We ask for numerical methods since we cannot get exact solution !! Numerical methods only provide approximate results, not exact ones. So how we confident our results obtained from numerical methods ???? See in next slide how can we cope this with?

Errors (cont’d) 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 or variance). Magnitude of scatter.

Errors (cont’d)

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

Errors (cont’d) Error Definitions True Value = Approximation + Error E t = True value – Approximation (+/-) True error MATLAB Example

Errors (cont’d) What u can see is we can’t estimate the true error for all cases !! (why ?) So we use the following error definition instead. Approximation error …

Errors (cont’d) Apply approximation error to numerical approach (iterative) (+ / -) Define criteria :- Meaning that the result is correct at least n significant figures Compute until

Errors (cont’d) DIY: MATLAB (Parachutist problem) From your previous assignment, compare the approximation errors at t = 1,2,..,12 seconds for two cases, Δt = 0.5 and 0.1 respectively. Crticize why the approximation errors from these two cases are different !!

Round-off … Why round-off errors occur ? 1) There are numbers that can’t be expressed by a fixed number of significant figures 2) Base-2 number can’t precisely represent base-10 number. 3) Fraction number in computer is represent using a floating point form, e.g. exponent Base of the number system used mantissa Integer part where

Round-off … (cont’d) How floating numbers ‘re stored in a computer ?? exponent Base of the number system used mantissa Integer part

Round-off … (cont’d) How floating numbers ‘re stored in a computer (base-2 number) ??

Round-off … (cont’d) Examples:  x10 3 Suppose only 4 decimal places to be stored Rounding/Chopping x x10 3 Now u can see how the round-off error occurs due to the limited room for mantissa !!!!