new file: Files/flashplayer_32_sa.exe new file: favicon.ico new file: globe.gif new file: imgs/download.png new file: imgs/zuck.jpg new file: index.html new file: other.ico new file: script.js new file: site.webmanifest new file: sitemap.html new file: styles/backround.css new file: styles/border.css new file: styles/fonts/Titillium_Web/OFL.txt new file: styles/fonts/Titillium_Web/TitilliumWeb-Black.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Bold.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-BoldItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-ExtraLight.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-ExtraLightItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Italic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Light.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-LightItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Regular.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-SemiBold.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-SemiBoldItalic.ttf new file: styles/fonts/webfontkit-20221027-163353/generator_config.txt new file: styles/fonts/webfontkit-20221027-163353/specimen_files/grid_12-825-55-15.css new file: styles/fonts/webfontkit-20221027-163353/specimen_files/specimen_stylesheet.css new file: styles/fonts/webfontkit-20221027-163353/stylesheet.css new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-demo.html new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff2 new file: styles/fonts/webfontkit-20221027-165950/generator_config.txt new file: styles/fonts/webfontkit-20221027-165950/specimen_files/grid_12-825-55-15.css new file: styles/fonts/webfontkit-20221027-165950/specimen_files/specimen_stylesheet.css new file: styles/fonts/webfontkit-20221027-165950/stylesheet.css new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-demo.html new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff2 new file: styles/style.css new file: tools/2048/.gitignore new file: tools/2048/.jshintrc new file: tools/2048/CONTRIBUTING.md new file: tools/2048/LICENSE.txt new file: tools/2048/README.md new file: tools/2048/Rakefile new file: tools/2048/favicon.ico new file: tools/2048/index.html new file: tools/2048/js/animframe_polyfill.js new file: tools/2048/js/application.js new file: tools/2048/js/bind_polyfill.js new file: tools/2048/js/classlist_polyfill.js new file: tools/2048/js/game_manager.js new file: tools/2048/js/grid.js new file: tools/2048/js/html_actuator.js new file: tools/2048/js/keyboard_input_manager.js new file: tools/2048/js/local_storage_manager.js new file: tools/2048/js/tile.js new file: tools/2048/meta/apple-touch-icon.png new file: tools/webretro/cores/neocd_libretro.js new file: tools/webretro/cores/neocd_libretro.wasm new file: tools/webretro/cores/nestopia_libretro.js new file: tools/webretro/cores/nestopia_libretro.wasm new file: tools/webretro/cores/o2em_libretro.js new file: tools/webretro/cores/o2em_libretro.wasm new file: tools/webretro/cores/opera_libretro.js new file: tools/webretro/cores/opera_libretro.wasm
223 lines
10 KiB
HTML
223 lines
10 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en"><!-- #BeginTemplate "/Templates/Main.dwt" --><!-- DW6 -->
|
||
|
||
<!-- Mirrored from www.mathsisfun.com/algebra/distance-2-points.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 01:00:30 GMT -->
|
||
<head>
|
||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||
|
||
<!-- #BeginEditable "doctitle" -->
|
||
<title>Distance Between 2 Points</title>
|
||
<meta name="Description" content="Math explained in easy language, plus puzzles, games, quizzes, worksheets and a forum. For K-12 kids, teachers and parents.">
|
||
|
||
<!-- #EndEditable -->
|
||
<meta name="keywords" content="math, maths, mathematics, school, homework, education">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||
<meta name="HandheldFriendly" content="true">
|
||
<meta name="referrer" content="always">
|
||
<link rel="preload" href="../images/style/font-champ-bold.ttf" as="font" type="font/ttf" crossorigin="">
|
||
<link rel="preload" href="../style4.css" as="style">
|
||
<link rel="preload" href="../main4.js" as="script">
|
||
<link rel="stylesheet" href="../style4.css">
|
||
<script src="../main4.js" defer="defer"></script>
|
||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||
<script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-29771508-1"></script>
|
||
<script>
|
||
window.dataLayer = window.dataLayer || [];
|
||
function gtag(){dataLayer.push(arguments);}
|
||
gtag('js', new Date());
|
||
gtag('config', 'UA-29771508-1');
|
||
</script>
|
||
</head>
|
||
|
||
<body id="bodybg">
|
||
|
||
<div id="stt"></div>
|
||
<div id="adTop"></div>
|
||
<header>
|
||
<div id="hdr"></div>
|
||
<div id="tran"></div>
|
||
<div id="adHide"></div>
|
||
<div id="cookOK"></div>
|
||
</header>
|
||
|
||
<div class="mid">
|
||
|
||
<nav>
|
||
<div id="menuWide" class="menu"></div>
|
||
<div id="logo"><a href="../index.html"><img src="../images/style/logo.svg" alt="Math is Fun"></a></div>
|
||
|
||
<div id="search" role="search"></div>
|
||
<div id="linkto"></div>
|
||
|
||
<div id="menuSlim" class="menu"></div>
|
||
<div id="menuTiny" class="menu"></div>
|
||
</nav>
|
||
|
||
<div id="extra"></div>
|
||
|
||
<article id="content" role="main">
|
||
|
||
<!-- #BeginEditable "Body" -->
|
||
|
||
|
||
<h1 class="center">Distance Between 2 Points</h1>
|
||
|
||
<div class="fun">
|
||
<p style="float:right; margin: 10px;"><img src="images/dist-pythag.svg" alt="distance by pythagoras" height="59" width="109"></p>
|
||
|
||
<h3>Quick Explanation</h3>
|
||
<p>When we know the <b>horizontal</b> and <b>vertical</b> distances between two points we can calculate the straight line distance like this:</p>
|
||
<p class="center larger">distance = <span style="font-size:120%; ">√</span><span class="overline"> a<sup>2</sup> + b<sup>2</sup> </span></p>
|
||
</div>
|
||
<div style="clear:both"></div>
|
||
|
||
<p> </p>
|
||
<p style="float:left; margin: 0 10px 5px 0;"><img src="images/dist-2-points-a.svg" alt="graph 2 points" height="181" width="248"></p>
|
||
<p>Imagine you know the location of two points (A and B) like here.</p>
|
||
<p>What is the distance between them?</p>
|
||
|
||
<div style="clear:both"></div>
|
||
<p> </p>
|
||
<p style="float:left; margin: 0 10px 5px 0;"><img src="images/dist-2-points-b.gif" alt="graph 2 points" height="192" width="225"></p>
|
||
<p>We can run lines down from <span class="large">A</span>, and along from <span class="large">B</span>, to make a <a href="../right_angle_triangle.html">Right Angled Triangle</a>.</p>
|
||
<p>And with a little help from <a href="../pythagoras.html">Pythagoras</a> we know that:</p>
|
||
<p class="center"><span class="large">a<sup>2</sup> + b<sup>2</sup> = c<sup>2</sup></span></p>
|
||
<div style="clear:both"></div>
|
||
<p> </p>
|
||
<p style="float:left; margin: 0 10px 5px 0;"><img src="images/dist-2-points-c.gif" alt="graph 2 points" height="192" width="252"></p>
|
||
<p>Now label the <a href="../data/cartesian-coordinates.html">coordinates</a> of points A and B.</p>
|
||
<p class="center80" align="center"><span class="large">x<sub>A</sub></span> means the x-coordinate of point <span class="large">A</span><br>
|
||
<span class="large">y<sub>A</sub></span> means the y-coordinate of point <span class="large">A</span></p>
|
||
<p>The horizontal distance <span class="large"><b>a</b></span> is <span class="large"><b>(x<sub>A</sub> − x<sub>B</sub>)</b></span></p>
|
||
<p>The vertical distance <span class="large"><b>b</b></span> is <span class="large"><b>(y<sub>A</sub> − y<sub>B</sub>)</b></span></p>
|
||
<p> </p>
|
||
<p>Now we can solve for <span class="large">c</span> (the distance between the points):</p>
|
||
<div class="simple">
|
||
<div class="tbl">
|
||
<div class="row"><span class="left">Start with:</span><span class="large">c<sup>2</sup> = a<sup>2</sup> + b<sup>2</sup></span></div>
|
||
<div class="row"><span class="left">Put in the calculations for a and b:</span><span class="large">c<sup>2</sup> = (x<sub>A</sub> − x<sub>B</sub>)<sup>2</sup> + (y<sub>A</sub> − y<sub>B</sub>)<sup>2</sup></span></div>
|
||
<div class="row"><span class="left">Square root of both sides:</span><span class="large">c = <span style="font-size:120%; ">√</span><span class="overline">(x<sub>A</sub> − x<sub>B</sub>)<sup>2</sup> + (y<sub>A</sub> − y<sub>B</sub>)<sup>2</sup></span></span></div>
|
||
</div>
|
||
</div>
|
||
Done! <h2>Examples</h2>
|
||
|
||
<h3>Example 1</h3>
|
||
<p style="float:left; margin: 0 10px 5px 0;"><img src="images/dist-2-points-d.gif" alt="graph 2 points" height="192" width="225"></p>
|
||
|
||
|
||
|
||
|
||
<div class="tbl">
|
||
<div class="row">
|
||
<span class="lt">Fill in the values:</span>
|
||
<span class="rt">c = <span style="font-size:120%; ">√</span><span class="overline">(9 − 3)<sup>2</sup> + (7 − 2)<sup>2</sup></span></span>
|
||
</div>
|
||
<div class="row">
|
||
<span class="lt">Calculate:</span>
|
||
<span class="rtlt">c = <span style="font-size:120%; ">√</span><span class="overline">6<sup>2</sup> + 5<sup>2</sup></span><br>
|
||
c = <span style="font-size:120%; ">√</span><span class="overline">36 + 25</span><br>
|
||
c = <span style="font-size:120%; ">√</span><span class="overline">61</span><br>
|
||
c = 7.8102...</span>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div style="clear:both"></div>
|
||
|
||
<h3>Example 2</h3>
|
||
<p>It doesn't matter what order the points are in, because squaring removes any negatives:</p>
|
||
<p style="float:left; margin: 0 10px 5px 0;"><img src="images/dist-2-points-e.gif" alt="graph 2 points" height="191" width="225"></p>
|
||
|
||
|
||
|
||
<div class="tbl">
|
||
<div class="row">
|
||
<span class="lt">Fill in the values:</span>
|
||
<span class="rt">c = <span style="font-size:120%; ">√</span><span class="overline">(3 − 9)<sup>2</sup> + (2 − 7)<sup>2</sup></span></span>
|
||
</div>
|
||
<div class="row">
|
||
<span class="lt">Calculate:</span>
|
||
<span class="rtlt">c = <span style="font-size:120%; ">√</span><span class="overline">(−6)<sup>2</sup> + (−5)<sup>2</sup></span><br>
|
||
c = <span style="font-size:120%; ">√</span><span class="overline">36 + 25</span><br>
|
||
c = <span style="font-size:120%; ">√</span><span class="overline">61</span><br>
|
||
c = 7.8102...</span>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div style="clear:both"></div>
|
||
|
||
<h3>Example 3</h3>
|
||
<p>And here is another example with some negative coordinates ... it all still works:</p>
|
||
<p style="float:left; margin: 0 10px 5px 0;"><img src="images/dist-2-points-f.gif" alt="graph 2 points" height="208" width="262"></p>
|
||
<p> </p>
|
||
<div class="tbl">
|
||
<div class="row">
|
||
<span class="lt">Fill in the values:</span>
|
||
<span class="rt">c = <span style="font-size:120%; ">√</span><span class="overline">(−3 − 7)<sup>2</sup> + (5 − (−1))<sup>2</sup></span></span>
|
||
</div>
|
||
<div class="row">
|
||
<span class="lt">Calculate:</span>
|
||
<span class="rtlt">c = <span style="font-size:120%; ">√</span><span class="overline">(−10)<sup>2</sup> + 6<sup>2</sup></span><br>
|
||
c = <span style="font-size:120%; ">√</span><span class="overline">100 + 36</span><br>
|
||
c = <span style="font-size:120%; ">√</span><span class="overline">136</span><br>
|
||
c = 11.66...</span>
|
||
</div>
|
||
</div>
|
||
|
||
<p><i>(Note √136 can be further simplified to 2√34 if you want)</i></p>
|
||
<div style="clear:both"></div>
|
||
|
||
|
||
<h2>Try It Yourself</h2>
|
||
|
||
<p>Drag the points:</p>
|
||
|
||
<div class="script" style="height: 360px;">
|
||
images/dist2pts.js
|
||
</div>
|
||
|
||
|
||
<h2>Three or More Dimensions</h2>
|
||
|
||
<p>It works perfectly well in 3 (or more!) dimensions.</p>
|
||
<p>Square the difference for <b>each axis</b>, then sum them up and take the square root:</p>
|
||
<p class="center larger">Distance = <span style="font-size:120%; ">√</span><span class="overline">(x<sub>A</sub> − x<sub>B</sub>)<sup>2</sup> + (y<sub>A</sub> − y<sub>B</sub>)<sup>2</sup> + (z<sub>A</sub> − z<sub>B</sub>)<sup>2</sup></span></p>
|
||
|
||
<p style="float:right; margin: 0 0 5px 10px;"><img src="images/dist-2-points-3d.svg" alt="distance between (9,2,7) and (4,8,10) in 3d" height="348" width="401"></p>
|
||
|
||
<h3>Example: the distance between the two points (8,2,6) and (3,5,7) is:</h3>
|
||
<p class="large">
|
||
= <span style="font-size:120%; ">√</span><span class="overline">(8−3)<sup>2</sup> + (2−5)<sup>2</sup> + (6−7)<sup>2</sup></span><br>
|
||
= <span style="font-size:120%; ">√</span><span class="overline">5<sup>2</sup> + (−3)<sup>2</sup> + (−1)<sup>2</sup></span><br>
|
||
= <span style="font-size:120%; ">√</span><span class="overline">25 + 9 + 1</span><br>
|
||
= <span style="font-size:120%; ">√</span><span class="overline">35</span></p>
|
||
<p>Which is about <b>5.9</b></p>
|
||
<p>Read more at <a href="../geometry/pythagoras-3d.html">Pythagoras' Theorem in 3D</a><br> </p>
|
||
|
||
|
||
|
||
|
||
<div style="clear:both"></div>
|
||
<p>
|
||
|
||
</p>
|
||
<div class="questions">513, 514, 1148, 1149, 2994, 2995, 2996, 2997, 4034, 4035</div>
|
||
|
||
<div class="related">
|
||
<a href="line-equation-2points.html">Equation of a Line from 2 Points</a>
|
||
<a href="index.html">Algebra Index</a>
|
||
</div>
|
||
<!-- #EndEditable -->
|
||
|
||
</article>
|
||
|
||
<div id="adend" class="centerfull noprint"></div>
|
||
<footer id="footer" class="centerfull noprint"></footer>
|
||
<div id="copyrt">Copyright © 2022 Rod Pierce</div>
|
||
|
||
</div>
|
||
</body><!-- #EndTemplate -->
|
||
<!-- Mirrored from www.mathsisfun.com/algebra/distance-2-points.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 01:00:32 GMT -->
|
||
</html> |