კალკულატორი
სწორი ხაზის ორი წერტილის გადაკვეთა.
შედეგები ახლდება ტექსტის შეყვანისას.
ამ კალკულატორის შესახებ
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- ს ნაცვლად.
What is the y-intercept?
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.
What is the angle of incline?
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°.
What does a positive or negative slope mean?
პოზიტიური ხრტილი მარცხნიდან მარჯვნივ იზრდება, ნეგატიური ხრტილი კი იკლებს. 0- ს ხრტილი ჰორიზონტალურია, ხოლო ვერტიკალური ხაზის ხრტილის განსაზღვრა შეუძლებელია.
Does the calculator show the distance too?
Yes. Along with the slope it gives the straight-line distance between the two points you entered.
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);
Results are estimates for general guidance only, not financial, medical or tax advice.