Calculates a numerical derivative for any polynomial funtion with accuracy determined by the value of delta x.