b) = (d1-d0)/ (sx2/nx+sy2/ny)