A metric on a set $X$ is a real-valued function $d$ on $X \times X$ that has the following properties:
- $d(x, y) \geq 0$, $x, y \in X$,
- $d(x, y) = 0$ if and only if $x = y$,
- $d (x, y) = d(y, x)$, $x, y in X$,
- $d (x, z) \leq d (x, y) + d (y, z)$, $x, y, z \in X$. (triangle inequality)
A metric space $(X, d)$ is a set $X$ equipped with a metric $d$ on $X$.
沒有留言:
張貼留言