Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction and Analysis of Error Pertemuan 1

Similar presentations


Presentation on theme: "Introduction and Analysis of Error Pertemuan 1"— Presentation transcript:

1

2 Introduction and Analysis of Error Pertemuan 1
Matakuliah : S0262-Analisis Numerik Tahun : 2010 Introduction and Analysis of Error Pertemuan 1

3 Material Outline Introduction to Numerical Methods
Approximation and Errors Propagation of Errors

4 Numerical Analysis  Numerical Methods
Numerical Analysis: Methods for providing numerical answer when analytic procedures are either computationally difficult or nonexistent. Numerical Analysis: Always involving complicated arithmetic computations  Need the help of computing machines (computers) Numerical Analysis  Numerical Methods 21-Apr-17 DR. Paston Sidauruk

5 Why Numerical methods are important:
In real life many problems can not be solved analytically. Numerical Analysis is a universal procedure (It can be applied to many different engineering fields such as CE, ME, EE, and IT) The fast growing development of computing machines (computers) 21-Apr-17 DR. Paston Sidauruk

6 Choosing appropriate Numerical methods. Developing a program
INTRODUCTION It is a fact that many mathematical or engineering problems or or physics phenomena can not be solved analytically (exact solution)  For this type of problems or phenomena, numerical analysis can give the solution. Numerical Work in general will cover the following steps: Modeling : formulating a given work (problem) into mathematical equations. Choosing appropriate Numerical methods. Developing a program Executing the program Analyzing the results Note: Numerical Methods is always involving serious arithmetical calculation  Need the help of computer. 21-Apr-17

7 Some Concerns About Numerical Analysis:
Numerical Value: is an approximation of true value that never known, hence we have to concern about the errors that may occur. 21-Apr-17

8 ERRORS In numerical solution, the results we get is the best approximation to true value. Hence the numerical solution is always associated to certain degree of errors. For this purpose, a true value of any parameter can be written as : a  ã - Et In which : a = true value (exact) ã = approximation (derived from measurements, calculations etc) Et = total error Numerical Errors: arise from the use of approximations to represent exact mathematical operations and quantities. 21-Apr-17

9 RELATIVE ERRORS Relative error of approximation:
It is sometimes desired to normalize the error with the true value such as to account the magnitudes of the quantities being evaluated, such error called relative error. Relative error t=true error/true value Relative error of approximation: a= approximation error/approximation In the approximation of using iteration ( current approximation is based on the previous approximation), then the relative error of approximation is given below: a= (current approximation – previous approximation)/ current approximation In numerical computations or iteration process, it is sometimes to pre specify the tolerance (s) such that the following eq is satisfied, | a|< tolerance (s) =(0,5 x 102-n) % n= significant figure 21-Apr-17

10 Errors sources Experimental errors (errors arise from experiments, measurements etc) Round off errors (errors because of rounding) Truncation errors (errors arise from a process of simplification an algorithms, computations, steps in algorithms) Programming errors 21-Apr-17

11 Example: A MacLaurin series of ex is given below: If the 1st term is considered as 1st estimate, the first 2 terms as the second estimate of ex, how many do you have to include in the series such that the relative errors | a|< s. In which a pre specified tolerance conforming to 3 significant figures. Find the true error and approximation errors. Note: e0,5= Solution: s =(0,5 x 102-3)%= 0,05 % 21-Apr-17

12 Example (Cont.): e0,5= 1, Solution: s =(0,5 x 102-3)%= 0,05 % Therefore, the minimum of the first 6 terms have to be used to estimate ex such that the error of approximation is less than the pre-specified tolerance. 2nd column: Series value for x= 0.5, 3rd column= (2nd column)/ Ith tern Result t (%) a (%) 1. 1 39,3 2 1,5 9,02 33,3 3 1,625 1,44 7,69 4 1, 0,175 1,27 5 1, 0,0172 0,158 6 1, 0,00142 0,0158 21-Apr-17

13 FINITE NUMBERS: can be written in two ways
1. fixed- point system ( is written according to the specified number of decimal place) Example: ; 0.013; and (3 decimal place) 2. floating- point system is written according to certain significant figures Example: * 103; * 10-13; 2000 * 104 21-Apr-17

14 Significant Figures The concept of significant figures designate the reliability of a numerical value. All digits that can be used with confidence. Example: 4 digit significant figures 1.360 ; 1360 ; All zeros that are needed only to locate the decimal point are not counted as significant figures: Example: all of the following numbers are in 4 significant figures ; ; Also: 4.53 * 104 (3 significant figures) 4.530 * 104 (4 significant figures) * 104 (5 significant figures) 21-Apr-17

15 Rounding a number to certain significant figures
Those digits that are not significant will be omitted. The last digit that is saved will rounded up if the first digit in the omitted digits >5 and if the 1st in the omitted digits =5 and the last digit in the saved digits is odd number. The final results of summation or subtraction will be rounded to the most significant figures of all the numbers (quantities) that are being operated. The final results of multiplication or division will be rounded such that the number of significant figures will be equivalent with the least number of significant figures of all the numbers (quantities) that are being operated. 21-Apr-17

16 Rounding a number to certain significant figures Examples:
Summation/Subtraction Evaluate: 2.2 – 1.768  =  0.4 4.68 x x x10-6= ….? ……. (6.0x10-4) Multiplication/Division 0.0642x 4,8= 0.31 945/0.3185= 2970 21-Apr-17

17 Function of single Variable
Error Propagation The purpose is to study how errors in numbers propagates through mathematical functions Function of single Variable 21-Apr-17

18 Function of single Variable Example: Given a value of
Error Propagation Function of single Variable Example: Given a value of Answer: 21-Apr-17

19 Function of more than one variable
Error Propagation Function of more than one variable 21-Apr-17

20 Function of more than one variable Example/Exercises:
Error Propagation Function of more than one variable Example/Exercises: 21-Apr-17

21 Estimated Error for common mathematical operations
Error Propagation Estimated Error for common mathematical operations Operation Estimated Error Addition Subtraction Multiplication Division 21-Apr-17


Download ppt "Introduction and Analysis of Error Pertemuan 1"

Similar presentations


Ads by Google