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?
-
Which of the following molecules may be polar? (a) CH3Cl (C3J, (b) HW2 (CO)10 (D4h), (c) SnCl4 (Td).
-
Repeat Problem 15 using the universal JFET bias curve. In problem 15 For the network of Fig. 7.92, determine: 16 V 2.2 k 1a DSs6 mA DS 2.2 k 6-4 V
-
The United Nations Building in New York is approximately \(87.5 \mathrm{~m}\) wide and \(154 \mathrm{~m}\) tall. (a) Determine the drag on this building if the drag coefficient is and the wind speed...
-
1. Is the pressure for Richard Branson to change Virgins business strategy coming from the internal or external environment? 2. In order to better compete with its rivals, should Virgin focus on a...
-
Sunspot Beverages, Limited, of Fiji uses the weighted-average method of process costing. It makes blended tropical fruit drinks in two stages. Fruit juices are extracted from fresh fruits and then...
-
Top Quality ApplianceLong Beach has just purchased a franchise from Top Quality Appliance (TQA). TQA is a manufacturer of kitchen appliances. TQA markets its products via retail stores that are...
-
Financial accounting and disclosure decisions had a great impact on the users of financial reports. Critically discuss the impact of disclosure choice on the investment decisions of financial...
-
The term 'talent management' is more recently being used to describe the challenge of getting the right person in the right job at the right time. Is talent management just a new term to describe the...
-
Apply Porters Five Forces to the fast food industry in the US? Discuss 1.Threat of new entrant 2.Bargaining power of suppliers 3.Bargaining power of buyers 4.Threat of substitute products or services...
-
The Wilson Bros company has grown dramatically from their humble beginnings in Brandon Manitoba. As they grew, they purchased their competition, and they are very proud of the fact that they have...
-
What are your current leadership style and traits? Participative Leadership How did you arrive at the conclusions above - e.g. own reflections, feedback from peers, colleagues, etc. What advantages...
-
A study is done to determine if drinking coffee before taking a math exam has an impact on performance. The experiment is designed as follows: 1 class of thirty students is treated as a control group...
-
Use formal charge to choose the best Lewis structure for CH3SOCH3 H: H a) H-C-S-C-H _d__d H: H c) H-C-S-C-H H HH b) H-C-S-C-H 1 H :: H d) H-C=S-C-H H 1 H
-
In the simple quantity theory of money, what will lead to an increase in aggregate demand? In monetarism, what will lead to an increase in aggregate demand?
-
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...
-
After successful stretches at Target and Apple, it seemed as though Ron Johnson was a master marketer. But things went sour quickly after JC Penney hired him as its CEO. Johnsons attempt to reinvent...
-
Sharee Garza developed a new type of space heater that is quieter and safer than previous generations of space heaters. People living in small spaces, such as apartments or dorm rooms, are the target...
-
In 1995, two dermatologists, Dr. Katie Rodin and Dr. Kathy Fields, developed what they believed was a medical breakthrough to fight acne. Their mission: to help millions of people rid themselves of...
Study smarter with the SolutionInn App