حسابی دووری نێوان دوو خاڵ
دۆزینەوەی دووری هێڵێکی ڕاست لە نێوان دوو خاڵدا لە سەر ڕووکاری پەڕەکە
ئەنجامەکان نوێدەکرێنەوە کاتێک کە نوسیت
دەربارەی ئەم ژمێرە
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.This calculator 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 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 is the everyday tool for map distances, the length of a line segment,
پرسیاری زۆر کراوە
فۆرمۆڵی دووریی چیە؟
.ئەمە d = √((x2 − x₁)² + (y₂ − y₁)²) یە. لە نێوان (٠،٠) و (٣،٤)دا دوورییەکە √(٩ + ١٦) = √٢٥ = ٥
چۆن پەیوەندی بە جیاکاری فیثاگۆرسەوە هەیە؟
بەشی ئاسۆیی و ئاسۆیی دوو بەشی سێگۆشەی ڕاست پێکدەهێنن، وە دوورییەکە هیپۆتینۆسەکەیە - بۆیە فۆڕمۆڵی دوورییەکە فێتاگۆراسە لەسەر ڕیشەی سێگۆشە.
دای ئێکس و دای ێێ کێ یە؟
ئەوان جیاوازی ئاسۆیی و ئاسۆیی نێوان خاڵەکانن، x2 - x1 و y2 - y1 دوو بەشی سێگۆشەی ڕاستە لە پشت دوورییەکە.
ئایا ئامرازەکە خاڵی ناوەڕاست نیشان دەدات؟
بەڵێ، لە نزیکەوە دوورەکە بەشی ناوەڕاستی دەداتێ، کۆدەکان بەڕاستی نیوەی نێوان دوو خاڵەکانن
ئایا ڕێژەی خاڵەکان گرنگە؟
نەخێر، جیاوازیەکە دووجایە، بۆیە گۆڕینی دوو خاڵ هەمان دووری پێدەدات
ئایا دەتوانیت کۆدێکتی نەرێنی بەکار بهێنیت؟
بەڵێ. هەر کۆدێکتێکی ڕاستەقینە کاردەکات، لەوانەش نەگبەت و دەقەکان - چوارگۆشەکە هەموو دوورەکان بە پۆزەتیڤ دەهێڵێتەوە
API - ئەم ژمێرەرانە لە کۆد بەکاربهێنە
ئەم ژمێرەرە بانگ بکە وەک خاڵێکی کۆتایی JSON - هیچ کێڵگەیەک پێویست ناکات. بایەخی بەشی خوارەوە بنێرێت وەک پارامەتری پرسیار یان JSON. پەڕەی زانیارییەکانی 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);
ئەنجامەکان تەنها بۆ ڕێنمایی گشتین، نەک بۆ ڕاوێژی دارایی، پزیشکی یان باج.