For each problem, briefly explain/justify how you obtained your answer. This will help us de- termine...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
For each problem, briefly explain/justify how you obtained your answer. This will help us de- termine your understanding of the problem and whether or not you got the correct answer. More- over, in the event of an incorrect answer, we can still try to give you partial credit based on the explanation you provide. Again, please type your solution and submit it on Gradescope! 1. (15 points) Represent each of the following using the 8-bit floating-point format (which had 3 bits for the mantissa and 4 bits for the excess-7 exponent). Show your intermediate work. (a) 3.25 (b) -81.5 (c) 1/32 2. (10 points) Consider the 8-bit floating-point format, including 3 bits for the mantissa and 4 bits for the excess-7 exponent. Show your intermediate work. (a) What 8-bit pattern represents the number -0.625= ? (b) What base-10 integer or fraction does 01001001 represent? 3. (15 points) Consider a 7-bit floating-point representation with 3 bits for the excess-3 expo- nent and 3 bits for the mantissa. (a) How would 0.275 (10) be represented in this 7-bit representation? (b) What decimal value does 0100110 represent? (c) What decimal value does 1001100 represent? 4. (10 points) To store z = (do.didi dididi+1) XBe, where 1 do 9,0 d; 9, i=1,t-1, and 3 Z22 is the base, using only t digits, it is possible to use one of the following two strategies. Chopping: ignore the digits ded+1, and . ... f(x) = do.dd-1 x Be (1) 4. (10 points) To store z = (do.dida didide+1) X B, where 1 do 9,0 d 9, i=1,-1, and Z22 is the base, using only t digits, it is possible to use one of the following two strategies. Chopping: ignore the digits ded+1, and . . Rounding: consult de to determine the approximation Edo.dd-1x B (do.dd-1 +8-) x B di f(x) = 120 animal fl(x)=do.ddt-1 X Be function (5) Let z f(x) = g x 3, where a 0 and g is the normalized, signed mantissa. Prove that the absolute error committed in using the floating point representation of z is bounded by -f(x)| (Note: Please demonstrate your logic in detail. Your proof should hold for any t, d,, and 3. Proof by providing an example is considered invalid and viewed as no attempt/blank solution!!!) (1) if fl is implemented using chopping 1) if fl is implemented using rounding 2) (2) (1 mofr) can he transformed into another 5. (30 points) The function f(x, 6) = cos(x + 5) - cos(x) can be transformed into another form, f2(x, 6), using the trigonometric formula. cos (4) cos() = -2 sin 4+1 2 sin Thus, fi and f2 have the same values, in exact arithmetic, for any given argument values and S. (3) (a) Derive f2(x, 8) using equation 3. Show that, analytically, f(a) or fa(8) are effective approximations of the function - sin(x) for & sufficiently small. (b) Verify correctness of the equation 3. (c) Calculate the g(x, 6) = f(6) + sin(x) and 92(x, 8) = f(26) + sin(x) for x = 3 and 6 = 1e 11. Which approximation of sin(x) is better? Explain why you think it is better analytically. (a) 15.0625 (b) -35.6875 (c) 86.5625 (Note: Again, please demonstrate your logic in detail. Your proof should hold universally. Proof by providing an example is considered invalid and viewed as no attempt/blank solution!!!) 2 6. (15 points) Represent the following three decimal numbers as single precision float. Show: a scientific notation representation the significand, exponent, and sign bits (32 bits total) a hexadecimal representation of these 32 bits . 7. (25 points) For the following functions, compute the relative condition numbers. Are the functions ill-conditioned at any points (answer based on the value of the relative condition number)? (a) f(x)=x+c (b) f(x) = cr (c) f(x) = r (d) f(x) = e (e) f(x) = sin(x) (f) f(x) =tan(x) (g) f(x) = log(x) (h) f(x)=(1+x) For each problem, briefly explain/justify how you obtained your answer. This will help us de- termine your understanding of the problem and whether or not you got the correct answer. More- over, in the event of an incorrect answer, we can still try to give you partial credit based on the explanation you provide. Again, please type your solution and submit it on Gradescope! 1. (15 points) Represent each of the following using the 8-bit floating-point format (which had 3 bits for the mantissa and 4 bits for the excess-7 exponent). Show your intermediate work. (a) 3.25 (b) -81.5 (c) 1/32 2. (10 points) Consider the 8-bit floating-point format, including 3 bits for the mantissa and 4 bits for the excess-7 exponent. Show your intermediate work. (a) What 8-bit pattern represents the number -0.625= ? (b) What base-10 integer or fraction does 01001001 represent? 3. (15 points) Consider a 7-bit floating-point representation with 3 bits for the excess-3 expo- nent and 3 bits for the mantissa. (a) How would 0.275 (10) be represented in this 7-bit representation? (b) What decimal value does 0100110 represent? (c) What decimal value does 1001100 represent? 4. (10 points) To store z = (do.didi dididi+1) XBe, where 1 do 9,0 d; 9, i=1,t-1, and 3 Z22 is the base, using only t digits, it is possible to use one of the following two strategies. Chopping: ignore the digits ded+1, and . ... f(x) = do.dd-1 x Be (1) 4. (10 points) To store z = (do.dida didide+1) X B, where 1 do 9,0 d 9, i=1,-1, and Z22 is the base, using only t digits, it is possible to use one of the following two strategies. Chopping: ignore the digits ded+1, and . . Rounding: consult de to determine the approximation Edo.dd-1x B (do.dd-1 +8-) x B di f(x) = 120 animal fl(x)=do.ddt-1 X Be function (5) Let z f(x) = g x 3, where a 0 and g is the normalized, signed mantissa. Prove that the absolute error committed in using the floating point representation of z is bounded by -f(x)| (Note: Please demonstrate your logic in detail. Your proof should hold for any t, d,, and 3. Proof by providing an example is considered invalid and viewed as no attempt/blank solution!!!) (1) if fl is implemented using chopping 1) if fl is implemented using rounding 2) (2) (1 mofr) can he transformed into another 5. (30 points) The function f(x, 6) = cos(x + 5) - cos(x) can be transformed into another form, f2(x, 6), using the trigonometric formula. cos (4) cos() = -2 sin 4+1 2 sin Thus, fi and f2 have the same values, in exact arithmetic, for any given argument values and S. (3) (a) Derive f2(x, 8) using equation 3. Show that, analytically, f(a) or fa(8) are effective approximations of the function - sin(x) for & sufficiently small. (b) Verify correctness of the equation 3. (c) Calculate the g(x, 6) = f(6) + sin(x) and 92(x, 8) = f(26) + sin(x) for x = 3 and 6 = 1e 11. Which approximation of sin(x) is better? Explain why you think it is better analytically. (a) 15.0625 (b) -35.6875 (c) 86.5625 (Note: Again, please demonstrate your logic in detail. Your proof should hold universally. Proof by providing an example is considered invalid and viewed as no attempt/blank solution!!!) 2 6. (15 points) Represent the following three decimal numbers as single precision float. Show: a scientific notation representation the significand, exponent, and sign bits (32 bits total) a hexadecimal representation of these 32 bits . 7. (25 points) For the following functions, compute the relative condition numbers. Are the functions ill-conditioned at any points (answer based on the value of the relative condition number)? (a) f(x)=x+c (b) f(x) = cr (c) f(x) = r (d) f(x) = e (e) f(x) = sin(x) (f) f(x) =tan(x) (g) f(x) = log(x) (h) f(x)=(1+x)
Expert Answer:
Answer rating: 100% (QA)
1 15 points a Representing 325 in the 8bit floatingpoint format Step 1 Convert 325 to binary 325 1101 Step 2 Normalize the binary representation 1101 1101 x 21 Step 3 Convert the normalized binary rep... View the full answer
Related Book For
Fundamentals of Case Management Practice Skills for the Human Services
ISBN: 978-1305094765
5th edition
Authors: Nancy Summers
Posted Date:
Students also viewed these programming questions
-
On November 12th Bloomberg reported that one euro (EUR) cost 20.1802 Mexican pesos (MXN) and that one Peruvian solas (PEN) cost 5.0592 MXN. (a) Are these exchange rates real or nominal? Briefly...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Read the case study and answer the question below with a one page response. What does a SWOT analysis reveal about the overall attractiveness of Under Armours situation? Founded in 1996 by former...
-
What are the costs of healthcare, where does the money come from, and where is it spent?
-
If you were on a spaceship traveling at 0.5c away from a star, at what speed would the straight pass you?
-
Constructing Statements from Ratio Data The following are the financial statements for Timber Company, with almost all dollar amounts missing: TIMBER COMPANY Balance Sheet December 3 1 , 2 0 1 2 Cash...
-
Briefly describe design classes: utility, control, and boundary. How do they differ from entity classes?
-
Cammie received 100 NQOs (each option provides a right to purchase 10 shares of MNL stock for $10 per share) at the time she started working for MNL Corporation four years ago when MNL's stock price...
-
The Belfood Malaysia manufactures 1 2 0 0 0 units. Belfood Malaysia sold 1 0 0 0 units. The Company has fixed manufacturing overhead of RM 2 , 0 0 0 . Direct materials cost is RM 5 per unit, direct...
-
Jorg is building an office building for Wilmington Company for $20,000,000. The contract has the following characteristics: The office building is built to the customers specifications and the...
-
Write a proposal in letter format (similar to Figure 5.9 below ) for a business you manage to attract new international clients. As part of your letter, stress any new equipment or services you offer...
-
Elemental copper, Cu, is copper colored. Elemental sulfur, S8, is yellow. What does this tell you about the color of the compound copper sulfide, CuS?
-
Does diffraction help or hinder viewing with a light microscope?
-
What are the major components of M1? What are the major components of M2? Describe each component.
-
Classify the following changes as physical or chemical. Even if you are incorrect in your assessment, you should be able to defend your choice. (a) Grape juice turns to wine. (b) Wood burns to ashes....
-
Describe what is meant by the expectations theory of the term structure of interest rates. Why isnt the expectations theory sufficient to describe the data on interest rates that we observe? What...
-
In Java8 please 3. Maximum Order Volume During the day, a supermarket will receive calls from customers who want to place orders. The supermarket manager knows in advance the number of calls that...
-
Reduction in sales All of the above 29. Belt of an electric motor is broken, it needs a. Corrective maintenance b. Scheduled maintenance c. Preventive maintenance d. Timely maintenance. 30. The...
-
Patty is completing a student internship for her associates degree in the therapeutic activities program. She asks to review the medical records of the people who were just in her projects group. You...
-
A man in his 60s comes in on the recommendation of his doctor. He had a back injury some years ago and was placed on codeine at the time. After the back injury, other things went wrong. The plant...
-
An older man has just lost his job after repeated warnings to come to work sober and seek help for his alcohol addiction. He has decided that he should get help now. Too little, too late, he says...
-
Give an example of a requirement on a computer printer.
-
Briefly describe the distinction between requirements and specification.
-
Give an example of a requirement on a digital still camera.
Study smarter with the SolutionInn App