Question: 1. Find the absolute error and the relative error for each number as it rounded to three significant digits. a. 6.239 b. 0.33333 2. Suppose

 1. Find the absolute error and the relative error for each

1. Find the absolute error and the relative error for each number as it rounded to three significant digits. a. 6.239 b. 0.33333 2. Suppose a computer has a precision of 3 and all numbers are truncated to the three most significant digits. What would be the absolute and relative error for the computation (0.1239 . 10^3) * (0.9 . 10^2)? 3. Suppose that the following two statements are executed. x= 6.239; x = x + x. The machine truncates to 3 significant digits. What is stored in x after each statement? What is the absolute and relative percent error of the value after the last statement? I 4. What will happen in Jave if we evaluate 1e20 + 1 - 1e20? What should the answer be? What is going on? Can this be fixed in this case? Is there a way to fix this in general? 5. In Java, we can store values as integers or floats. Why might you want to declare a variable as an integer? Why might you want to declare a variable as a float? (Hint: Don't over think this one]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!