If this tool helped you, you can buy us a coffee ☕
输入两点坐标,快速计算直线斜率
Formulas
m = (y₂ − y₁) / (x₂ − x₁)
Distance Between Two Points: d = √[(x₂ − x₁)² + (y₂ − y₁)²]
Midpoint Coordinates: M = ((x₁ + x₂)/2, (y₁ + y₂)/2)
Angle with Positive X-axis: θ = arctan(m)
When x₁ = x₂, the line is vertical and the slope is undefined. When y₁ = y₂, the line is horizontal and the slope is 0.
y = 2x-2x + y = 0y - 2 = 2 · (x - 1)
Circle Area Calculator
Quickly calculate the area of a circle by entering the radius, diameter, or circumference. Supports custom units and precision settings.

Inverse Trigonometric Function Calculator
Accurately calculate radian values for inverse trig functions like arcsin and arccos. Supports 6 function types and custom decimal precision.

Trigonometry Calculator
Calculate six trigonometric functions from radian values with custom decimal precision.

Prime and Composite Number Calculator
Instantly identify prime, composite, or special numbers. Supports batch checking and mathematical property analysis.

Circle Area Calculator
Quickly calculate the area of a circle by entering the radius, diameter, or circumference. Supports custom units and precision settings.

Inverse Trigonometric Function Calculator
Accurately calculate radian values for inverse trig functions like arcsin and arccos. Supports 6 function types and custom decimal precision.

Trigonometry Calculator
Calculate six trigonometric functions from radian values with custom decimal precision.

Prime and Composite Number Calculator
Instantly identify prime, composite, or special numbers. Supports batch checking and mathematical property analysis.
点到直线的距离计算器
计算点到直线的垂直距离,支持两点式和一般式方程输入。
在解析几何或数学作业中,手工计算直线斜率容易出错。本工具可根据用户输入的两个点的坐标,自动计算并输出直线的斜率值,帮助快速验证结果或完成计算。斜率表示一条直线相对于横坐标轴的倾斜程度,其值等于两点纵坐标差与横坐标差的比值(m = (y₂ - y₁) / (x₂ - x₁))。
请确保输入的坐标是有效数字,不要留空或填入非数值字符。当直线垂直时,工具会提示“斜率不存在”,而非报错。所有计算均在本地浏览器完成,不会上传任何数据,请注意保护个人隐私。若需重复计算,可直接修改数值再次点击计算。
斜率 m 也等于直线倾斜角的正切值(tanθ),在已知一条直线的斜率和一点时,可写出点斜式方程:y - y₁ = m(x - x₁)。在实际解题中,若两点坐标较大,建议先用计算器得到精确斜率再代入方程。常见典型输入:点(0,0)和(5,10)得斜率2;点(-2,3)和(4,-1)得斜率 -2/3 ≈ -0.6667。