
Numerical Analysis I
Homework 1
1. Consider the two ways of evaluating
x= (200011.3โ200011.42) + 3.14, x = 200011.3 + (3.14 โ200011.42)
on a computer. Give an expression the relative error in computing xusing the model
of floating point arithmetic
fl [aop b] = (aop b)(1 + ๎1) (1)
where ๎1is an error satisfying |๎1|< ๎,๎is the machine precision and op is any
basic arithmetic operation (addition, subtraction, multiplication or division). For each
formula, 2 floating point operations are performed so your answer will involve ๎1and
๎2. Which way of summing the three numbers is likely to be most accurate? Explain.
2. 1.1.2 from the text.
3. 1.1.12 from the text.
1