Question: Please solve a ,b,c and c Exercise 2.5.10 Learn more about your computer's arithmetic by running the MATLAB programs. (a) What do you learn from
Exercise 2.5.10 Learn more about your computer's arithmetic by running the MATLAB programs. (a) What do you learn from running the following program? a = 1; u 1; while b-= a u = .5*u; b-a+ u; end (b) What does this one tell you? while a-= Inf a- 10*a end To get a more precise result, replace the 10 by a 2. You might find help informative. inf (c) What does this one tell you? while a 0 a= .1*a end The outcome of this one is probably different from what you expected, based on the information given in the text. The IEEE standard allows gradual underflow through the use of subnormal numbers, once the minimum exponent is reached. (d) What kind of arithmetic does MATLAB appear to be using? To learn more about your computer (as used by MATLAB) try help computer, help inf, and help nan, for example
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
