# hpr3101 :: Metrics

### A layman's explanation of the mathematical concept of metric.

<< First, < Previous, , Latest >>

Hosted by Andrew Conway on 2020-06-22 is flagged as Clean and is released under a CC-BY-SA license.
mathematics, relativity, physics. 3.
The show is available on the Internet Archive at: https://archive.org/details/hpr3101

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:25:53

### Part of the series:general.

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.

### What is a metric?

A type of ruler that is used in mathematics.

### Why not just use a ruler?

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.

### What's the simplest example of a metric?

In 1D, distance s equals change in x coordinate.

### OK, can I have a more interesting example please?

On a flat 2D surface, distance squared is the change in x squared plus change in y squared.

### Isn't that pythagoras?

Yes, it is, but using the word distance and two co-ordinates.

### What other co-ordinates can we use for a flat 2D surface?

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.

### Does Pythagoras still work in polar coords?

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 change in distance squared equals the change in radius squared plus radius squared times the change in φ squared.

### Why do we have to talk about changes in s, r and φ?

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.

### Can we use Cartesian or polar co-ordinates on the surface of the Earth?

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.

### Why not?

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.

### I want to know more OR my mind is not fully blown.

I will probably do more shows on this.

Sure:

## Show Transcript

Automatically generated using whisper

``whisper --model tiny --language en hpr3101.wav``

You can save these subtitle files to the same location as the HPR Episode, and they will automatically show in players like mpv, vlc. Some players allow you to specify the subtitle file location.

<< First, < Previous, , Latest >>

#### Looking forward to further episodes.

Thank you for this episode, it's a nice gentle introduction to the topic, I definitely look forward to future episodes.

#### Excellent!

I'm looking forward to more shows from this person.

#### more episodes

keep going with this, great topic

## Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
 Your Name/Handle: Title: Comment: Anti Spam Question: What does the letter P in HPR stand for? Are you a spammer? Yes No What is the HOST_ID for the host of this show? What does HPR mean to you?