I-Calculator ye-Slope
Thola i-slope, i-y-intercept kanye ne-equation yelayini edlula izinkomba ezimbili.
Iziphetho zivuselelwa uma ubhala.
Malunga nale khadi
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.
Imibuzo ebuzwa kaningi
Ungabala kanjani ukuphakama kusuka ezindongeni ezimbili?
Isimo sezulu = (y2 − y1) / (x2 − x1), ushintsho e y luhlukaniswe ngoshintsho e x. Kusuka ku (0,0) kuya ku (3,6) isimo sezulu singu 6/3 = 2.
Kungani i-slope yomgwaqo omile ingazibonakalisi?
Umgwaqo omile awushintshi x, ngakho-ke ifomu lokugqwala lihlukaniswa nge-zero. Ukulinganisa kwayo yi x = eqhubekayo endaweni ye y = mx + b.
Yini i-y-intercept?
Kulapho umgwaqo udlula khona umgwaqo ohamba phambili, i-b ku-y = mx + b, etholakele kusuka ku-b = y₁ − m·x₁. Umgwaqo odlula (0, 0) no (3, 6) u-0.
Yini i-angle yokugqwala?
Le yi-angle i-line eyenza nge-horizontal, elingana ne-arctangent ye-slope. I-slope engu-2 inikeza cishe i-63.4°.
Yini okusho ukuthi i-slope ephumelelayo noma elahlekile?
Isimo esilungile sokwehla kusuka ekhohlo kuya kwesokudla, isimo esibi sokwehla, isimo esingu-0 sihamba ngokuqondile, futhi umgwaqo omile unesimo esingacaciswanga.
Ingabe i-calculator ibonisa ubude?
Yebo. Ngokuhambisana ne-slope inikeza ubude be-line eqondile phakathi kwezinhlamvu ezimbili ozingenise.
API — sebenzisa le calculator kusuka kukhodi
Nquma le calculator njenge JSON evulekile yendawo yokuqeda - akukho isithonjana esidingekayo. Thumela amaxabiso endawo ngezansi njengezilungiselelo zombuzo noma i-JSON. Noma yini ongayishiya isebenzisa iphutha elifanayo elifakwe ngaphambili lekhasi; ipharamitha engaziwa yi-400, ayikho i-zero emnyama. Funda i-API egcwele →
Ingxenye yendawo
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);
Izibalo ziyisilinganiso esisetshenziswa ukuqondisa kuphela, hhayi ukucebisa ngezimali, ukwelashwa noma ukukhokha.