ME 142 Engineering Computation I Computer Precision & Round-Off Error.

Slides:



Advertisements
Similar presentations
3- 1 Chapter 3 Introduction to Numerical Methods Second-order polynomial equation: analytical solution (closed-form solution): For many types of problems,
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 2 – Scientific Measurement
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.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 5 Approximations, Errors and The Taylor Series.
1 Error Analysis Part 1 The Basics. 2 Key Concepts Analytical vs. numerical Methods Representation of floating-point numbers Concept of significant digits.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 31.
Numerical Computations in Linear Algebra. Mathematically posed problems that are to be solved, or whose solution is to be confirmed on a digital computer.
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
To many people, accuracy and precision mean the same thing: to someone involved in measurement, the two terms should have very different meanings. Accuracy.
Chapter 1.5 Uncertainty in Measurement. Exact Numbers Values that are known exactly Numbers obtained from counting The number 1 in conversions Exactly.
Section 2.3 Measurement Reliability. Accuracy Term used with uncertainties Measure of how closely individual measurements agree with the correct or true.
Scientific Notation Converting into Sci. Notation: –Move decimal until there’s 1 digit to its left. Places moved = exponent. –Large # (>1)  positive.
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
I II III I. Using Measurements CH. 2 - MEASUREMENT.
Measurement book reference p Accuracy  The accuracy of the measurement refers to how close the measured value is to the true or accepted value.
Significant Figures. Exact Numbers Some numbers are exact because they are known with complete certainty. Most exact numbers are integers: exactly 12.
ENGR Introduction to Engineering1 ENGR 107 – Introduction to Engineering Estimation, Accuracy and Precision, and Significant Figures (Lecture #3)
Significant Digits p. 940 – 941 or significant figures or sigfigs or sf.
Significant Figures and Scientific Notation Significant Figures:Digits that are the result of careful measurement. 1.All non-zero digits are considered.
Villanova University Dept. of Civil & Environmental Engineering CEE 3704 Statistical and Numerical Analysis 1 CEE 3704 Statistical and Numerical Analysis.
Accuracy, Precision, and Significant Figures in Measurement
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
MEASUREMENT. Chapter One: Measurement  1.1 Measurements  1.2 Time and Distance  1.3 Converting Measurements  1.4 Working with Measurements.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Significant Digits. l Significant figures are extremely important when reporting a numerical value. l The number of significant figures used indicates.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 3.
To many people, accuracy and precision mean the same thing: to someone involved in measurement, the two terms should have very different meanings. Accuracy.
Meeting 15 Introduction to Numerical Methods Error Analysis.
Lecture 4 - Numerical Errors CVEN 302 June 10, 2002.
Scientific Measurement Measurements and their Uncertainty Dr. Yager Chapter 3.1.
I II III I. Using Measurements (p. 8-15) CH MEASUREMENT.
“Scientific Measurement”. Measurements and Their Uncertainty OBJECTIVES: Convert measurements to scientific notation.
Errors in Numerical Methods
ESO 208A/ESO 218 LECTURE 2 JULY 31, ERRORS MODELING OUTPUTS QUANTIFICATION TRUE VALUE APPROXIMATE VALUE.
Scientific Notation and Significant Figures A. Accuracy vs. Precision Accuracy - how close a measurement is to the accepted value Precision - how close.
Significant Figures.
I. Using Measurements (p )
Chemistry I. Precision and Accuracy Accuracy refers to the agreement of a particular value with the true value. Precision refers to the degree of agreement.
1 Approximations and Round-Off Errors Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers Chapter.
Scientific Conventions and Mathematical Procedures
ME 142 Engineering Computation I
Uncertainty in Measurement
Uncertainty in Measurement
I. Using Measurements (p )
Errors in Numerical Methods
Converting and Sig Figs
Errors in Numerical Methods
Significant Digits and Scientific Notation
Lesson 2 – Sci. Notation, Accuracy, and Significant Figures
Measurement book reference p
I. Using Measurements (p )
Section 2-3 Using Measurements
CH. 2 - MEASUREMENT I. Using Measurements.
Mathematical Model.
Accuracy vs. Precision & Significant Figures
Measurements.
Numerical Analysis Lecture 2.
Lesson 2 – Sci. Notation, Accuracy, and Significant Figures
CH. 2 - MEASUREMENT I. Using Measurements.
I. Using Measurements (p )
Convert to scientific notation
Accuracy vs. Precision Accuracy is a description of how close a measurement is to the correct or accepted value of the quantity measured. Ex: if the correct.
Uncertainty in Measurement
Aim: Why are Significant Figures Important?
Presentation transcript:

ME 142 Engineering Computation I Computer Precision & Round-Off Error

Key Concepts Numerical Error Significant Figures Accuracy vs. Precision Converting between Decimal & Binary

Numerical Error

What are the 2 major forms of Numerical Error?

Numerical Error  Round-off Error Is due to the fact that computers can represent only quantities with a finite number of digits  Truncation Error Is introduced because numerical methods employ approximations to represent exact mathematical operations and quantities

Significant Figures

What do we mean by Significant Figures?

Significant Figures  What do we mean by Significant Figures? Significant digits of a number are those that can be used with confidence  What is typical in Engineering? Three or four significant digits is common in the final answer  What is an example of rounding off too soon? Keep all available significant figures on intermediate calculations  What is an example of keeping too many decimal places?  How do we control significant figures in Excel?

Accuracy vs. Precision

What is the difference between Accuracy & Precision?

Accuracy vs. Precision  What is the difference between 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.  Are both Accuracy and Precision necessary?

Increasing Accuracy Increasing Precision Inaccurate & ImpreciseAccurate & Imprecise Inaccurate & Precise Accurate & Precise

Computer Representation of Numbers

How do computers represent numbers?

Computer Representation of Numbers  How do computers represent numbers? Binary digits or bits Groupings of bits into bytes and words

Computer Representation of Numbers  Do most engineering calculations use floating-point or integer numbers?  Why?  What is scientific notation?  What level of precision is used in Excel?  Is that acceptable for most engineering work?  What are some common ways that significant digits may be lost in computer calculations?

Base x 10 0 = 5 0 x 10 1 = 00 4 x 10 2 = x 10 3 = x 10 4 =

Base x 2 0 = 1 0 x 2 1 = 00 1 x 2 2 = x 2 3 = x 2 4 = = 1 = 0 = 4 = 8 = 16 29

Example Problem  Make a table comparing decimal, binary, and hexidecimal numbers:  Perform the following conversions: Binary to decimal Binary to hexidecimal Decimal to binary  Use Excel to perform the previous conversions:

Review Questions

Review Question Significant Figures Rounding to 3 or 4 significant digits on intermediate calculations is typically an acceptable practice. A.True B.False

Review Question Accuracy vs. Precision Which of the following graphics is an example of precision without accuracy: AB CD

Homework Help ‘n Hints