Question: Let f(x) = e x . Write a C++ program to find the approximations to f(2.3) using central-difference formula of order O(h 2 ) with

Let f(x) = ex.

  1. Write a C++ program to find the approximations to f(2.3) using central-difference formula of order O(h2) with h=0.1, h=0.01, and h=0.001. You need to print a table like Table 6.2 and to find optimum step size from the table (minimum error).

  1. Complete your program by comparing your results in part 1 with the value f(2.3)=e2.3.

  1. Repeat part 1 using central-difference formula of order O(h4).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!