Docsity

Solved Problems on Numerical Analysis I - Assignment 1 | MATH 4610, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
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

Partial preview of the text

Download Solved Problems on Numerical Analysis I - Assignment 1 | MATH 4610 and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

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 x using the model of floating point arithmetic fl [a op b] = (a op b)(1 +  1 ) (1) where  1 is 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  1 and  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.