Math.375 Fall 2005 Errors in Numerical Computation

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

Introduction to Matlab
Roundoff and truncation errors
Suggested problems from text (6 th edition) Chapter 3.1 p85 Problems 1, 4, 9, 10 Computer problems 1, 2, 4, 7 Chapter 3.2 p101 Problems 4, 15, 17, 19 Computer.
2009 Spring Errors & Source of Errors SpringBIL108E Errors in Computing Several causes for malfunction in computer systems. –Hardware fails –Critical.
Lesson 14 Creating Formulas and Charting Data
Math.375 Fall Errors in Numerical Computation Vageli Coutsias.
CENG536 Computer Engineering Department Çankaya University.
EXAMPLE 1 Graph a function of the form y = ax 2 Graph y = 2x 2. Compare the graph with the graph of y = x 2. SOLUTION STEP 1 Make a table of values for.
Asymptotic error expansion Example 1: Numerical differentiation –Truncation error via Taylor expansion.
Introduction to Scientific Computing ICE / ICE 508 Prof. Hyuckjae Lee KAIST- ICC
Approximations and Errors
Round-Off and Truncation Errors
1 Part 3 Truncation Errors (Supplement). 2 Error Propagation How errors in numbers can propagate through mathematical functions? That is, what's the effect.
Computer-Aided Analysis on Energy and Thermofluid Sciences Y.C. Shih Fall 2011 Chapter 6: Basics of Finite Difference Chapter 6 Basics of Finite Difference.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 Approximations and Errors.
Series: Guide to Investigating Convergence. Understanding the Convergence of a Series.
Series: Guide to Investigating Convergence. Understanding the Convergence of a Series.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Linear Algebraic Equations ~ Gauss Elimination Chapter.
Assignment Solving System of Linear Equations Using MPI Phạm Trần Vũ.
Computer Literacy BASICS
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
1 Lesson 19 Creating Formulas and Charting Data Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
MATH 685/CSI 700 Lecture Notes Lecture 1. Intro to Scientific Computing.
Chapter 2: Measurement & Problem Solving pg LO: I can use unit conversions successfully in mathematic calculations.
ES 240: Scientific and Engineering Computation. Chapter 4 Chapter 4: Errors Uchechukwu Ofoegbu Temple University.
Truncation Error and the Taylor Series
Chapter 3 Math Toolkit. 3.1~3.2 Significant Figures & in Arithmetic.
ROUNDING OFF PROCEDURES Getting rid of extra digits the right way…
9.7 and 9.10 Taylor Polynomials and Taylor Series.
Introduction to Scientific Computing - - A Matrix Vector Approach Using Matlab Written by Charles F.Van Loan 陈 文 斌 // ORG: 复旦大学 (Revised.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9 Linear Systems of Equations: Gauss Elimination.
Numerical Methods.
Decimals. Addition & Subtraction Example Find: Solution: = = =18.32 – =
Meeting 15 Introduction to Numerical Methods Error Analysis.
MA/CS375 Fall MA/CS 375 Fall 2002 Lecture 7.
Lecture 4 - Numerical Errors CVEN 302 June 10, 2002.
ISD 881 Computation Algorithms Math Trailblazers.
Chapter 3- Model Fitting. Three Tasks When Analyzing Data: 1.Fit a model type to the data. 2.Choose the most appropriate model from the ones that have.
ME 142 Engineering Computation I Review Exam 1.  2 Part Exam In-Class Portion Testing Center Portion Equally weighted.
Negative binary numbers 1 Computer Architectures M.
Errors in Numerical Methods
13.1 Sequences. Definition of a Sequence 2, 5, 8, 11, 14, …, 3n-1, … A sequence is a list. A sequence is a function whose domain is the set of natural.
ESO 208A/ESO 218 LECTURE 2 JULY 31, ERRORS MODELING OUTPUTS QUANTIFICATION TRUE VALUE APPROXIMATE VALUE.
SCIENTIFIC DISCOVERY EXPERIMENT THEORY SCIENTIFIC COMPUTING 1.
MA/CS375 Fall MA/CS 375 Fall 2002 Lecture 6.
Numerical Analysis CC413 Propagation of Errors. 2 In numerical methods, the calculations are not made with exact numbers. How do these inaccuracies propagate.
NUMERICAL ANALYSIS I. Introduction Numerical analysis is concerned with the process by which mathematical problems are solved by the operations.
PIVOTING The pivot or pivot element is the element of a matrix, or an array, which is selected first by an algorithm (e.g. Gaussian elimination, simplex.
11.3 – Geometric Sequences and Series
2nd Nine Weeks Vocabulary Review Coach Whitlock
Taylor series in numerical computations (review)
Chapter 2 ERROR ANALYSIS
Math.375 Fall 2005 I - Numbers and Formats
آشنايی با اصول و پايه های يک آزمايش
Common and Natural Logarithms
Copyright © Cengage Learning. All rights reserved.
Sequences and Series Arithmetic series..
EEL 3705 / 3705L Digital Logic Design
Lesson 20 Creating Formulas and Charting Data
Aim: How do number lines help us to understand absolute value?
Math.375 Fall 2005 I - Numbers and Formats
A2-Level Maths: Core 4 for Edexcel
2.4 Use Absolute Value Functions and Transformations (Part 1) p. 40
2.4 Use Absolute Value Functions and Transformations (Part 1) p. 40
Packet #29 Arithmetic and Geometric Sequences
Figure:
Pivoting, Perturbation Analysis, Scaling and Equilibration
Math 375 Fall Functions Vageli Coutsias.
Presentation transcript:

Math.375 Fall 2005 Errors in Numerical Computation Vageli Coutsias

Vocabulary Consistency – correctness - … Convergence (rate) Efficiency (operation counts) Numerical Stability (error amplification) Accuracy (relative vs. absolute error) Roundoff vs. Truncation

Due to limitations in computer arithmetic, need to practice “defensive coding”. Mathematicsnumerics + implementation The sequence of computations carried out for the solution of a mathematical problem can be so complex as to require a mathematical analysis of its own correctness. How can we determine efficiency? Text

Recurrence relations

Instability is inescapable; But one can learn to ride it!

The first monster: T(x) = e^x * log(1+e^-1) end relerr = err/exp(x); semilogy(1:nTerms,relerr)% semilogy(1:nTerms,err) ylabel('Relative Error in Partial Sum.') xlabel('Order of Partial Sum.') title(sprintf('x = %5.2f',x)) figure semilogy(1:nTerms,err)%end err(k) = abs(f(k) - s); s = s+term; for k=1:50, term = x*term/k; s = s+term;err(k) = abs(f(k) - s);end relerr = err/exp(x); semilogy(1:nTerms,relerr)% semilogy(1:nTerms,err) ylabel('Relative Error in Partial Sum.') xlabel('Order of Partial Sum.') title(sprintf('x = %5.2f',x)) figure semilogy(1:nTerms,err)%end term = 1; s = 1; f = exp(x)*ones(nTerms,1); for k=1:50, term = x*term/k; The first monster: T(x) = e^x * log(1+e^-1) For x>30 a dramatic deviation from the theoretical value 1 is found. For x>36.7 the plotted value drops (incorrectly) to zero Here: x = linspace(0,40,1000); y = exp(x).*log(1+exp(-x));

Pet Monster I

III.MISCELLANEOUS OPERATIONS: (1) Setting ranges for axes, axis([-40 0 0 0.1]) (2) Superimposing plots: plot(x,y,x,exp(x),'o') (3) using "hold on/hold off" (4) Subplots: subplot(m,n,k)

Summary Roundoff and other errors Multiple plots

References C. Essex, M.Davidson, C. Schulzky, “Numerical Monsters”, preprint. Higham & Higham, Matlab Guide, SIAM B5 Trailer; http://www.scifi.com/b5rangers/