14.04.2017 Views

Numerical Analysis By Shanker Rao

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4 NUMERICAL ANALYSIS<br />

F<br />

HG<br />

involves an analytical error.<br />

2 3<br />

1 − x x x<br />

+ − 0<br />

2 3KJ − x<br />

! !<br />

= ,<br />

I<br />

The magnitude of the error in the value of the function due to cutting (truncation) of its series<br />

is equal to the sum of all the discarded terms. It may be large and may even exceed the sum of the<br />

terms retained, thus making the calculated result meaningless.<br />

(iii) Round-off errors. When depicting even rational numbers in decimal system or some other<br />

positional system, there may be an infinity of digits to the right of the decimal point, and it may not<br />

be possible for us to use an infinity of digits, in a computational problem. Therefore it is obvious<br />

that we can only use a finite number of digits in our computations. This is the source of the socalled<br />

rounding errors. Each of the FORTRAN Operations +, –, *, /, **, is subject to possible roundoff<br />

error.<br />

To denote the cumulative effect of round-off error in the computation of a solution to a given<br />

computational problem, we use the computational error and the computational error can be made<br />

arbitrarily small by carrying all the calculations to a sufficiently high degree of precision.<br />

Definition 2 <strong>By</strong> the error of an approximate number we mean the difference between the exact<br />

number X, and the given approximate number x.<br />

It is denoted by E (or by ∆)<br />

E= ∆ =X – x.<br />

Note An exact number may be regarded as an approximate number with error zero.<br />

Definition 3 The absolute error of an approximate number x is the absolute value of the difference<br />

between the corresponding exact number X and the number x. It is denoted by E A<br />

. Thus<br />

E A = X − x<br />

Definition 4 The limiting error of an approximate number denoted by ∆x is any number not less<br />

than the absolute error of that number.<br />

Note From the definition we have<br />

E A = X − x ≤ ∆x.<br />

Therefore X lies within the range<br />

x – ∆x ≤ X ≤ x + ∆x<br />

Thus we can write X=x±∆x<br />

Definition 5 The relative error of an approximate number x is the ratio of the absolute error of<br />

the number to the absolute value of the corresponding exact number X, where bX ≠ 0g. It is denoted<br />

by E R<br />

(or by δ)<br />

E<br />

R<br />

E A<br />

= δ = .<br />

X

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!