Àwọn ààtò àwọn ààtò àwọn ààtò

Wá àwọn ìsàlẹ̀-ilà àwọn ààyè-iṣẹ́ àti àwọn ààyè-iṣẹ́ àti àwọn ààyè-iṣẹ́.

Àwọn ìṣàmúlò-ètò —
Àwọn ìṣàfarawé àwọn ìṣàmúlò-ètò —
Àwọn ìyipadà ìsàlẹ̀-ilà —
Àwọn ààyè-iṣẹ́ —

Àwọn Àtòjọ-ẹ̀yàn àwọn ìṣàmúlò-ètò

Ńlà àwọn àwọn ààtò àtòjọ-ẹ̀yàn yìí?

Àkóónú ìṣàmúlò-ètò yìí

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.

This is the everyday tool for map distances, the length of a line segment, the magnitude of a vector, and nearest-neighbour comparisons in data. Any two points on a plane have exactly one straight-line distance between them.

Àwọn Àtòjọ-ẹ̀yàn

Kini ìṣàmúlò-ètò ìjánu-ìjánú?

Ò jẹ́ d = √((x₂ − x₁)² + (y₂ − y₁)²). Nínú àwọn ààyè (0,0) àti (3,4) ní àkókò ni √(9 + 16) = √25 = 5.

Bawo ni o ṣe sopọ mọ àwọn àwọn àkọlé Pythagorean?

Awọn iyatọ horizontal ati vertical ṣe awọn igun meji ti triangulẹ kan, ati pe ibiti o wa ni ipotenuse rẹ - nitorinaa, ibiti o wa ni ifomu Pythagoras lori gridi.

Kiní nínú àwọn àwọn ààyè-iṣẹ́?

Wọn ni awọn iyatọ horizontal ati vertical laarin awọn aaye, x2 − x1 ati y2 − y1 — awọn ẹsẹ meji ti triangulẹ ti o tọka si ni ẹhin igun gigun.

Àwọn àwọn ààtò àtòjọ-ẹ̀yàn

Yà. Nínú ààyè tí o fi ààyè ààrin-òkè pamọ́, àwọn ààyè tí a fi pamọ́ nínú àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè

Àwọn ààtò àwọn àwọn ààtò àwọn ààtò

Kò. Àwọn ìyatọ̀ ní àwọn àwọn ààyè àwọn ààyè, láti jẹ́ pé ìjánu-ìjánú àwọn ààyè mejì náà náà ń fi àwọn ìjánu-ìjánú àwọn ààyè náà pamọ́.

O lè ṣakoso àwọn àkóónú àìdálẹ̀?

Yes. Any real coordinates work, including negatives and decimals — the squaring keeps every distance positive.

❤️ Àwọn àkọ́lé Calculator.Free? Fi pamọ́

𝕏  X Facebook Reddit
API — ló àwọn ìṣàmúlò-ètò yìí láti inú ìṣàmúlò-ètò

Fi àwọn ìṣàmúlò-ètò yìí kọ̀ǹpútà yìí láti jẹ́ ààyè-iṣẹ́ JSON tí a tí fi pamọ́ - kò ní bọ́tìnì kan tí a fẹ́. Fi àwọn fálù ààyè-iṣẹ́ sílẹ̀ sí bí àwọn àwọn ìṣàmúlò-ètò àti JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Ka àwọn àkọlé API kíkún →

Àwọn Ààyè Ìjánu-ìṣàmúlò-ètò

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);

Results are estimates for general guidance only, not financial, medical or tax advice.