斜率计算器
输入两点 (x₁, y₁) 和 (x₂, y₂),求斜率以及过这两点的直线方程。
结果
输入数值并点击“计算”查看结果。
公式
Slope is rise over run between the two points.
The y-intercept b is where the line crosses the y-axis.
如何使用此计算器
- Enter the coordinates of two different points.
- Press Calculate to see the slope, intercept and equation.
例题
Line through (1, 3) and (3, 7)
m = (7 − 3)/(3 − 1) = 2.
b = 3 − 2·1 = 1, so y = 2x + 1.
常见问题
What does an undefined slope mean?
The two points have the same x value, so the line is vertical: its equation is x = constant.
Is slope the same as gradient?
Yes — “gradient” is the common term in the UK and Australia.