1. The natural exponent e = 2.71828182459 ... Answer the following questions: a. Assuming we follow the standard rules for representing floating point numbers, What is the exponent required to represent e as a floating point binary number? Report your answer in both the base-2 and base-10 representations

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

1.1

1. The natural exponent \( e = 2.71828182459 \ldots \)  
   Answer the following questions:

   a. Assuming we follow the standard rules for representing floating point numbers, what is the exponent required to represent \( e \) as a floating point binary number? Report your answer in both the base-2 and base-10 representations.

   b. How many bits of data are necessary to represent the decimal portion (i.e., mantissa) of \( \sqrt{e} \) to the fifth decimal place (1.64872)?

   c. Suppose you have a calculator that stores floating point numbers using a six-bit mantissa. What is the machine precision, “eps” for this calculator?

   d. If the calculator employs rounding, what is the largest possible relative round-off error introduced by a single calculation with the calculator from part ‘c’?

   e. Suppose instead that this calculator uses the following number format:  
\[ FL(x) = S|E|E|E|M|M|M \]

   - **Bit 1:** Sign of the number.
   - **Bits 2-4:** Biased exponent – subtract 4 to achieve the final exponent value.
   - **Bits 5-8:** Mantissa.

   Assuming that the calculator uses exact rounding, what is the expected relative error produced when performing the calculation \( \sqrt{e} \)?
Transcribed Image Text:1. The natural exponent \( e = 2.71828182459 \ldots \) Answer the following questions: a. Assuming we follow the standard rules for representing floating point numbers, what is the exponent required to represent \( e \) as a floating point binary number? Report your answer in both the base-2 and base-10 representations. b. How many bits of data are necessary to represent the decimal portion (i.e., mantissa) of \( \sqrt{e} \) to the fifth decimal place (1.64872)? c. Suppose you have a calculator that stores floating point numbers using a six-bit mantissa. What is the machine precision, “eps” for this calculator? d. If the calculator employs rounding, what is the largest possible relative round-off error introduced by a single calculation with the calculator from part ‘c’? e. Suppose instead that this calculator uses the following number format: \[ FL(x) = S|E|E|E|M|M|M \] - **Bit 1:** Sign of the number. - **Bits 2-4:** Biased exponent – subtract 4 to achieve the final exponent value. - **Bits 5-8:** Mantissa. Assuming that the calculator uses exact rounding, what is the expected relative error produced when performing the calculation \( \sqrt{e} \)?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education