NUMERICAL ERROR ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.

Slides:



Advertisements
Similar presentations
Truncation Errors and Taylor Series
Advertisements

Part 1 Chapter 4 Roundoff and Truncation Errors PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
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
Computational Modeling for Engineering MECN 6040
ROOTS OF EQUATIONS Student Notes ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
Copyright © Cengage Learning. All rights reserved.
Approximations and Errors
NUMERICAL ERROR ENGR 351 Numerical Methods for Engineers
Round-Off and Truncation Errors
CURVE FITTING ENGR 351 Numerical Methods for Engineers
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 6 Roots of Equations Bracketing Methods.
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.
Initial-Value Problems
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 181 Interpolation Chapter 18 Estimation of intermediate.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 5 Approximations, Errors and The Taylor Series.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 181 Interpolation.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Interpolation Chapter 18.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
PROBABILITY AND STATISTICS ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.
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
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:
EE 3561_Unit_1(c)Al-Dhaifallah EE 3561 : - Computational Methods in Electrical Engineering Unit 1: Introduction to Computational Methods and Taylor.
ENGR Introduction to Engineering1 ENGR 107 – Introduction to Engineering Estimation, Accuracy and Precision, and Significant Figures (Lecture #3)
Infinite Series Copyright © Cengage Learning. All rights reserved.
ES 240: Scientific and Engineering Computation. Chapter 4 Chapter 4: Errors Uchechukwu Ofoegbu Temple University.
ME 142 Engineering Computation I Computer Precision & Round-Off Error.
Truncation Error and the Taylor Series
Villanova University Dept. of Civil & Environmental Engineering CEE 3704 Statistical and Numerical Analysis 1 CEE 3704 Statistical and Numerical Analysis.
MECN 3500 Lecture 4 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
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
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 3.
Meeting 15 Introduction to Numerical Methods Error Analysis.
Numerical Analysis CC413 Propagation of Errors.
Errors in Numerical Methods
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Truncation Errors and the Taylor Series Chapter 4.
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.
1 Approximations and Round-Off Errors Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers Chapter.
Infinite Series 9 Copyright © Cengage Learning. All rights reserved.
Numerical Methods and Optimization C o u r s e 1 By Bharat R Chaudhari.
Chapter 2 Errors in Numerical Methods and Their Impacts.
NUMERICAL ANALYSIS I. Introduction Numerical analysis is concerned with the process by which mathematical problems are solved by the operations.
Machine arithmetic and associated errors Introduction to error analysis Class II.
ME 142 Engineering Computation I
Copyright © Cengage Learning. All rights reserved.
Applied Numerical Methods
Interpolation Estimation of intermediate values between precise data points. The most common method is: Although there is one and only one nth-order.
Chapter 18.
Taylor series in numerical computations (review)
Chapter 2 ERROR ANALYSIS
Taylor series in numerical computations (review, cont.)
NUMERICAL DIFFERENTIATION AND INTEGRATION
525602:Advanced Numerical Methods for ME
Class Notes 18: Numerical Methods (1/2)
Chapter 18.
Roundoff and Truncation Errors
Approximations and Round-Off Errors Chapter 3
Mathematical Model.
Chapter 1 / Error in Numerical Method
Roundoff and Truncation Errors
Copyright © Cengage Learning. All rights reserved.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

NUMERICAL ERROR ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier

Copyright © 2003 by Lizette R. Chevalier Permission is granted to students at Southern Illinois University at Carbondale to make one copy of this material for use in the class ENGR 351, Numerical Methods for Engineers. No other permission is granted. All other rights are reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the copyright owner.

Objectives To understand error terms Become familiar with notation and techniques used in this course

Approximation and Errors Significant Figures 4 significant figures ,500 ? confidence 4.35 x significant figures x significant figures x significant figures

Accuracy and Precision Accuracy - how closely a computed or measured value agrees with the true value Precision - how closely individual computed or measured values agree with each other number of significant figures spread in repeated measurements or computations

increasing accuracy increasing precision Accuracy and Precision

Error Definitions Numerical error - use of approximations to represent exact mathematical operations and quantities true value = approximation + error error,  t =true value - approximation subscript t represents the true error shortcoming....gives no sense of magnitude normalize by true value to get true relative error

Error definitions cont. True relative percent error

Example Consider a problem where the true answer is If you report the value as 7.92, answer the following questions. 1.How many significant figures did you use? 2.What is the true error? 3.What is the relative error?

Error definitions cont. May not know the true answer apriori

Error definitions cont. May not know the true answer apriori This leads us to develop an iterative approach of numerical methods

Error definitions cont. May not know the true answer apriori This leads us to develop an iterative approach of numerical methods

Error definitions cont. Usually not concerned with sign, but with tolerance Want to assure a result is correct to n significant figures

Error definitions cont. Usually not concerned with sign, but with tolerance Want to assure a result is correct to n significant figures

Example Consider a series expansion to estimate trigonometric functions Estimate sin  / 2 to three significant figures

Error Definitions cont. Round off error - originate from the fact that computers retain only a fixed number of significant figures Truncation errors - errors that result from using an approximation in place of an exact mathematical procedure

Error Definitions cont. Round off error - originate from the fact that computers retain only a fixed number of significant figures Truncation errors - errors that result from using an approximation in place of an exact mathematical procedure To gain insight consider the mathematical formulation that is used widely in numerical methods - TAYLOR SERIES

TAYLOR SERIES Provides a means to predict a function value at one point in terms of the function value at and its derivatives at another point Zero order approximation

TAYLOR SERIES Provides a means to predict a function value at one point in terms of the function value at and its derivative at another point Zero order approximation This is good if the function is a constant.

Taylor Series Expansion First order approximation { slope multiplied by distance

Taylor Series Expansion First order approximation slope multiplied by distance Still a straight line but capable of predicting an increase or decrease - LINEAR

Taylor Series Expansion Second order approximation - captures some of the curvature

Taylor Series Expansion Second order approximation - captures some of the curvature

Taylor Series Expansion

Example Use zero through fourth order Taylor series expansion to approximate f(1) given f(0) = 1.2 (i.e. h = 1) Note: f(1) = 0.2

Solution n=0 f(1) = 1.2   = abs [( )/0.2] x 100 = 500% n=1 f '(x) = -0.4x x 2 -x f '(0) = f(1) = h = 0.95  t =375%

n=2 f "=-1.2 x x -1 f "(0) = -1 f(1) = 0.45  t = 125% n=3 f "'=-2.4x f "'(0)=-0.9 f(1) = 0.3  t =50% Solution

n=4 f ""(0) = -2.4 f(1) = 0.2 EXACT Why does the fourth term give us an exact solution? The 5th derivative is zero In general, nth order polynomial, we get an exact solution with an nth order Taylor series Solution

Exam Question How many significant figures are in the following numbers? A B C x D. 23,000,000 E. 2.3 x 10 7

Taylor Series Problem Use zero- through fourth-order Taylor series expansions to predict f(4) for f(x) = ln x using a base point at x = 2. Compute the percent relative error  t for each approximation.

1. Determine the step size h = = 2 2. Determine the analytical solution f(4) = ln(4) = Determine the derivatives for f(2)