Distance Functions

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

In analysis, a distance function (also called a metric) on a set of points is a function with four properties; suppose :


1. (non-negativity)

2. if and only if (identity of indiscernibles)

3. (symmetry)

4. (triangle inequality)

Mathematica 7 comes with a variety of built-in distance functions. This Demonstration selects points within a given distance from a locator, using one of these distance functions.


Contributed by: Ed Pegg Jr (March 2011)
Open content licensed under CC BY-NC-SA



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.