Question: 3 . 1 3 pts [ A ] - type error: Problems with Adding & Subtracting You want to calculate Z = X 3 -

3.13 pts [A]-type error: Problems with Adding & Subtracting You want to calculate Z = X3- v3 using a fake, crappy computer that rounds numbers in the floating point format + d.dd x 10+d, where each d is a decimal from 0-9, and the first d in the mantissa can't be a 0. There are no other rules (don't even worry about denormal or infinity, etc. this time). For your example, assume X =12.5 and Y =12.4.(a) Calculate the computer's value for Z the "standard" way: first cubing X (and rounding the answer back to a storable value), then cubing Y (and rounding the answer back to a storable value), then subtracting the two (and rounding that back to a storable value). Show me all your work! (b) What is the percent error in the calculation from (a)?(c) Describe for me a better way of calculating Z on this (fake, crappy) computer, and compare the percent error in your improved calculation with that from (a). Be sure to still follow all the computer rules - showing me how the computer does each individual calculation and rounding the answer back to a storable value before moving on to the next step! Hint: X3 y}=(X-Y)*(x2+XY+Y2)

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 Programming Questions!