Calculates for each iteration the slope of a straight curve between depths just above and below the desired point.
Useful links