What is the formula for calculating the slope of a straight line given the two-point coordinates of the line?

What is the formula for calculating the slope of a straight line given the two-point coordinates of the line?


A (x1, Y1) B (X2, Y2), then AB slope = (y1-y2) / (x1-x2)



The slope k of the line satisfies - 1
Why not equal pie


The range of the inclination angle of the line is 0



On the slope of a straight line
For example, two points (3.2) (– 4.1)
How can I determine whether it's 1-2 / - 4-3 or 2-1 / 3 - (- 4) when I calculate it according to the slope formula?


1-2 / - 4-3 or 2-1 / 3 - (- 4) is OK,