Каляндар адлегласці паміж двума кропкамі
Знайдзіце адлегласць па прамой паміж двума кропкамі на плоскасці.
Вынікі абнаўляюцца падчас уводу.
Пра гэты калькулятар
the distance formula, d = √((x₂ − x₁)² + (y₂ − y₁)²), is simply the Pythagorean theorem applied to a grid: the horizontal and vertical gaps are the two legs of a right triangle and the distance is the hypotenuse. Between (0, 0) and (3, 4), Δx = 3 and Δy = 4, so d = √(3² + 4²) = √(9 + 16) = √25 = 5The distance formula, This is the everyday tool for map distances, the length of a line segment, the magnitude of a vector, and nearest-neighbor comparisons in data.This calculator finds the straight-line distance between two points (x₁, y₁) and (x₂, y₂) using the distance formula, and also reports the horizontal change (Δx), the vertical change (Δy), and the midpoint of the segment, with a plot of the two points.The distance formula, d = √(x₂ − x₁)² + (y₂ − y₁)²), is simply the Pythagorean theorem applied to a grid: the horizontal and vertical gaps are the two legs of a right triangle and the distance is the hypotenuse. Between (0, 0) and (3, 4), Δx = 3 and Δy = 4, so d = √(3² + 4²) = √(9 + 16) = √25 = 5. Because the differences are squared, the order of the points does not change the result, and negative coordinates work fine.The distance formula, d = √(x₂ − x₁)² + (y₂ − y₁)²), is simply the Pythagorean theorem applied to a grid: the horizontal and vertical gaps are the two legs of a right triangle and the distance is the hypotenuse. Between (0, 0) and (3, 4), Δx = 3 and Δy = 4, so d = √(3² + 4²) = √(9 + 1
Частыя пытанні
Якая формула адлегласці?
Гэта d = √( (x2 − x1) 2 + (y2 − y1) 2). Паміж (0, 0) і (3, 4) адлегласць √( 9 + 16) = √25 = 5.
Як гэта звязана з тэорыяй Піфагора?
Гарызантальныя і вертыкальныя прабелы ўтвараюць дзве часткі правага трыкутнікадлегласць з'яўляецца яго гіпатэнусам — таму формула адлегласці — піфагораўская формула на сетцы.
Што такое x і y?
Гэта гарызантальныя і вертыкальныя адрозненні паміж кропкамі x2 − x1 і y2 − y1 — дзве часткі правага трыкутніка за адлегласцю.
Паказваць сярэдзіне?
Так. Акрамя адлегласці, якая паказвае сярэднюю кропку, гэтая каардыната знаходзіцца ў сярэдзіне шляху паміж двума кропкамі.
Ці мае значэнне парадак пунктаў?
Не. Адрозненні квадратныя, таму змяненне двух кропак дае аднолькавыя адлегласці.
Ці можа ён працаваць з адмоўнымі каардынатамі?
Так. Працуюць любыя рэальныя каардынаты, уключаючы адмоўныя і дзесятковыя - квадратура захоўвае дадатныя адлегласці.
API - выкарыстаць гэты калькулятар з кода
Вызваленне гэтага калькулятара як вольнага канцавага пункта JSON - не патрабуецца ключ. Перадача значэнняў палёў ніжэй як параметраў запыту або JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Прачытаць поўную дакументацыю API →
Канчатковая кропка
GET https://calculator.free/api/v1/distance-two-points/
curl
curl "https://calculator.free/api/v1/distance-two-points/?x1=0&y1=0&x2=3&y2=4"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/distance-two-points/?" + new URLSearchParams({
"x1": "0",
"y1": "0",
"x2": "3",
"y2": "4"
}));
const data = await r.json();
console.log(data.results);
Вынікі ацэнкі выкарыстоўваюцца толькі для агульных кірункаў, а не фінансавых, медыцынскіх або падатковых кансультацый.