1 Part 3 Truncation Errors (Supplement). 2 Error Propagation How errors in numbers can propagate through mathematical functions? That is, what's the effect.

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

Section 11.6 – Taylor’s Formula with Remainder
Roundoff and truncation errors
2009 Spring Errors & Source of Errors SpringBIL108E Errors in Computing Several causes for malfunction in computer systems. –Hardware fails –Critical.
Calculus I – Math 104 The end is near!. Series approximations for functions, integrals etc.. We've been associating series with functions and using them.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Computational Methods in Physics PHYS 3437
CSE Differentiation Roger Crawfis. May 19, 2015OSU/CIS 5412 Numerical Differentiation The mathematical definition: Can also be thought of as the.
Asymptotic error expansion Example 1: Numerical differentiation –Truncation error via Taylor expansion.
Numerical Computation
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
Part 3 Truncation Errors Second Term 05/06.
Atms 4320 Lab 2 Anthony R. Lupo. Lab 2 -Methodologies for evaluating the total derviatives in the fundamental equations of hydrodynamics  Recall that.
Revision.
Part 3 Truncation Errors.
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (II) 1 1 Besides the main textbook, also see Ref.: “Applied.
Second Term 05/061 Part 3 Truncation Errors (Supplement)
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. 1 Interpolation Chapter 18.
Calculus I – Math 104 The end is near!. 1. Limits: Series give a good idea of the behavior of functions in the neighborhood of 0: We know for other reasons.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 23 Numerical Differentiation.
Ch 8.3: The Runge-Kutta Method
Interpolation. Interpolation is important concept in numerical analysis. Quite often functions may not be available explicitly but only the values of.
Chapter 1 Scientific Computing Approximation in Scientific Computing (1.2) January 12, 2010.
MATH 685/CSI 700 Lecture Notes Lecture 1. Intro to Scientific Computing.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Taylor’s Polynomials & LaGrange Error Review
Consider the following: Now, use the reciprocal function and tangent line to get an approximation. Lecture 31 – Approximating Functions
Truncation Error and the Taylor Series
Round-off Errors.
9.3 Taylor’s Theorem: Error Analysis for Series
Now that you’ve found a polynomial to approximate your function, how good is your polynomial? Find the 6 th degree Maclaurin polynomial for For what values.
Integration Copyright © Cengage Learning. All rights reserved.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter.
Taylor’s Theorem: Error Analysis for Series. Taylor series are used to estimate the value of functions (at least theoretically - now days we can usually.
Sensitivity derivatives Can obtain sensitivity derivatives of structural response at several levels Finite difference sensitivity (section 7.1) Analytical.
Meeting 15 Introduction to Numerical Methods Error Analysis.
1 Approximation. 2 Taylor Series 3 Truncation Error  In general, the nth order Taylor series expansion will be exact for an nth order polynomial  In.
Numerical Analysis CC413 Propagation of Errors.
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.
Introduction to Integration Methods. Types of Methods causal method employs values at prior computation instants. non-causal method if in addition to.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Truncation Errors and the Taylor Series Chapter 4.
Spring 2006CISC101 - Prof. McLeod1 Announcements Assn 4 is posted. Note that due date is the 12 th (Monday) at 7pm. (Last assignment!) Final Exam on June.
Ordinary Differential Equations
9.3 Taylor’s Theorem: Error Analysis yes no.
Taylor series are used to estimate the value of functions (at least theoretically - now days we can usually use the calculator or computer to calculate.
NUMERICAL DIFFERENTIATION or DIFFERENCE APPROXIMATION Used to evaluate derivatives of a function using the functional values at grid points. They are.
13.3 Arithmetic and Geometric Series and Their Sums Finite Series.
Numerical Analysis CC413 Propagation of Errors. 2 In numerical methods, the calculations are not made with exact numbers. How do these inaccuracies propagate.
Module 2.2 Errors 03/08/2011. Sources of errors Data errors Modeling Implementation errors Absolute and relative errors Round off errors Overflow and.
NUMERICAL ANALYSIS I. Introduction Numerical analysis is concerned with the process by which mathematical problems are solved by the operations.
ME 142 Engineering Computation I
Chapter 18.
Taylor series in numerical computations (review)
Module 1 Day 1 Evaluating Functions.
Taylor series in numerical computations (review, cont.)
Recall our hypothetical computer Marc-32
Interpolation.
Chapter 18.
Roundoff and Truncation Errors
Common and Natural Logarithms
Class Notes 19: Numerical Methods (2/2)
Major: All Engineering Majors Authors: Autar Kaw, Matthew Emmons
Section 11.6 – Taylor’s Formula with Remainder
9.3 Taylor’s Theorem: Error Analysis for Series
Objectives Approximate a definite integral using the Trapezoidal Rule.
Chapter 1 / Error in Numerical Method
Roundoff and Truncation Errors
12.12 Lagrange Remainder Mathboat.com.
Presentation transcript:

1 Part 3 Truncation Errors (Supplement)

2 Error Propagation How errors in numbers can propagate through mathematical functions? That is, what's the effect of the discrepancy between x and x A on the value of the function.

3 Error Propagation

4 Error Propagation – Example Given x A = 2.5 with error of 0.01, estimate the resulting error in the function f ( x ) = x 3. Estimatation (May be incorrect but provides good approx.) True Bound (Not always possible to calculate this way)

5 Example (continue) Estimating maximum bound

6 Condition numbers Measure the sensitivity to small changes in input values of a function (i.e. relative change in f ( x ) vs. relative change in x ) Defined as the ratio of these relative errors Small condition number => function is stable around x. Large condition number => function is unstable around x

7 Textbook Ex 4.12(c) Condition number is small, so we can calculate f ( x ) accurately provided we formulate the formula properly. How should we evaluate f ( x ) to avoid subtracting two close numbers?

8 Total numerical error = truncation error + round-off error Small step size implies small truncation errors but small step size is more likely to introduce round-off errors due to adding big numbers to small numbers and subtractive cancellations. For optimal accuracy, analyze the underlying method (reformulate the method if necessary) and find a step size that minimize the total numerical error.

9 Exercise a)What is the Taylor series of f(x) at 0 ? b)What is the Taylor series of f(x) at 2 ? If taking enough terms, which of the above two Taylor series expansion would calculate f(1.5) more accurately? What can you say about the above two Taylor series expansions of f(x) ?

10 Exercise What is |R 7 | of the Taylor series of f(x) at 0 ?

11 Exercise How do you propose we calculate using only basic arithmetic operators?

12 Exercise How do you propose we calculate using only basic arithmetic operators?

13 Exercise Using the above series, how many terms do we need to calculate ln(2) with truncation error less than ? Is this approach practical for calculating ln(2)? Why?