A General Formula for the Numerical Differentiation of a Function