adjust_delta function

Adjust delta for numerical differentiation