Question: please help me with the attached question below. 5. In Homework 8 we looked at the finite difference approximation of f' (x). f (at h)
please help me with the attached question below.

5. In Homework 8 we looked at the finite difference approximation of f' (x). f (at h) = f ( 2) + f' (x) h+ = f" ( 2) h2 + 0(h3). Rearranging terms, and dividing by h leads to D (h) = J(ath) - f(x) h = f' (x) + = f"(2)h + 0(h2). Find constants a and S such that A(h) = aD(h/2) + BD(h) = f' (a) + 0(h2) (similar to convergence acceleration in Chapter 2, we are using our knowledge of the be- haviour of the error to get a better approximation!) Write a program to test this for f(x) = cos(mx) at x = 1/3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
