Chapter 4. Truncation Errors

Similar documents
Chapter Floating Point Representation

Numerical Dispersion

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle

Review - Quiz # 1. 1 g(y) dy = f(x) dx. y x. = u, so that y = xu and dy. dx (Sometimes you may want to use the substitution x y

d 1 = c 1 b 2 - b 1 c 2 d 2 = c 1 b 3 - b 1 c 3

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010

4. Advanced Stability Theory

Ordinary dierential equations

Math 315: Linear Algebra Solutions to Assignment 6

(1) (2) Differentiation of (1) and then substitution of (3) leads to. Therefore, we will simply consider the second-order linear system given by (4)

Chapter 7: Solving Trig Equations

SMT 2014 Calculus Test Solutions February 15, 2014 = 3 5 = 15.

Pade and Laguerre Approximations Applied. to the Active Queue Management Model. of Internet Protocol

Asymptotic Equipartition Property - Seminar 3, part 1

( ) ( ) if t = t. It must satisfy the identity. So, bulkiness of the unit impulse (hyper)function is equal to 1. The defining characteristic is

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:

NCSS Statistical Software. , contains a periodic (cyclic) component. A natural model of the periodic component would be

Section 4.4 Logarithmic Properties

2.160 System Identification, Estimation, and Learning. Lecture Notes No. 8. March 6, 2006

Kinematics Vocabulary. Kinematics and One Dimensional Motion. Position. Coordinate System in One Dimension. Kinema means movement 8.

THE SINE INTEGRAL. x dt t

Robotics I. April 11, The kinematics of a 3R spatial robot is specified by the Denavit-Hartenberg parameters in Tab. 1.

Unsteady Flow Problems

The fundamental mass balance equation is ( 1 ) where: I = inputs P = production O = outputs L = losses A = accumulation

ADDITIONAL PROBLEMS (a) Find the Fourier transform of the half-cosine pulse shown in Fig. 2.40(a). Additional Problems 91

Section 4.4 Logarithmic Properties

Haar Wavelet Operational Matrix Method for Solving Fractional Partial Differential Equations

on the interval (x + 1) 0! x < ", where x represents feet from the first fence post. How many square feet of fence had to be painted?

LAB 6: SIMPLE HARMONIC MOTION

Final Spring 2007

APPLICATION OF CHEBYSHEV APPROXIMATION IN THE PROCESS OF VARIATIONAL ITERATION METHOD FOR SOLVING DIFFERENTIAL- ALGEBRAIC EQUATIONS

Module 2 F c i k c s la l w a s o s f dif di fusi s o i n

Ensamble methods: Bagging and Boosting

Time series Decomposition method

MATH 31B: MIDTERM 2 REVIEW. x 2 e x2 2x dx = 1. ue u du 2. x 2 e x2 e x2] + C 2. dx = x ln(x) 2 2. ln x dx = x ln x x + C. 2, or dx = 2u du.

1 1 + x 2 dx. tan 1 (2) = ] ] x 3. Solution: Recall that the given integral is improper because. x 3. 1 x 3. dx = lim dx.

Zürich. ETH Master Course: L Autonomous Mobile Robots Localization II

Math 36. Rumbos Spring Solutions to Assignment #6. 1. Suppose the growth of a population is governed by the differential equation.

KEY. Math 334 Midterm III Winter 2008 section 002 Instructor: Scott Glasgow

Comparing Means: t-tests for One Sample & Two Related Samples

-e x ( 0!x+1! ) -e x 0!x 2 +1!x+2! e t dt, the following expressions hold. t

Analyze patterns and relationships. 3. Generate two numerical patterns using AC

Module 4: Time Response of discrete time systems Lecture Note 2

On Multicomponent System Reliability with Microshocks - Microdamages Type of Components Interaction

Ground Rules. PC1221 Fundamentals of Physics I. Kinematics. Position. Lectures 3 and 4 Motion in One Dimension. A/Prof Tay Seng Chuan

Ensamble methods: Boosting

CHAPTER 2: Mathematics for Microeconomics

Two Popular Bayesian Estimators: Particle and Kalman Filters. McGill COMP 765 Sept 14 th, 2017

6.003 Homework #9 Solutions

ES.1803 Topic 22 Notes Jeremy Orloff

Age (x) nx lx. Age (x) nx lx dx qx

Chapter 14 Homework Answers

Then. 1 The eigenvalues of A are inside R = n i=1 R i. 2 Union of any k circles not intersecting the other (n k)

6.003 Homework #9 Solutions

Ordinary differential equations. Phys 750 Lecture 7

ACE 562 Fall Lecture 5: The Simple Linear Regression Model: Sampling Properties of the Least Squares Estimators. by Professor Scott H.

EE 435. Lecture 31. Absolute and Relative Accuracy DAC Design. The String DAC

1 Review of Zero-Sum Games

Ordinary Differential Equations

Course Notes for EE227C (Spring 2018): Convex Optimization and Approximation

Spring Ammar Abu-Hudrouss Islamic University Gaza

2.4 Cuk converter example

Exponential and Logarithmic Functions

Non-uniform circular motion *

Econ107 Applied Econometrics Topic 7: Multicollinearity (Studenmund, Chapter 8)

3.1.3 INTRODUCTION TO DYNAMIC OPTIMIZATION: DISCRETE TIME PROBLEMS. A. The Hamiltonian and First-Order Conditions in a Finite Time Horizon

Chapter 15: Phenomena. Chapter 15 Chemical Kinetics. Reaction Rates. Reaction Rates R P. Reaction Rates. Rate Laws

Physics 180A Fall 2008 Test points. Provide the best answer to the following questions and problems. Watch your sig figs.

Online Convex Optimization Example And Follow-The-Leader

F This leads to an unstable mode which is not observable at the output thus cannot be controlled by feeding back.

Chapter 3 Boundary Value Problem

Article from. Predictive Analytics and Futurism. July 2016 Issue 13

An introduction to the theory of SDDP algorithm

Errata (1 st Edition)

STATE-SPACE MODELLING. A mass balance across the tank gives:

Linear Response Theory: The connection between QFT and experiments

14 Autoregressive Moving Average Models

2.7. Some common engineering functions. Introduction. Prerequisites. Learning Outcomes

WEEK-3 Recitation PHYS 131. of the projectile s velocity remains constant throughout the motion, since the acceleration a x

Hamilton- J acobi Equation: Weak S olution We continue the study of the Hamilton-Jacobi equation:

Learning a Class from Examples. Training set X. Class C 1. Class C of a family car. Output: Input representation: x 1 : price, x 2 : engine power

Random Walk on Circle Imagine a Markov process governing the random motion of a particle on a circular

This document was generated at 1:04 PM, 09/10/13 Copyright 2013 Richard T. Woodward. 4. End points and transversality conditions AGEC

Solution: b All the terms must have the dimension of acceleration. We see that, indeed, each term has the units of acceleration

State-Space Models. Initialization, Estimation and Smoothing of the Kalman Filter

FITTING EQUATIONS TO DATA

ACE 564 Spring Lecture 7. Extensions of The Multiple Regression Model: Dummy Independent Variables. by Professor Scott H.

Math From Scratch Lesson 34: Isolating Variables

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...

23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes

Notes on Kalman Filtering

arxiv:quant-ph/ v1 5 Jul 2004

Vehicle Arrival Models : Headway

Integration Over Manifolds with Variable Coordinate Density

Two Coupled Oscillators / Normal Modes

Echocardiography Project and Finite Fourier Series

Chapter 2: Principles of steady-state converter analysis

International Journal of Mathematics Trends and Technology (IJMTT) Volume 37 Number 3 September 2016

Solutions to Odd Number Exercises in Chapter 6

Transcription:

Chaper 4. Truncaion Errors and he Taylor Series Truncaion Errors and he Taylor Series Non-elemenary funcions such as rigonomeric, eponenial, and ohers are epressed in an approimae fashion using Taylor series when heir values, derivaives, and inegrals are compued. Any smooh funcion can be approimaed as a polynomial. Taylor series provides a means o predic he value of a funcion a one poin in erms of he funcion value and is derivaives a anoher poin.

Figure 4. Eample To oge he cos() ( ) for small : cos If 0.5 2 4 + 2! 4! 6 6! +L cos(0.5)-0.25+0.002604-0.000027+ 0.877582 From he supporing heory, for his series, he error is no greaer han he firs omied erm. 8 8! for 0.5 0.000000

Any smooh funcion can be approimaed as a polynomial. f( i+ ) f( i ) i i zero order approimaion, only rue if i+ and i are very close o each oher. f( i+ ) f( i ) + f ( i ) ( i+ - i ) firs order approimaion, in form of a sraigh line n h order approimaion f ( f 2! + ( n) f n + ( i+ i ) + Rn n! 2 i+ ) f ( i ) + f ( i )( i+ i ) + ( i+ i ) K ( i+ - i ) h sep size (define firs) R n ( n+ ) f ( ε ) ( n + ) h ( n + )! Reminder erm, R n, accouns for all erms from (n+) o infiniy.

Fig 4.2 Fig 4.3

ε is no known eacly, lies somewhere beween i+ >ε > i. Need o deermine f n+ (), o do his you need df'( f'(). If we knew f(), here wouldn be any need o perform he Taylor series epansion. However, RO(h n+ ), (n+) h order, he order of runcaion error is h n+. O(h), halving he sep size will halve he error. O(h 2 ), halving he sep size will quarer he error. Truncaion error is decreased by addiion of erms o he Taylor series. If h is sufficienly small, only a few erms may be required o obain an approimaion close enough o he acual value for pracical purposes. Eample: Calculae series, correc o he 3 digis. + +K 2 3 4

Error Propagaion () refers o he oaing poin (or compuer) represenaion of he real number. Because a compuer can hold a finie number of significan figures for a given number, here may be an error (round-off error) associaed wih he oaing poin represenaion. The error is deermined by he precision of he compuer (ε).. Suppose ha we have a funcion f() ha is dependen on a single independen variable. () is an approimaion of and we would like o esimae he effec of discrepancy beween and () on he value of he funcion: Δf ( ) f ( ) f ( ) boh f() and are unknown Employ Taylor series o compue f() near f( he second and higher order erms f ( ) f ( ) f ( )( ) ), dropping

Figure 4.7 Also, le ε, he fracional relaive error, be he error associaed wih (). Then ( ) ε where ε ε Machine epsilon, upper boundary Rearranging, we ge ( ) ε ( ) ( ε + )

Case : Addiion of and 2 wih associaed errors ε and ε 2 yields he following resul: ( ) (+ε ) ( 2 ) 2 (+ε 2 ) ( )+( 2 )ε +ε 2 2 + + 2 ε ( ) + ( 2) ( + 2) ε 2 00% + + A large error could resul from addiion if and 2 are almos equal magniude bu opposie sign, herefore one should avoid subracing nearly equal numbers. 2 2 2 Generalizaion: Suppose he numbers ( ), ( 2 ), ( 3 ),, ( n ) are approimaions o, 2, 3,, n and ha in each case he maimum possible error is E. ( i )-E i ( i )+E E i E I follows by addiion ha ( i ) ne i ( i ) + So ha i ( i ) ne ) ne Therefore, he maimum possible error in he sum of ( i ) is ne. ne

Case 2: Muliplicaion of and 2 wih associaed errors e and e 2 resuls in: ( ) ( 2) ( ) 2( 2) ( ) ( 2) 2 ( ε ε 2 2 + ) ( ) ( 2) 2 ε ε 2 % 2 ε 00% 2 Since ε, ε 2 are boh small, he erm ε ε 2 should be small relaive o ε +ε 2. Thus he magniude of he error associaed wih one muliplicaion or division sep should be ε +ε 2. ε ε (upper bound) Alhough error of one calculaion may no be significan, if 00 calculaions were done, he error is hen approimaely 00ε. The magniude of error associaed wih a calculaion is direcly proporional o he number of muliplicaion seps. Refer o Table 4.3

Overow: Any number larger han he larges number ha can be epressed on a compuer will resul in an overow. Underow (Hole) : Any posiive number smaller han he smalles number ha can be represened on a compuer will resul an underow. Sable Algorihm: In eended calculaions, i is likely ha many round-offs will be made. Each of hese plays he role of an inpu error for he remainder of he compuaion, impacing he evenual en oupu. Algorihms for which he cumulaive effec of all such errors are limied, so ha a useful resul is generaed, are called sable algorihms. When accumulaion is devasaing and he soluion is overwhelmed by he error, such algorihms are called unsable. Figure 4.8