The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 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,
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 2 – Scientific Measurement
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
Approximations and Errors
Round-Off and Truncation 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.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Introduction and Analysis of Error Pertemuan 1
CHEMISTRY ANALYTICAL CHEMISTRY Fall Lecture 4.
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
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.
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:
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.
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.
Round-off Errors and Computer Arithmetic. The arithmetic performed by a calculator or computer is different from the arithmetic in algebra and calculus.
ERT 207-ANALYTICAL CHEMISTRY
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.
Chemistry Mrs. Algier Do Now: Complete the Chapter 2 vocabulary worksheet.
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.
Measurement & Calculations Overview of the Scientific Method OBSERVE FORMULATE HYPOTHESIS TEST THEORIZE PUBLISH RESULTS.
Errors in Numerical Methods
ESO 208A/ESO 218 LECTURE 2 JULY 31, ERRORS MODELING OUTPUTS QUANTIFICATION TRUE VALUE APPROXIMATE VALUE.
Measurements and their Uncertainty
Chapter 2 Sec 2.3 Scientific Measurement. Vocabulary 14. accuracy 15. precision 16. percent error 17. significant figures 18. scientific notation 19.
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.
Module 2.2 Errors 03/08/2011. Sources of errors Data errors Modeling Implementation errors Absolute and relative errors Round off errors Overflow and.
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.
1 M 277 (60 h) Mathematics for Computer Sciences Bibliography  Discrete Mathematics and its applications, Kenneth H. Rosen  Numerical Analysis, Richard.
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
Chapter 2 ERROR ANALYSIS
Errors in Numerical Methods
Roundoff and Truncation Errors
Errors in Numerical Methods
Introduction to Significant Figures &
Approximations and Round-Off Errors Chapter 3
Chapter 3 Scientific Measurement 3.1 Using and Expressing Measurements
Accuracy vs. Precision & Significant Figures
Chapter 1 / Error in Numerical Method
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
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 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”.

by Lale Yurttas, Texas A&M University Chapter 33 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?”

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 Significant figures of a number are those that can be used with confidence. Example : 48.5,  3 significant figures , ,  4 sig. figures. (Zeros do not count as Sig. figures if its function is to locate the position of the decimal point) ,  5 sig. figures If it is not clear how many, if any, of zeros are significant. This problem can be solved by using the scientific notation ×10 4, ×10 4, ×10 4

Error Definition Numerical errors arise from the use of approximations Truncation errorsRound-off errors 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 , 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:  = to be stored carrying 7 significant digits.  = chopping  = rounding

8 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

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

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

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 (  s ), not to the sign of error. Thus, the computation is repeated until (stopping criteria):

Prespecified Error We can relate (  s ) 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 series as follows: Estimate e 0.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 e 0.5 = …} Solution

Using one term: Using two terms: Using three terms: a%a% t%t% ResultsTerms