Lines and Slope
Slope from Two Points
Compute the slope of a line through two given points using the rise-over-run formula. The slope is computed exactly as a fraction and verified by an independent re-derivation of rise and run.
slope-from-two-points
The slope formula is m = (y₂ - y₁) / (x₂ - x₁). Compute rise = y₂ - y₁ and run = x₂ - x₁ independently, then divide. An undefined slope means run = 0 (vertical line).