This problem considers the consequences of rounding using double precision. Assume the “round to nearest” rule is used, and if there is a tie then the smaller value is picked (this rule for ties is...


This problem considers the consequences of rounding using double precision. Assume the “round to nearest” rule is used, and if there is a tie then the smaller value is picked (this rule for ties is used to make the problem easier).


(a) For what real numbers
 will the computer claim the inequalities 1
 <>


(b) For what real numbers
 will the computer claim
 = 4?


(c) Suppose it is stated that there is a floating-point number


f

that is the exact solution of

2
− 2 = 0. Why is this not possible? Also, suppose


f

and


f

are the floats to the left and right ofrespectively. What doesequal?

Nov 17, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here