Added guard for zero length interval when computing finite difference approximations of gradients.
Added guard for zero length interval when computing finite difference approximations of gradients.

lawmurray/Birch,lawmurray/Birch,lawmurray/Birch