Numerical Analysis Lecture 2.

Slides:



Advertisements
Similar presentations
Interpolation A standard idea in interpolation now is to find a polynomial pn(x) of degree n (or less) that assumes the given values; thus (1) We call.
Advertisements

Roundoff and truncation errors
2009 Spring Errors & Source of Errors SpringBIL108E Errors in Computing Several causes for malfunction in computer systems. –Hardware fails –Critical.
CSE 330: Numerical Methods
CSE 330: Numerical Methods
Algebra Problems… Solutions Algebra Problems… Solutions © 2007 Herbert I. Gross Set 8 By Herbert I. Gross and Richard A. Medeiros next.
Asymptotic error expansion Example 1: Numerical differentiation –Truncation error via Taylor expansion.
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
Error Measurement and Iterative Methods
LOGO 1 MATH 2040 Introduction to Mathematical Finance Instructor: Dr. Ken Tsang.
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
Approximations and Errors
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 3 Approximations and Errors.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
Numerical solution of Differential and Integral Equations PSCi702 October 19, 2005.
Logarithms are important in many applications of mathematics to everyday problems, particularly in biology, engineering, economics and social science.
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
Introduction and Analysis of Error Pertemuan 1
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
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.
Simpson Rule For Integration.
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.
SECOND-ORDER DIFFERENTIAL EQUATIONS Series Solutions SECOND-ORDER DIFFERENTIAL EQUATIONS In this section, we will learn how to solve: Certain.
ME 142 Engineering Computation I Computer Precision & Round-Off Error.
Lecture 8 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
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.
Numerical Analysis. Numerical Analysis or Scientific Computing Concerned with design and analysis of algorithms for solving mathematical problems that.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Numerical Analysis CC413 Propagation of Errors. 2 In numerical methods, the calculations are not made with exact numbers. How do these inaccuracies propagate.
Lecture 1 Introduction Slide Credit Dr. S. M. Lutful Kabir, Visiting Professor, BRAC University & Professor, BUET CSE 330: Numerical Methods.
Lecture 1 Introduction Dr. Hakikur Rahman Thanks to Dr. S. M. Lutful Kabir for Slides CSE 330: Numerical Methods.
1 Approximations and Round-Off Errors Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis Applied Numerical Method for Engineers Chapter.
Numerical Methods and Optimization C o u r s e 1 By Bharat R Chaudhari.
1 M 277 (60 h) Mathematics for Computer Sciences Bibliography  Discrete Mathematics and its applications, Kenneth H. Rosen  Numerical Analysis, Richard.
Number Systems Decimal Can you write 12,045 in expanded form? Base? Allowable digits for each place?
NUMERICAL ANALYSIS I. Introduction Numerical analysis is concerned with the process by which mathematical problems are solved by the operations.
1 Week 11 Numerical methods for ODEs 1.The basics: finite differences, meshes 2.The Euler method.
Linear approximation and differentials (Section 3.9)
EEE 431 Computational Methods in Electrodynamics
ME 142 Engineering Computation I
INTRODUCTION : Convection: Heat transfer between a solid surface and a moving fluid is governed by the Newton’s cooling law: q = hA(Ts-Tɷ), where Ts is.
Numerical Analysis Lecture 42.
New head garb has been ordered
Taylor series in numerical computations (review)
Chapter 2 ERROR ANALYSIS
525602:Advanced Numerical Methods for ME
Recall our hypothetical computer Marc-32
Class Notes 18: Numerical Methods (1/2)
Roundoff and Truncation Errors
Solution of Equations by Iteration
Chapter 27.
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Approximations and Round-Off Errors Chapter 3
Numerical Analysis Lecture 37.
5.3 Higher-Order Taylor Methods
Numerical Analysis Lecture 38.
Copyright © Cengage Learning. All rights reserved.
Linear approximation and differentials (Section 3.9)
Chapter 1 / Error in Numerical Method
Roundoff and Truncation Errors
Numerical Analysis Lecture 36.
Errors and Error Analysis Lecture 2
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Applications For practice we denote
Presentation transcript:

Numerical Analysis Lecture 2

Introduction Solution of Non Linear Introduction Solution of Non Linear Equations Solution of Linear System of Equations Approximation of Eigen Values

Interpolation and. Polynomial Interpolation and Polynomial Approximation Numerical Differentiation Numerical Integration Numerical Solution of Ordinary Differential Equations

Errors in Computations

Numerically, computed solutions are subject to certain errors Numerically, computed solutions are subject to certain errors. It may be fruitful to identify the error sources and their growth while classifying the errors in numerical computation.

local round-off errors local truncation errors These are Inherent errors, local round-off errors local truncation errors

Inherent errors It is that quantity of error which is present in the statement of the problem itself, before finding its solution. It arises due to the simplified assumptions made in the mathematical modeling of a problem.

It can also arise when the data is obtained from certain physical measurements of the parameters of the problem.

Local round-off errors Every computer has a finite word length and therefore it is possible to store only a fixed number of digits of a given input number.

Since computers store information in binary form, storing an exact decimal number in its binary form into the computer memory gives an error. This error is computer dependent.

At the end of computation of a particular problem, the final results in the computer, which is obviously in binary form, should be converted into decimal form-a form understandable to the user-before their print out. Therefore, an additional error is committed at this stage too. This error is called local round-off error.

If a particular computer system has a word length of 12 bits only, then the decimal number 0.7625 is stored in the computer memory in binary form as 0.110000110011. However, it is equivalent to 0.76245.

Thus, in storing the number 0 Thus, in storing the number 0.7625, we have committed an error equal to 0.00005, which is the round-off error; inherent with the computer system considered. Thus, we define the error as Error = True value – Computed value

Absolute error, denoted by |Error|, while, the relative error is defined as Relative error

Local truncation error It is generally easier to expand a function into a power series using Taylor series expansion and evaluate it by retaining the first few terms. For example, we may approximate the function f (x) = cos x by the series

If we use only the first three terms to compute cos x for a given x, we get an approximate answer. Here, the error is due to truncating the series. Suppose, we retain the first n terms, the truncation error (TE) is given by The TE is independent of the computer used.

If we wish to compute cos x for accurate with five significant digits, the question is, how many terms in the expansion are to be included? In this situation

Taking logarithm on both sides, we get or We can observe that, the above inequality is satisfied for n = 7. Hence, seven terms in the expansion are required to get the value of cos x, with the prescribed accuracy

The truncation error is given by

Numerical Analysis Lecture 2