Distance · midpoint · equation of a line · drawing

|AB| = √[(x_B−x_A)² + (y_B−y_A)²]. Midpoint: ((x_A+x_B)/2, (y_A+y_B)/2). Slope: a = (y_B−y_A)/(x_B−x_A).
Basic calculations on points in the coordinate plane. The distance between two points and :
The midpoint of a segment is the average of the coordinates: . The slope of the line through these points: , with its slope-intercept equation .
The calculator draws both points, the segment and its midpoint on the coordinate plane.
First the slope a = (y_B − y_A)/(x_B − x_A), then the intercept b by substituting one point into y = ax + b. The calculator returns the finished equation.
The line is vertical (x = const) and has no slope — the calculator detects this case and gives the equation in the form x = c.
Teaching? Embed this calculator on your site.
Free widget — paste it on your school site, blog or notes. It links to the full version.