Suppose I can generate infinitely many values of x and f(x). The functional form of f(x) is now known. Now I need the value of f'(x) at each point. What is the best way to find it with satisfactory accuracy using matlab. In short it is described below
x: 1 1.1 1.2..............................
f(x): 2 4 5...............................
f'(x):? ? ?...............................
$$ f'(x) = \frac{-f(x+2h)+8f(x+h)-8f(x-h)+f(x-2h)}{12h} + O(h^4) $$
– pitchounet Mar 26 '15 at 08:50