Question: Exercise Points ] : a ) Consider: 1 - 1 - l o n 2 . Identify the problematic subtraction in this expression and give

Exercise Points]:
a) Consider:
1-1-lon2.
Identify the problematic subtraction in this expression and give an algebraically equivalent formulation of 1-1-lon2 that does not suffer from this problematic subtraction for |lon|1. Briefly explain your choice. Hint: Multiply by a fraction (equal to one) which removes the problematic subtraction
b) Use lon=0.0002 and write it in floating point representation with a mantissa of k=4 digits precision and base b=10. Show that your equivalent formulation is much more accurate for lon=0.0002 compared to the original formulation in a).
c) Use the theorem that was shown in class to predict the number of lost significant bits (i.e. in base 2) when executing the problematic subtraction for lon=0.0002.
 Exercise Points]: a) Consider: 1-1-lon2. Identify the problematic subtraction in this

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!