Chapter 3: Q42E (page 241)
Question: What do you get if you addto itself 4 times? What is ? Are they the same? What should they be?
Short Answer
The value of adding –1/4 four times and the value of multiplying -–1/4 by 4 are the same.
Chapter 3: Q42E (page 241)
Question: What do you get if you addto itself 4 times? What is ? Are they the same? What should they be?
The value of adding –1/4 four times and the value of multiplying -–1/4 by 4 are the same.
All the tools & learning materials you need for study success - in one app.
Get started for freeIEEE 754-2008 contains a half precision that is only 16 bits wide. The left most bit is still the sign bit, the exponent is 5 bits wide and has a bias of 15, and the mantissa is 10 bits long. A hidden 1 is assumed. Write down the bit pattern to represent assuming a version of this format, which uses an excess-16 format to store the exponent. Comment on how the range and accuracy of this 16-bit floating point format compares to the single precision IEEE 754 standard.
Calculate
by hand, assuming each of the values is stored in the 16-bit half-precision format described in Exercise 3.27 (and also described in the text). Assume 1 guard, 1 round bit, and 1 sticky bit, and round to the nearest even. Show all the steps, and write your answer in both the 16-bit floating-point format and in decimal.
Question: Based on your answer to 3.38 and 3.39, is
Based on your answers to 3.32 and 3.33, does
Calculate the product ofandby hand, assuming A and B are stored in the 16-bit half precision format described in Exercise 3.27. Assume 1 guard, 1 round bit, and 1 sticky bit and round to the nearest even. Show all the steps; however, as is done in the example in the text, you can do the multiplication in human readable format instead of using the techniques described in Exercises 3.12 through 3.14. Indicate if there is overflow or underflow. Write your answer in both 16-bit floating point format described in Exercise 3.27 and also as a decimal number. How accurate is your result? How does it compare to the number you get if you do multiplication on a calculator?
What do you think about this solution?
We value your feedback to improve our textbook solutions.