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 numberfthat is the exact solution of2− 2 = 0. Why is this not possible? Also, supposefandfare the floats to the left and right ofrespectively. What doesequal?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here