Numerical differentiation of f(x)=sin(x)