Page 1 of 1

I just need (c).

Posted: Wed May 11, 2022 6:33 am
by answerhappygod
I just need (c).
I Just Need C 1
I Just Need C 1 (34.71 KiB) Viewed 32 times
I Just Need C 2
I Just Need C 2 (113.13 KiB) Viewed 32 times
SET A = a2 + 46 IF A=0 SET A TO :20 SET B TO B = 2:01/a - 10 SET « TO (A + Bn)(a/2)" RETURN 3 ELSE SET 01 TO (a + VA)/2 SET 12 TO (a - VA)/2 SET A TO your value of A from 3(a). SET B TO your value of B from 3(a). SET « TO AO + Be RETURN C .

6. In this question, the rounding errors incurred by the exact-formula algorithm are analysed. You may assume that a, b, 20, 21 are all integers no larger in magnitude than 106 and that the computer is using double precision. (a) Each time a computer calculates a value x which is not in the registry, instead of storing the true value x, it stores the computed value x Set 8c to be the relative rounding error incurred by doing the computation i.e. C-2 02 T [2] Express x in terms of x and 8x, and give bounds on o, in terms of machine precision t (so t = 52 for double precision). (b) Suppose that a and b are such that A=0. By expressing the values computed at each stage in the form given in (a), show that the total rounding error incurred by the exact-formula algorithm is 0(2-), so the algorithm does not significantly amplify the rounding errors. (c) Analyse the rounding errors incurred by the exact-formula algorithm when A 70. (d) For which values of a, b, 10, 11, n would you expect this algorithm to be the most susceptible to rounding errors? Is the size of the error a concern in this case? [5] [7] [4]