<p>Whether you are writing a simple darts simulation 8-bit computer game or are traversing the galaxy Elite-style, you might well find yourself tangling with the mathematical concept known as the metric. In this episode I describe the mathematical concept of a metric which I address with the following questions. Brief answers are provided below but the show, I hope, gives more context and colour.</p>
<h3 id="what-is-a-metric">What is a metric?</h3>
<p>A type of ruler that is used in mathematics.</p>
<h3 id="why-not-just-use-a-ruler">Why not just use a ruler?</h3>
<p>You can if all you want to do is measure distances in real life but if you want to work out distances from coordinates you need a metric.</p>
<h3 id="whats-the-simplest-example-of-a-metric">What's the simplest example of a metric?</h3>
<p>In 1D, distance s equals change in x coordinate.</p>
<h3 id="ok-can-i-have-a-more-interesting-example-please">OK, can I have a more interesting example please?</h3>
<p>On a flat 2D surface, distance squared is the change in x squared plus change in y squared.</p>
<h3 id="isnt-that-pythagoras">Isn't that pythagoras?</h3>
<p>Yes, it is, but using the word distance and two co-ordinates.</p>
<h3 id="what-other-co-ordinates-can-we-use-for-a-flat-2d-surface">What other co-ordinates can we use for a flat 2D surface?</h3>
<p>Those x and y co-ordinates are called Cartesian co-ordinates. Instead we can use polar co-ordinates: radius r, and the angle φ (or phi) measured clockwise from the vertical. These might be more convenient in some cases, say for a dart board computer game, or if you are working with a compass bearing, eg head east for 1 km would become start at the origin (r=0) and move with phi=90° until r=1 km.</p>
<h3 id="does-pythagoras-still-work-in-polar-coords">Does Pythagoras still work in polar coords?</h3>
<p>Yes and no. No, it is no longer true to say that distance squared equals radius squared plus φ squared, but since the geometry is the same - a flat 2D surface - we can say that a <em>change</em> in distance squared equals the <em>change</em> in radius squared plus radius squared times the <em>change</em> in φ squared.</p>
<h3 id="why-do-we-have-to-talk-about-changes-in-s-r-and-φ">Why do we have to talk about changes in s, r and φ?</h3>
<p>Because one of our coordinates now appears in the metric. That is, the radius squared multiplies on to the change in φ squared. This means that a change in φ depends on r. In other words, bigger circles have bigger circumferences. Actually, it's more intricate than that, as we must deal with infinitesimals: quantities which are very, very, very small but not zero.</p>
<h3 id="can-we-use-cartesian-or-polar-co-ordinates-on-the-surface-of-the-earth">Can we use Cartesian or polar co-ordinates on the surface of the Earth?</h3>
<p>Only over short distances, much smaller than the radius of the Earth which is 6400 km. So up to about 100 km that's fine for many purposes, but not when flying a plane over great distances, say London to Singapore.</p>
<h3 id="why-not">Why not?</h3>
<p>The surface of the Earth may look locally flat but of course the Earth has a curved 2D surface. This means that this surface has a non-euclidean geometry, which means that Pythagoras does not hold and we cannot even define Cartesian co-ordinates, let alone use them.</p>
<h3 id="i-want-to-know-more-or-my-mind-is-not-fully-blown">I want to know more OR my mind is not fully blown.</h3>
<p>I will probably do more shows on this.</p>
<h3 id="can-i-have-some-links">Can I have some links?</h3>
<p>Sure:</p>
<ul>
<li><a href="https://en.wikipedia.org/wiki/Alcubierre_drive">Alcubierre drive</a></li>
<li><a href="https://en.wikipedia.org/wiki/Darts">Dart board</a></li>
<li><a href="https://en.wikipedia.org/wiki/Polar_coordinate_system">Polar coordinates</a></li>
<li><a href="https://en.wikipedia.org/wiki/Metric_(mathematics)">Metric</a></li>
</ul>
