Računalo nagiba
Najdi nagib, Y-odseček in enačbo črte skozi dve točki.
Rezultati posodabljajo, ko tipkate.
O tem kalkulatorju
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.
Pogosta vprašanja
Kako izračunate nagib od dveh točk?
Nagib = (y2−y1) / (x2−x1), sprememba y, deljena s spremembo x. Od (0,0) do (3,6) je nagib 6/3 = 2.
Zakaj je navpična črta nedefinirana?
Navpična črta nima spremembe v x, zato se nagibna formula deli z ničlo. Njena enačba je x = konstantna namesto y = mx + b.
Kaj je odseček z Y?
To je, kjer črta prečka y-os, b v y = mx + b, najdemo iz b = y1 − m· x1. Za črto skozi (0, 0,) in (3, 6) je 0.
Kakšen je kot nagibanja?
To je kot, ki ga ustvarja črta s vodoravno, enako arktangent nagiba. Nagib 2 daje približno 63,4°.
Kaj pomeni pozitiven ali negativen pogib?
Pozitiven nagib se dvigne z leve na desno, negativen nagib pada, nagib 0 je vodoraven, navpična črta pa ima nedefiniran nagib.
Ali kalkulator kaže tudi razdaljo?
Skupaj z nagibom daje naravno razdaljo med dvema točkama, ki sta jo vnesli.
API – uporabi ta kalkulator iz kode
Poišči ta kalkulator kot brezplačni končni cilj JSON – ni potreben ključ. Pošljite spodnje vrednosti polja kot parametre za poizvedovanje ali JSON. Vse, kar opustite, uporablja enako privzeto. Ta stran je napolnjena z; neznani parameter je 400, nikoli ne tiho ničlo. Preberite celoten API docs →
Končna točka
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);
Rezultati so ocene za splošne smernice, ne pa za finančne, zdravniške ali davčne nasvete.