Source: wikibot/metric-spaces

= Metric spaces
{wiki=Metric_spaces}

A **metric space** is a mathematical structure that consists of a set equipped with a function that defines a distance between any two elements in the set. More formally, a metric space is defined as a pair \\( (X, d) \\), where: 1. **Set**: \\( X \\) is a non-empty set.