Definition. For grid data , a finite difference formula is a -order accurate approximation of the derivative if .
Accuracy analysis in the independent variable
space is carried out by Taylor series comparison
In[9]:=
Dp[f[x],1]
In[11]:=
Series[ Dp[f[x],1] ,{h,0,2}] - f'[x]
In[24]:=
Table[ {(Dp[f[i],p] /. f->Q /.
h->1)/h,Limit[(Normal[Series[Dp[f[x],p],{h,0,p}]]
- f'[x])/h^p, h->0] /. f->q},{p,1,5}] //
TableForm
In[25]:=