Find the slope of a linear function