Example · High school
Terms
| Term | This example | Why |
| Euclidean distance |
$d_2(p, q) = \sqrt{2^2 + 0^2} = 2$
|
|
| Taxicab distance |
$d_1(p, q) = 2 + 0 = 2$
|
|
| Chebyshev distance |
$d_{\infty}(p, q) = \max(2, 0) = 2$
|
The points $(0, 0)$ and $(2, 0)$ lie on a line parallel to an axis, so the Euclidean, taxicab, and Chebyshev distances all equal $2$.
|
| discrete metric |
$d(p, q) = 1$
|
The discrete distance between $p = (0, 0)$ and $q = (2, 0)$ is $1$, because $p \neq q$.
|
| geodesic distance |
$2$
|
In the plane, the geodesic distance between $p$ and $q$ equals the Euclidean distance, because the straight segment from $p$ to $q$ stays in the plane.
|
Distinctions using this example
All examples · All distinctions · All definitions