Slope Calculator
Kry die helling, y-intercept en vergelyking van die lyn deur twee punte.
Resultate werk op soos jy tik.
Aangaande hierdie sakrekenaar
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.
Dikwels gevra vrae
Hoe bereken jy helling van twee punte?
Slope = (y2 -1 / (x2 -1 x1), die verandering in y gedeel deur die verandering in x. Van (0,0) tot (3,6) is die helling 6/3 = 2.
Waarom is'n vertikale lyn Vesuvius se helling ongedefinieerd?
'n Vertikale lyn het geen verandering in x nie, sodat die helling formule verdeel deur nul. Die vergelyking is x = konstante in plaas van y = mx + b.
Wat is die y-incept?
Dit is waar die lyn kruis die y-as, die b in y = mx + b, gevind van b = y1 -1 m·x1. Vir die lyn deur (0, 0) en (3, 6) is dit 0.
Wat is die hoek van helling?
Dit is die hoek wat die lyn met die horisontale vorm, gelyk aan die boogangent van die helling.'n Stoot van 2 gee ongeveer 63,4 graad.
Wat beteken'n positiewe of negatiewe helling?
'n Positiewe helling styg van links na regs, 'n negatiewe helling val, 'n helling van 0 is horisontaal, en' n vertikale lyn het 'n ongedefinieerd-hang.
Toon die sakrekenaar ook die afstand?
Ja, saam met die helling gee dit die reguitlyn afstand tussen die twee punte wat jy ingetik het.
API ← gebruik hierdie sakrekenaar van kode
Bel hierdie sakrekenaar as 'n vry JSON-punt takies wat nodig is. Stuur die veldwaardes hieronder as navraag parameters of JSON. Enigiets wat jy weglaat gebruik dieselfde verstek hierdie bladsy is vooraf gevul met; 'n onbekende parameter is 'n 400, nooit' n stil nul. Lees die volle API docs →
Einde punt:
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);
Die resultate is skattings van algemene leiding, nie net finansiële, mediese of belastingvoorligting nie.