TWO EXAMPLES AS MOTIVATION FOR THE STUDY OF COMPUTER ERRORS

Slides:



Advertisements
Similar presentations
2009 Spring Errors & Source of Errors SpringBIL108E Errors in Computing Several causes for malfunction in computer systems. –Hardware fails –Critical.
Advertisements

CML CML CS 230: Computer Organization and Assembly Language Aviral Shrivastava Department of Computer Science and Engineering School of Computing and Informatics.
Overview CNS 3320 – Numerical Software Engineering.
Chapter 2: Data Representation
Principles of Computer Architecture Miles Murdocca and Vincent Heuring Chapter 2: Data Representation.
Patriot Missile Failure
What is Rounding Error? AiS Challenge STI 2003 Richard Allen.
Chapter 8 Representing Information Digitally.
Chapter 1 Computing Tools Data Representation, Accuracy and Precision Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
1 COMS 161 Introduction to Computing Title: Numeric Processing Date: November 10, 2004 Lecture Number: 31.
Approximations and Errors
1 CSE1301 Computer Programming Lecture 30: Real Number Representation.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 1 Slide 1 Project management.
CSE1301 Computer Programming Lecture 33: Real Number Representation
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 Approximations and Errors.
Computer Science 210 Computer Organization Floating Point Representation.
Binary Representation and Computer Arithmetic
February 26, 2003MIPS floating-point arithmetic1 Question  Which of the following are represented by the hexadecimal number 0x ? —the integer.
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
Simple Data Type Representation and conversion of numbers
Rounding Off Whole Numbers © Math As A Second Language All Rights Reserved next #5 Taking the Fear out of Math.
2.2 Errors. Why Study Errors First? Nearly all our modeling is done on digital computers (aside: what would a non-digital analog computer look like?)
Numerical Computations in Linear Algebra. Mathematically posed problems that are to be solved, or whose solution is to be confirmed on a digital computer.
1 Digital Technology and Computer Fundamentals Chapter 1 Data Representation and Numbering Systems.
7 Chapter Decimals: Rational Numbers and Percent
1 COMS 161 Introduction to Computing Title: Numeric Processing Date: October 22, 2004 Lecture Number: 24.
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:
2-1 Chapter 2 - Data Representation Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer.
5.2 Errrors. Why Study Errors First? Nearly all our modeling is done on digital computers (aside: what would a non-digital analog computer look like?)
1 Hannah and Ted are playing a game. They toss a fair coin and if it comes up heads, Hannah wins, and if it comes up tails, Ted wins. The first one to.
10/16/20151 Sources of Error Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder Transforming Numerical Methods.
Introduction to error analysis Class II "The purpose of computing is insight, not numbers", R. H. Hamming.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 2 Chapter 2 - Introduction to C Programming.
MECN 3500 Inter - Bayamon Lecture 3 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Topic 1 – Number Systems. What is a Number System? A number system consists of an ordered set of symbols (digits) with relations defined for addition,
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 3.
Numerical Analysis Intro to Scientific Computing.
What is STEM Education? Science, Technology, Engineering, and Math.
Numerical Analysis. Numerical Analysis or Scientific Computing Concerned with design and analysis of algorithms for solving mathematical problems that.
Binary Arithmetic.
Adding and Subtracting Decimals © Math As A Second Language All Rights Reserved next #8 Taking the Fear out of Math 8.25 – 3.5.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 2 - Introduction to C Programming Outline.
Numerical Analysis Intro to Scientific Computing.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
Introduction to error analysis Class II "The purpose of computing is insight, not numbers", R. H. Hamming.
Lecture 1 Introduction Dr. Hakikur Rahman Thanks to Dr. S. M. Lutful Kabir for Slides CSE 330: Numerical Methods.
In this chapter you will:  Use mathematical tools to measure and predict.  Apply accuracy and precision when measuring.  Display and evaluate data graphically.
SOFTWARE FAILURES.
Machine arithmetic and associated errors Introduction to error analysis Class II.
244-1: INTRODUCTION TO PROGRAMMING
Computer Science 210 Computer Organization
Patriot Missile Failure
Number Systems and Binary Arithmetic
Accuracy and Precision
7 Chapter Rational Numbers as Decimals and Percent
Floating Point.
Chapter 2 ERROR ANALYSIS
Unit 1 – Making Measurements
Chapter One: Introduction
CS201 - Lecture 5 Floating Point
Numeric Accuracy and Precision
Sources of Error Major: All Engineering Majors
Sources of Error Major: All Engineering Majors
Limits and Continuity A BRIEF PREVIEW OF CALCULUS: TANGENT LINES AND THE LENGTH OF A CURVE 1.2 THE CONCEPT OF LIMIT 1.3 COMPUTATION OF LIMITS 1.4.
7 Chapter Decimals: Rational Numbers and Percent
Sources of Error Major: All Engineering Majors
Sources of Error Major: All Engineering Majors
Presentation transcript:

TWO EXAMPLES AS MOTIVATION FOR THE STUDY OF COMPUTER ERRORS Prof Jorge Lemagne Faculty of Science, Bindura University jlemagne@buse.ac.zw, jorgelemagneperez@gmail.com

Summary Introduction Example 1: The Patriot Missile Failure Example 2: An apparently contradictory result Exhortations

Introduction. To encourage students to study Mathematics For many people, Mathematics is a boring discipline. They ignore its fundamental role in Science, Technology and in general, in life. Showing the students these relationships would motivate and encourage them to study this discipline.

9 strategies for increasing student motivation in Math (Posamentier [2013]) (1) S1. Call attention to a void in student’s knowledge. S2. Show a sequential achievement. S3. Discovering a pattern S4. Present a challenge. S5. Entice the class with a “Gee-Whiz” mathematical result.

9 strategies for increasing student motivation in Math (Posamentier [2013]) (2) S6. Indicate the usefulness of a topic. S7. Use recreational mathematics. S8. Tell a pertinent story. S9. Get students actively involved in justifying mathematical curiosities.

Preceding strategies might be applied In this talk: Two examples as motivation for the study of computer errors. In both, all S1 to S9 might be applied. Especially “S6. Indicate the usefulness of a topic” can be carried out by introducing “a practical application of genuine interest to the class at the beginning of a lesson.”

Inevitable presence of error Scientific computing: Discipline concerned with the development and study of numerical algorithms for solving mathematical problems that arise in science and engineering. The most fundamental feature of numerical computing is the inevitable presence of error.

Consequences of careless numerical computing Scientists and engineers often wish to believe that the numerical results of a computer calculation, especially those obtained as output of a software package, contain no error: at least not a significant or intolerable one. But careless numerical computing does occasionally lead to disasters. Among them one of the most spectacular was the Patriot missile failure.

Summary (1)  Introduction  Example 1: The Patriot Missile Failure Example 2: An apparently contradictory result Exhortations

Example 1: The Patriot Missile Failure February 25, 1991 (Gulf War), Dharan, Saudi Arabia: An American Patriot Missile was supposed to track and intercept an incoming Iraqi Scud missile.

To produce the time in seconds  

But, what was actually stored?  

Error  

Total time error  

The distance travelled A Scud travels at about 1676 meters per second. So travels more than half a kilometre in this time (0.34 sec). This was far enough that the incoming Scud was outside the "range gate" that the Patriot tracked.

Consequence As a consequence, the Patriot failed to track and intercept the incoming Iraqi Scud missile. The Scud struck an American Army barracks, killing 28 soldiers and injuring around 100 other people.

Cause of this disaster  

Summary (2)  Introduction  Example 1: The Patriot Missile Failure  Example 2: An apparently contradictory result Exhortations

Example 2: An apparently contradictory result The second example of this talk is far less tragic than the preceding one. We initially propose you to make a simple experiment. It will be used an environment that is suitable for technical computing: MATLAB (MathWorks [2013]). We open the application:

MATLAB Presentation

Simple experiment >> 0.3*4==1.2 ans = 1 >> 0.4*3==1.2 >> Why? (To be explained)

Traditionally  

Scientific calculations However, scientific calculations are not exact or use decimal notation. Why? Scientific calculations are usually carried out in floating point arithmetic. Actually, this is just a generalization of what is called scientific notation.

Scientific notation  

Significant digits  

Floating point number  

   

IEEE (Institute of Electrical and Electronics Engineers)  

For the sake of clarity  

The other data  

Rounding again Now, we perform the multiplications with these rounded numbers. Each multiplication gives a number with 10 significant digits. Hence, it must be rounded again.

Results  

Why unexpected results?   That is why we obtain unexpected results.

In general, laws of arithmetic do not hold on scientific computing  

Further information To deepen on floating point arithmetic and analysis of error: Conte and de Boor [1980] and Heath [2002] (for instance)

Summing up In general, on scientific computing the representation of numbers is not exact. Nor the result of arithmetic operations is exact. Hence, most laws of arithmetic do not hold on scientific computing.

Summary (3)  Introduction  Example 1: The Patriot Missile Failure  Example 2: An apparently contradictory result  Exhortations

So, what have we seen? Two examples as motivation for the study of computer errors. These may be startling to readers who are not familiarized with computer arithmetic.

You are exhorted to Verify the previous results, and to experiment computationally. Learn conversion from decimal to binary notation. Study floating point arithmetic and analysis of error. These are ways for developing skills.

It is also recommended these examples to be used As motivation in Scientific Computing and Numerical Analysis courses, and a vocational guidance to O and A level students. To show the students (once more) the strong relationships between Mathematics and Computer Science. To illustrate some of the difficulties and challenges to be faced when new technologies are used.

Bibliography (1) [1] Arnold, D. N. (2000): The Patriot Missile Failure, http://www.ima.umn.edu/~arnold/disasters/ disasters.html [2] Conte, S. D. and de Boor, C. (1980): Elementary Numerical Analysis, an Algorithmic Approach, Third Edition, McGraw-Hill Book Company, ISBN 0-07-012447-7 [3] Heath, M. T. (2002): Scientific Computing: An introductory survey, Second edition, The McGraw-Hill Companies, Inc., ISBN 0-07-239910-4, ISBN 0-07-112229-X (ISE)

Bibliography (2) [4] Higham, N. J. (1996): Accuracy and stability of numerical algorithms, SIAM, Philadelphia, ISBN O-8987 l-355-2 (pbk.) [5] MathWorks, Inc., The (2013): MATLAB R2013a [6] Posamentier A. (2013): 9 Strategies for Motivating Students in Mathematics, EDUTOPIA, The George Lucas Educational Foundation, http://www.edutopia.org/blog/ 9-strategies-motivating-students-mathematics-alfred-posamentier