เครื่องคิดเลขความชัน
ค้นหาความยาวของเส้นตรงที่ผ่านผ่านจุดสองจุด
ผลลัพธ์จะปรับปรุงเมื่อคุณพิมพ์
เกี่ยวกับเครื่องคิดเลขนี้
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 เปลี่ยนแปลง ดังนั้นสูตรความชันจะแบ่งด้วยศูนย์ สมการของมันคือ x = คงที่ แทนที่จะเป็น y = mx + b
อะไรคือ y-intercept?
มันคือจุดที่เส้นตรงผ่านแกน y, b ใน y = mx + b, หาได้จาก b = y₁ − m· x₁ สำหรับเส้นตรงผ่าน (0, 0) และ (3, 6) มันคือ0
ความสูงของมันคืออะไร
It is the angle the line makes with the horizontal, equal to the arctangent of the slope. A slope of 2 gives about 63.4°.
ความชันเป็นบวกหรือเป็นลบหมายความว่ายังไง
เส้นชิดด้านบวกจะเพิ่มขึ้นจากซ้ายไปขวา เส้นชิดด้านลบจะลดลง เส้นชิดที่0จะอยู่ในแนวนอน และเส้นชิดทางแนวตั้งจะไม่มีเส้นชิดที่กำหนดไว้
เครื่องคำนวณแสดงระยะทางด้วยเหรอ
ใช่ มันแสดงความยาวของเส้นตรง ระหว่างสองจุดที่คุณใส่ไว้
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);
ผลลัพธ์เป็นเพียงการประมาณการ สำหรับคำแนะนำทั่วไปเท่านั้น ไม่ใช่การเงิน การรักษา หรือคำแนะนำเกี่ยวกับภาษี