حساب الانحدار
حدد الانحدار، ونقطة التقاطع 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.
الأسئلة المتكررة
كيف تحسب المنحدر من نقطتين؟
المنحدر = (y2 - y1) / (x2 - x1)، التغير في y مقسوما على التغير في x. من (0,0) إلى (3,6) يكون المنحدر 6/3 = 2.
لماذا لا يعرف منحدر الخط الرأسي؟
الخط الرأسي لا يتغير في x، وبالتالي فإن معادلة المنحدر تقسم على الصفر. ومعادلته هي x = ثابت بدلاً من y = mx + b.
ما هو الـ (ي)؟
وهو المكان الذي يقطع فيه الخط المحور السيني، b في y = mx + b، الذي يوجد من b = y₁ − m·x₁. وبالنسبة للخط الذي يمر عبر (0، 0) و(3، 6) فإنه 0.
ما هي زاوية الميل؟
وهي الزاوية التي يشكلها الخط مع الأفق، وهي تساوي قوس المماس للمنحدر. وينتج عن منحدر بقيمة 2 حوالي 63.4 درجة.
ماذا يعني المنحدر الإيجابي أو السلبي؟
A positive slope rises from left to right, a negative slope falls, a slope of 0 is horizontal, and a vertical line has an undefined slope.
هل تظهر الحاسبة المسافة أيضاً؟
نعم، مع المنحدر، يعطي مسافة الخط المستقيم بين النقطتين اللتين أدخلتيهما.
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);
النتائج هي تقديرات للتوجيه العام فقط، وليس المشورة المالية أو الطبية أو الضريبية.