approximation and error

11
ESCUELA DE INGENIERÍA DE PETROLEOS RUBEN DARIO ARISMENDI RUEDA

Upload: rubenarismendi

Post on 01-Jul-2015

1.685 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Approximation and error

ESCUELA DE INGENIERÍA DE PETROLEOS

RUBEN DARIO ARISMENDI RUEDA

Page 2: Approximation and error

ESCUELA DE INGENIERÍA DE PETROLEOS

CHAPTER 2: ‘APPROXIMATIONS AND ROUND OF ERROR’

Page 3: Approximation and error

ESCUELA DE INGENIERÍA DE PETROLEOS

INTRODUCTION

Approximation and round-off error is an interesting topic for all engineers.Because all the measures taken from experiments or studies in real worldare not exact, which causes deviations (errors) on the results that weobtain from the solutions.

Page 4: Approximation and error

ESCUELA DE INGENIERÍA DE PETROLEOS

Approximation:Approximation usually occurs when an exact form or an exact numericalnumber is unknown or difficult to obtain. To talk about approximation, wehave to introduce a new concept ''Number of Significant Figures'' thatindicates Precision (number of digits after a coma). Most of the timeswhen we have a number with many digits after a coma, we often takethree digits, in other terms, we approximate the number.

Computer programs in numerical methods often take an specific numberof significant digits.

Page 5: Approximation and error

ESCUELA DE INGENIERÍA DE PETROLEOS

Error: ''Numerical errors arise from the use of approximations to represent exactmathematical operations and quantities. The include truncation errors, which resultwhen approximations are used to represent exact mathematical procedures, andround-off errors, which result when numbers having significant figures, are used torepresent exact numbers.''*Numerical Methods for Engineers . Steven C. Chapra, pag54 .The errors appears for a simple reason, which is ''empirical measurements'', all thedata that we take are by our senses, we are not perfect so some deviations areinclude in every measurement we take. That's why is so important to calculatethem, and try to have a small error, which indicates that we are really close from theexact result or near the result that we expect.

Page 6: Approximation and error

ESCUELA DE INGENIERÍA DE PETROLEOS

Page 7: Approximation and error

ESCUELA DE INGENIERÍA DE PETROLEOS

Types of errors.

1. Truncation Errors: it has two types of errors.

Local truncation error:The local truncation error is the error that our increment function, A, causes during a given iteration, assuming perfect knowledge of the true solution at the previous iteration.

Global truncation errorThe global truncation error is the accumulation of the local truncation error over all of the iterations, assuming perfect knowledge of the true solution at the initial time step.

Page 8: Approximation and error

ESCUELA DE INGENIERÍA DE PETROLEOS

2. Rounding Error :rounding error, is the difference between the calculated approximation of a number and its exact mathematical value.

EXAMPLE:

Truncation: simply chop off the remaining digits; also called rounding to zero.0.142857 ≈ 0.142 (dropping all significant digits after 3rd)

Round to nearest: round to the nearest value, with ties broken in one of twoways. The result may round up or round down. 0.142857 ≈ 0.143 (roundingthe 4th significant digit. This is rounded up because 8 is higher than 5 )

Page 9: Approximation and error

ESCUELA DE INGENIERÍA DE PETROLEOS

Page 10: Approximation and error

ESCUELA DE INGENIERÍA DE PETROLEOS

¿HOW THE ERROR IS CALCULATED?

To calculate the error we have to know the approximate value. This is the AbsoluteError; which is equal to the discrepancy between the truth and the approximation.

Absolute Error (E)= true value - approximation . (E)means ''Exact value of error''Now there is another value that we have to concern about, and is the ''Relative Error()''. which is the percentage difference between the absolute value and the real value.

Page 11: Approximation and error

ESCUELA DE INGENIERÍA DE PETROLEOS

Bibliography:

•http://en.wikipedia.org/wiki/Round-off_error•Numerical Methods for Engineers . Steven C. Chapra