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

  What is the geometric center frequency

A band-pass filter has a lower cutoff frequency of 100 Hz and an upper cut-off frequency of 144 Hz. What is the geometric center frequency? (Points : 3) 120 Hz 130 Hz 134.5 Hz 140 Hz

  Cloud provider secure large amount of capital

Few organizations tend to prefer operating expense models. whether Cloud providers will continue to secure large amount of capital....or will equity firms stop their funding?

  What is the difference between the if then elseif

What is the difference between the If Then ElseIF clause and a Nested If Block? Please provide examples of how you would use each.

  Write function xsort takes list strings returns sorted list

Write the function Xsort wich takes in a list of strings and returns sorted list with all words beginning wih "X" first in the list. f.ex: xsort (['kex', 'xylofonn', 'epli', 'xenos', 'asni']) returns ['xenos', 'xylofonn', 'asni', 'epli', 'kex']

  Write algorithm computing total flight time and distance

Write an algorithm for computing total flight time and the horizontal distance traveled by the cannon ball for the problem discussed in class?

  What are the risks associated with the loss of these data

Based on the Ledford (2012) article, what special issues must be considered for corporate data which are not fully digitized? What are the risks associated with the loss of these data? What recovery procedures do you recommend for these situations..

  Several problems in accessing sales data effectively

U.S. Sports Fanatics has several problems in accessing sales data effectively and in a timely fashion because of its very basic paper-based process, causing it to lose out to its competition.

  Explain how decision problem is decidable

Think of the way to mark all variables A such that for some string x ∈ Σ*, A (⇒*(over)G) x. Describe algorithm in detail.

  Show at least the state of machine and state of any memory

Consider two machines, a classical von Neumann architecture as well as a more modern machine with two buses.

  What will be the date in the opening of the letter

If /home/zach/draft and /home/max/letter are links to the same file and the following sequence of events occurs, what will be the date in the opening of the letter?

  Write a function create audio colla()

Write a function createAudioCollage() that will create an audio collage.

  True and false

A.  (True | False) In the MSP430's active mode, the MCLK and SMCLK clocks are up and running and ACLK is not running (it is turned off).

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