Slope and Line Equation Calculator: m and b from Two Points

The slope calculator takes two points on a line, (x1, y1) and (x2, y2), and returns the slope m and the y-intercept b—that is, it writes the line in the form y = mx + b.