Question: 2 . 3 [ A ] - type error: Problems with Adding & Subtracting 4 ptsYou want to calculate Z = X 3 Y 3

2.3[A]-type error: Problems with Adding & Subtracting 4 ptsYou want to calculate Z = X3 Y3 using a fake, crappy computer that rounds numbers in the floating point format \pm d.dd x 10\pm d , where each d is a decimal from 09, and the first d in the number cant be a 0. For your example, assume X =12.5 and Y =12.4.(a) Calculate the computers 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 Y3=(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!