Question: I am not sure how to code this, I know what values I'm supposed to get back but I need the code 2. Computing (ez-1)/z.

I am not sure how to code this, I know what values I'm supposed to get back but I need the code
2. Computing (ez-1)/z. Consider two algorithms for the evaluation of f(x) = (ez 1)/x: Algorithm A else end Algorithm B else f = (y-1)/ logy end Use Matlab to calculate f(z) for x = 10-t,t = 5, , 16 with both algorithms Tabulate your results. Comment on the results. Which algorithm produces the better answers? To try and explain what is happening consider the calculation of f(x) for z = 9 10-8 and a machine epsilon approximately 6 * 10-8 by both algorithms A and B. Now assume that both expx and logy are computed with a relative error not exceeding the machine epsilon and that one additional digit is used in the computation. Verify that Algorithm B performs well because of cancellation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
