Slope from Two Points
Handbook 10.6, p. 37Find how steep a straight line is when you know two points on it.
- slope of the line, rise over runy units per x unit (unitless when both axes share a unit)
- x coordinate of the first pointany consistent unit
- y coordinate of the first pointany consistent unit
- x coordinate of the second pointany consistent unit
- y coordinate of the second pointany consistent unit
Watch out: Subtract in the same order on top and bottom (point 2 minus point 1 both times), or the sign of the slope flips.