Question: Consider a FAKE computer that rounds any real number into the 3-significant figure, floating- point decimal format d.dd x 10d-5, where each d is
Consider a "FAKE" computer that rounds any real number into the 3-significant figure, floating- point decimal format d.dd x 10d-5, where each d is a decimal from 0-9, but there are no other restrictions (no "infinity", no "forcing a number to be denormal if the d in the exponent is 0"). (a) What is the largest number (realmax) you could store in this FAKE computer? (b) What is the smallest positive number (realmin) you could store in this FAKE computer that is not denormal (i.e. maintains all 3 significant figures)? (c) What is the value of machine precision (e)? Now let's say you want to add the following four numbers with this FAKE computer: S = 1.43 + 173 + 41.3 + 6.41 (The real, exact sum is clearly 222.14) (d) What is the final value of S in the fake computer if you did the sum in the left-to-right order written above? What is the percent error in the value of S (compared to the real sum)? (e) Demonstrate the ideal order you should add the four numbers to provide the most accurate value of S. What is that final value of S, and what is its percent error?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
