傾斜計算器
二点を通る直線の傾斜角,y交点,方程式を求める。
結果はタイプすると更新されます。
この計算機の情報
The slope of a line measures its steepness — the rise over the run between two points. This calculator takes two points and returns the slope, the y-intercept, the equation of the line in slope-intercept form, the angle of incline, and the distance between the points, with a plot of the line.
The slope is m = (y₂ − y₁) / (x₂ − x₁), the change in y divided by the change in x. From (0, 0) to (3, 6) that is 6 ÷ 3 = 2, so the line rises two units for every one across. The y-intercept b comes from b = y₁ − m·x₁ (here 0), giving the equation y = 2x, and the angle of incline is arctan(2) ≈ 63.4°. A positive slope rises left to right, a negative slope falls, and a slope of 0 is horizontal. A vertical line has no change in x, so its slope is undefined and its equation is x = constant.
Slope shows up as grade on a road, pitch on a roof, rate of change in a graph, and the coefficient in a linear equation. It is the single number that tells you how fast one quantity changes with another.
よくある質問
どのようにして二点から傾斜を計算しますか?
Slope = (y₂ − y₁) / (x₂ − x₁), the change in y divided by the change in x. From (0,0) to (3,6) the slope is 6/3 = 2.
垂直線の傾斜はなぜ定義されていないのか。
垂直線は x が変化しないので、斜度公式は 0 で割り切れます。その式は y = mx + b ではなく x = 定数です。
Y交差点は何ですか?
It is where the line crosses the y-axis, the b in y = mx + b, found from b = y₁ − m·x₁. For the line through (0, 0) and (3, 6) it is 0.
傾斜角はどれですか。
斜面の角度は斜面の角度と等しい。斜面の角度は2で約63.4°になる。
正斜度と負斜度はどういう意味ですか。
斜度は左から右に向かって上昇する正斜度,下降する負斜度,斜度0は水平で,垂直線は不定斜度である。
計算機は距離も表示しますか。
はい 傾斜と共に 入力した2点の間の直線距離を示します
API — コードからこの計算機を使う
この計算機を自由な JSON エンドポイントとして呼び出します。鍵は必要ありません。下のフィールド値をクエリパラメータまたは JSON として送信してください。 省略したものは、このページに既に入力されているデフォルトと同じ値を使用します。未知のパラメータは 400 で、サイレンスゼロはありません。 API ドキュメントを読む →
エンドポイント
GET https://calculator.free/api/v1/slope/
curl
curl "https://calculator.free/api/v1/slope/?x1=0&y1=0&x2=3&y2=6"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/slope/?" + new URLSearchParams({
"x1": "0",
"y1": "0",
"x2": "3",
"y2": "6"
}));
const data = await r.json();
console.log(data.results);
結果は一般的な指導のための推定であり,財務的,医療的または税務的な助言ではない。