Slope Calculator
Pezani mtunda, y-kugwirizana ndi kuyerekezera la line mwa zigawo ziwiri.
Zithunzizi zimasintha monga momwe mumalemba.
Zachidule
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.
Mafunso ofunsidwa nthawi zambiri
Kodi mungatani kuti muwerenge mtunda pakati pa zigawo ziwiri?
Slope = (y₂ − y₁) / (x₂ − x₁), kusintha kwa y kugawidwa ndi kusintha kwa x. Kuchokera ku (0,0) mpaka (3,6) kuzungulira ndi 6/3 = 2.
N’chifukwa chiyani ndi mtunda wa mzere wozungulira undefined?
Mzere wozungulira susintha m'lifupi, chifukwa chake formula yopanga mtunda imagawanitsa ndi zero. Mzerewo umafanana ndi x = constant, osati y = mx + b.
Kodi ndi chiyani y-kumenya?
Ndipo komwe mzere umapita ku y-axis, b mu y = mx + b, wopezeka kuchokera ku b = y₁ − m·x₁. Kwa mzere wopita ku (0, 0) ndi (3, 6) ndi 0.
Kodi ndi chiyani angular of incline?
Ndi mtunda womwe mzere umapanga ndi mtunda wozungulira, wofanana ndi arctangent wa mtunda. Mtunda wa 2 umapatsa pafupifupi 63.4 °.
Kodi ndi chiyani chothandiza kapena cholakwika?
A zopindulitsa mtunda umakwera kuchokera kumanzere kupita kumanja, zopindulitsa mtunda woipa amagwa, mtunda wa 0 ndi wozungulira, ndi mtunda wozungulira ali ndi mtunda undefined.
Kodi calculator amasonyeza kuwala kwambiri?
Ndikofunika. Pamodzi ndi kugwa amapatsa mtunda wa mzere woyenera pakati pa zigawo ziwiri inu anaika.
API — kugwiritsa ntchito izi calculator kuchokera code
Kuti mudziwe zambiri, pitani ku www.json.org/json.html. Kuti mudziwe zambiri, pitani ku www.json.org/json.html. Chomweko chilichonse chimene mumasiya chimagwiritsa ntchito mfundo yoyamba yomweyi yomwe tsambali limagwiritsa ntchito; mfundo yosadziwika ndi 400, siyiyenera kukhala zero yosadziwika. Onani zonse API docs →
Chithunzi
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);
Zimenezi ndi zowerengera zokhudzana ndi malangizo amtundu uliwonse, si zokhudzana ndi ndalama, zamoyo kapena zokhudzana ndi ndalama.