If the changes in x-- we're going by different values, if this went from 1 to 2 and then 2 to 4-- what you'd want to do, then, is divide the change in y by the change in x, and that should always be a constant.