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.
- 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).
- Complete your program by comparing your results in part 1 with the value f(2.3)=e2.3.
- 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
