Why is it impossible to represent x exactly in 32-bit ieee

Assignment Help Basic Computer Science
Reference no: EM13695873

Question 1: Let X = 11.00000 00000 00000 00000 011?;

(a) Why is it impossible to represent X exactly in 32-bit IEEE ?oating-point? (b) and (c) What are the two binary numbers closest to X that we *can* represent?

For problems 11 and 12, represent binary numbers using 5 signi?cant bits. (One way to do this is to always represent numbers as 1.bbbb?×?2? where the b's are bits and n is an exponent.
So we can't represent 100001 because that would be 1.00001 ? ×?2?. It also means we can't carry out the addition 100000 + 1 without truncation (of a nonzero bit).

Question 2: To calculate (.00001 + .00001) + 1.0000 requires two additions. (a) Does the ?rst addition, .00001 + .00001, cause truncation (of nonzero bits) before or after the addition? If so, specify how and when (b) Does the second addition, [the value from part a] + 1.0000?

Question 3: Repeat the previous question on .00001 + (.00001 + 1.0000). (Part a is the right-hand addition; part b is the left-hand addition.)

Solve these questions in details and provide examples to support your rationale.

Reference no: EM13695873

Questions Cloud

Under the sarbanes-oxley act : The Sarbanes-Oxley Act of 2002, limits the non audit services that an audit firm can provide to public company audit clients. Which of the following is most likely to be a service that an auditor may provide to a public client? According to COSO, the..
Measure the execution time of the three sorting algorithms : The program should display the array values before sorting and then after invoking each sorting method. For this case, consider SIZE value 100 and MAXRNG value 9999.
Calculator to do the suitable matrix exponentiation : Every company makes particular restrictions for passwords, but employees of ABC have particularly strange restrictions. Their passwords may only consist of the lowercase letters
Calculate compounded monthly interest : So for example if I were to have an initial balance of $1250.00 with an interest rate of %13 paid over the course of 4 months it should come out to $2038.09 total for interest added to the initial balance
Why is it impossible to represent x exactly in 32-bit ieee : Why is it impossible to represent X exactly in 32-bit IEEE ?oating-point? (b) and (c) What are the two binary numbers closest to X that we *can* represent?
Program that translates a letter grade into a number grade : Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D, and F, possibly followed by + or -.
Create a website for a fashion designer : Imagine that an associate of yours just designed a table with captions outside the table's borders. The font on the Website is black, and the text inside the table is red.
Draw the recursive process of quicksort : Draw the recursive process of Quicksort and Mergesort for sorting the sequence {5, 1, 2, 9, 7}. You will get a recursion tree for Quicksort and Mergesort respectively. What are their depths?
Create a new web page : Create a new web page with one image and corresponding JavaScript file. You will teach the image to play the "keep away" game. Give the image an ID so that your script can find it with the getElementById method.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How integer variables are typically represented on computer

Briefly describe how integer variables are typically represented on a computer. (Look up one's complement and two's complement arithmetic in an introductory computer science textbook if you are not familiar with these.)

  Compare tcp and udp protocols

)You suspect that the failure of a router or of a transmission line connecting routers has left some of your important servers unavailable to clients at your site. How could you narrow down the location of the problem?

  Create a financial spreadsheet on a topic

Create a financial spreadsheet on a topic

  Prepare disaster recovery plan for organization

Prepare a Disaster Recovery (DR) Plan for following organization; Company; Widget Works Electronics, Employees; 250, Infrastructure; 1 Central Office building housing primary datacenter. 10 satellite sales branches.

  Design patterns in today-s development environments

In System Analysis and Design: Design Patterns - How widely used are design patterns in today's development environments?

  Knowledge management systems important-modern organization

Describe in scholarly detail why knowledge management systems would be so important to a modern organization where the organization would initiate.

  Construct an fa (finite automata)

Construct an FA (finite automata) that accepts all binary strings with an even number of 0's and the number of 1's is a multiple of 3.

  How the result is stored in 11-bit signed integer register

Would the operation -567+(-458) cause an overflow, assuming the result is stored in an 11-bit signed integer register?

  Prompt the user for the length and width of a lawn

Prompt the user for the length and width of a lawn

  Identify an e-commerce website whose interface has challenge

Identify an e-commerce website whose interface has some design challenges. Evaluate the three parts of the user interface (navigation, input, and output)

  Describe the relative strengths and weakness of windows

Describe the relative strengths and weakness of Windows .NET server, UNIX and Linux in each of the following scenarios. Which operating system would you recommend for each scenario?

  Troubleshooting rip and eigrp vlab

Troubleshooting RIP and EIGRP vLab

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd