Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In certain situations, you can be sure that a + b is exactly representable as a floating-point number, that is, no rounding is necessary. a.

In certain situations, you can be sure that a + b is exactly representable as a floating-point number, that is, no rounding is necessary.

a. Give an example where the exponents differ by 1, a and b have different signs, and a + b is not exact.

b. If a b 0, and the top two bits of a cancel when computing a b, explain why the result is exact.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Finance And Accounting For Non Financial Managers

Authors: Samuel Weaver, J. Fred Weston

1st Edition

0071435360, 978-0071435369

Students also viewed these Databases questions