Assignment 1 Numerical Methods
Assignment 1 Numerical Methods
SP-11-EE-028
ASSIGNMENT: 1
QUESTION: 1: Perform the following computations (i) exactly, (ii) using three digit
chopping arithmetic and (iii) using three digit rounding arithmetic. Compute the relative
errors in part (ii) and part (iii).
(a).
4/5 + 1/3
Solution:
(i)
(ii)
(iii)
(iv)
(4/5).(1/3)
(i)
(ii)
(iii)
(iv)
c).
(i)
(ii)
(iii)
(iv)
d).
(i)
(ii)
(iii)
(iv)
QUESTION: 2
(a). x2 2 +1/ x2 for x = 1.473
x
Exact
3-digit- rounding
Exact equation =
Rounding off
x2
1/x2
exact
3-digit round
Exact equation
Round off
x
x3
x4
5.12 134.2177 687.1948
5.12
134
687
271.5094
271
** If the rounding off is increased from 3 digit rounding arithmetic to more than three may be 4,5 ,6 then
there will be significant reduction in the error.
QUESTION -3