Problem Set 1
Problem Set 1
6. Round off the numbers 865250 and 37.46235 to four significant digits and compute
absolute, relative and percentage error in each case.
7. Find 0.348 + 0.1834 + 435.4 + 235.2 + 11.75 + 9.27 + 0.0849 + 0.0214 + 0.000354,
assume that all their digits being correct. Find maximum, absolute and relative error
in the sum also.
8. Suppose that you have the task of measuring the lengths of a bridge and a rivet and
come up with 9999 and 9 cm, respectively. If the true values are 10,000 and 10 cm,
respectively, compute (a) the true error and (b) the true percent relative error for each
case.
9. If x = 5.675, y = 4.737 and z = 4.373, calculate x(y − z) and xy − yz, to four significant
digits, which one is more accurate.
√
10. Compute y = x3 sin(x) for x = 2(≈ 1.414). Determine absolute and relative error in
y.
2
11. If u = 4xy
z3
and error in x, y, z be 0.001, compute the maximum relative error in u when
x = y = z = 1.
12. Find u = loge (x1 + x22 ), x1 = 0.97, x2 = 1.132. Obtain absolute and relative error in u.
1
√
13. Calculate the Round off error of 3
and 2.
14. Use the decimal format with six significant digits (apply rounding at each step) for the
following functions to calculate
1−cos(x)
(a) f (x) = sin(x)
for x = 0.007,
√
(x+4)−2
(b) f (x) = x
for x = 0.001,
ex −1
(c) f (x) = x
for x = 0.005.
the true relative error, due to rounding, in the value.
15. Evaluate the following polynomials at x = 1.37. Use 3-digit arithmetic with chopping.
Evaluate the percent relative error.
(a) y = x3 − 5x2 + 6x + 0.55.
(b) y = ((x − 5)x + 6)x + 0.55.
Compare the error for both the polynomials.
16. Use 5-digit arithmetic with chopping to determine the roots of the equation x2 −
5000.002x + 10. Compute percent relative errors for your results.
17. Find the truncation error around x = 0 for the following functions
(a) f (x) = sin x,
(b) f (x) = cos x,
(c) f (x) = ex .
18. Using Taylor series expansion of the function f (x) = ex , calculate the value of e−2 for
the following cases.
(a) Use the first four terms.
(b) Use the first six terms.
(c) Use the first eight terms.
Use decimal numbers with six significant numbers (apply rounding at each step). In
each case calculate also the true relative error.
19. In the Taylor’s series expansion of ex at x = 0. How many terms it would require to
get an approximation of e1 within a magnitude of true error of less than 10−6 .
√ 1
20. Let f (x) = 1 + x, x ∈ [0, ]. Find the second order Taylor polynomial (computed
2
about 0) approximation to f and the corresponding error bound.
21. Let pn (x) be the Taylor polynomial of degree n to the exponential function ex , x ∈ [0, 1]
such that the error for this approximation is less than 10−6 , that is,
Then find n.
22. Given a value of xA = 2.5 with an error of 0.01. Estimate the resulting error in the
function f (x) = x3 .
23. Write the number 0.2 in binary form with sufficient number of digits so that the true
relative error is less than 0.01.