The algorithms for the floating-point arithmetic operations in Sec. 10-5 neglect the possibility of exponent overflow or
Question:
The algorithms for the floating-point arithmetic operations in Sec. 10-5 neglect the possibility of exponent overflow or underflow.
a. Go over the three flowcharts and find where an exponent overflow may occur.
b. Repeat (a) for exponent underflow. An exponent underflow occurs if the exponent is more negative than the smallest number that can be accommodated in the register.
c. Show how an exponent overflow or underflow can be detected by the hardware.
Transcribed Image Text:
10-5 Floating-Point Arithmetic Operations Many high-level programming languages have a facility for specifying floating- point numbers. The most common way is to specify them by a real declaration statement as opposed to fixed-point numbers, which are specified by an integer declaration statement. Any computer that has a compiler for such high-level programming language must have a provision for handling floating-point arithmetic operations. The operations are quite often included in the internal hardware. If no hardware is available for the operations, the compiler must be designed with a package of floating-point software subroutines. Although the hardware method is more expensive, it is so much more efficient than the software method that floating-point hardware is included in most computers and is omitted only in very small ones. Basic Considerations Floating-point representation of data was introduced in Sec. 3-4. A floating- point number in computer registers consists of two parts: a mantissa m and an exponent e. The two parts represent a number obtained from multiplying m times a radix r raised to the value of e; thus mx r The mantissa may be a fraction or an integer. The location of the radix point and the value of the radix r are assumed and are not included in the registers. For example, assume a fraction representation and a radix 10. The decimal number 537.25 is represented in a register with m = 53725 and e = 3 and is interpreted to represent the floating-point number .53725 × 10³
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 66% (6 reviews)
Answered By
Bhartendu Goyal
Professional, Experienced, and Expert tutor who will provide speedy and to-the-point solutions. I have been teaching students for 5 years now in different subjects and it's truly been one of the most rewarding experiences of my life. I have also done one-to-one tutoring with 100+ students and help them achieve great subject knowledge. I have expertise in computer subjects like C++, C, Java, and Python programming and other computer Science related fields. Many of my student's parents message me that your lessons improved their children's grades and this is the best only thing you want as a tea...
3.00+
2+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Cloud computing offers a way of delivering computing resources instantly, on-demand, and cheaply. Cloud computing attracts companies of different sizes. Citrix Cloud is a platform that hosts and...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
We saw in Section 25.6 that DCC can be used to form a peptide bond. We explored the mechanism, and we saw that DCC activates the COOH moiety so that it readily undergoes nucleophilic acyl...
-
The beta for a certain stock is 1.15, the risk-free rate is 5 percent, and the expected return on the market is 13 percent. Complete the following table to decompose the stocks return into the...
-
Find a 95% CI for the population mean concentration? Pharmacology Suppose we want to estimate the concentration (g/mL) of a specific dose of ampicillin in the urine after various periods of time. We...
-
The three bars are made of A-36 steel and form a pin-connected truss. If the truss is constructed when T 1 = 50F, determine the force in each bar when T 2 = 110F. Each bar has a cross-sectional area...
-
Following the 1990 Iraqi invasion of Kuwait, the price of crude oil soared, as did retail gasoline prices. This led the major U. S. oil companies to try to hold down their reported earnings. The oil...
-
What would be the value of x after the following statements were executed? int x; for (x=0; x
-
Repeat Prob. 10-18 for signed-magnitude binary numbers. Prob. 10-18 Derive an algorithm in flowchart form for the comparison of two signed binary numbers when negative numbers are in signed-2's...
-
Derive an algorithm in flowchart form for the comparison of two signed binary numbers when negative numbers are in signed-2's complement representation: a. By means of a subtraction operation with...
-
Arthur and Cora are married and have 2 dependent children. They have a gross income of $95,000. Their allowable deductions for adjusted gross income total $4,000, and they have total allowable...
-
Chemistry is taught at five high schools in the Santa Rosa Unified School District. The district has just received a grant of 100 microscopes which are to be apportioned to the five high schools...
-
a. How many different ways can a voter rank 3 candidates (no ties are allowed)? b. How many different ways can a voter rank 4 candidates (no ties are allowed)? c. How many different ways can a voter...
-
In Problems 15-18, use Hamilton's plan to apportion the new seats to the existing states. Then increase the number of seats by one and decide whether the Ala bama paradox occurs. Assume that the...
-
Chemistry is taught at five high schools in the Santa Rosa Unified School District. The district has just received a grant of 100 microscopes which are to be apportioned to the five high schools...
-
Use this information to answer the questions in Problems 12-17. How many votes would be necessary for a majority? In voting among three candidates, the outcomes are reported as: (BAC) (CAB) (CBA) 3 2...
-
Suppose you can earn 10 percent on an investment rather than 8 percent. After 20 years, the future value will be 25 percent greater. True or false? Explain.
-
Estimate a range for the optimal objective value for the following LPs: (a) Minimize z = 5x1 + 2x2 Subject to X1 - x2 3 2x1 + 3x2 5 X1, x2 0 (b) Maximize z = x1 + 5x2 + 3x3 Subject to X1 + 2x2 +...
-
Implement the Moore state machine described by the following state table using the programmable logic block shown in Figure 5-13. Your answer should include the coniguration bits for the logic block....
-
For the programmable logic block shown in Figure 5-13, show the necessary configuration settings to implement each of the following types of circuits. You can assume that the upper data input of each...
-
Use Shannons expansion theorem to express the following functions in terms of C and C. (a) F(A,B,C) (b) F(A,B,C) = AB + BC + AC = m(0,2,3,5,6)
-
University Car Wash purchased new soap dispensing equipment that cost $261,000 including installation. The company estimates that the equipment will have a residual value of $27,000. University Car...
-
The production department of Zan Corporation has submitted the following forecast of units to be produced by quarter for the upcoming fiscal year: Units to be produced 1st 2nd 3rd 4th Quarter Quarter...
-
Josh and Nancy don't have a portable cooler, so they put a bunch of ice in a big clear plastic tupperware to take to the beach. The tupperware holds 0 . 5 9 kg of ice that was originally at a...
Study smarter with the SolutionInn App