If I want to compute an approximation of the derivative of a simple function like $\cos$ and I can choose between finite differences and the derivative of the polynomial interpolating some given points, what is the best method to do it?
EDIT: By the best method, I mean the method by which I can obtain the most precise approximation of the derivative.