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 

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

1 Expert Approved Answer
Step: 1 Unlock

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

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 Programming Questions!