14.04.2017 Views

Numerical Analysis By Shanker Rao

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

14 NUMERICAL ANALYSIS<br />

Example 1.13<br />

2<br />

Given that u= 5xy ∆x, ∆y<br />

and ∆z denote the errors in x, y and z respectively such that x = y<br />

3<br />

z<br />

= z = 1 and ∆x = ∆y = ∆z<br />

= 0.001, find the relative maximum error in u.<br />

Solution<br />

We have<br />

2<br />

∂u<br />

5y<br />

∂u<br />

10xy<br />

∂u<br />

xy<br />

= = = − 15<br />

, ,<br />

3 3<br />

4<br />

∂x<br />

z ∂y<br />

z ∂z<br />

z<br />

∂u<br />

∂<br />

∴ ∆u<br />

= ∆x+ u ∂u<br />

∆y<br />

+ ∆z<br />

∂x<br />

∂y<br />

∂z<br />

b g max<br />

∂u<br />

∂<br />

⇒ ∆u<br />

= ∆x+ u ∂u<br />

∆y<br />

+ ∆z<br />

∂x<br />

∂y<br />

∂z<br />

2<br />

2<br />

5y<br />

10xy<br />

= + + − 15xy<br />

∆x<br />

∆y<br />

∆ z<br />

(1)<br />

3 3<br />

4<br />

z z<br />

z<br />

Substituting the given values in (1) and using the formula to find the relative maximum error we get<br />

u<br />

bERg<br />

b∆<br />

gmax 003 .<br />

= = = 0006 . .<br />

max<br />

u 5<br />

Example 1.14<br />

If X = 2.536, find the absolute error and relative error when<br />

(i) X is rounded and<br />

(ii) X is truncated to two decimal digits.<br />

Solution<br />

(i) Here X = 2.536<br />

Rounded-off value of X is x = 2.54<br />

The Absolute Error in X is<br />

E A<br />

= |2.536 – 2.54|<br />

= |– 0.004| = 0.004<br />

Relative Error = E R<br />

= 0 . 004 = 0.0015772<br />

2.<br />

536<br />

= 1.5772 × 10 –3 .<br />

(ii) Truncated Value of X is x = 2.53<br />

Absolute Error E A<br />

= |2.536 – 2.53| = |0.006| = 0.006<br />

2<br />

∴<br />

Relative Error = E R<br />

= E A<br />

X<br />

= 0 . 006<br />

2.<br />

536<br />

= 0.0023659<br />

= 2.3659 × 10 –3 .<br />

Example 1.15 If π= 22<br />

7<br />

22<br />

Solution Absolute Error = E A<br />

= −<br />

7<br />

is approximated as 3.14, find the absolute error, relative error and relative percentage error.<br />

314 . =<br />

22 − 2198 .<br />

7

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

Saved successfully!

Ooh no, something went wrong!