Question: Consider f(x) = (ex - 1)/(2x). Let x = 1e-10 and assume double precision. (a) When evaluated in double precision, exp (2*x) is 1.000000000200000.
Consider f(x) = (ex - 1)/(2x). Let x = 1e-10 and assume double precision. (a) When evaluated in double precision, exp (2*x) is 1.000000000200000. Without using the exp function, how would you obtain this value? (b) Describe an approach for computing (x) = (ex 1)/(2x) such that loss of significance is avoided when x is near zero. (c) Using your approach, what would you obtain with x = 1e-10 ?
Step by Step Solution
3.41 Rating (157 Votes )
There are 3 Steps involved in it
The image presents a mathematical problem with three parts focusing on the function fx frace2x 12x and particularly on the evaluation of this function ... View full answer
Get step-by-step solutions from verified subject matter experts
