This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

EuclideanDistance

EuclideanDistance
gives the Euclidean distance between vectors u and v.
Euclidean distance between two vectors:
Euclidean distance between numeric vectors:
Euclidean distance between two vectors:
In[1]:=
Click for copyable input
Out[1]=
 
Euclidean distance between numeric vectors:
In[1]:=
Click for copyable input
Out[1]=
Compute distance between any vectors of equal length:
Compute distance between vectors of any precision:
Cluster data using Euclidean distance:
Demonstrate the triangle inequality:
EuclideanDistance is equivalent to Norm of a difference:
EuclideanDistance is greater than or equal to ChebyshevDistance:
CosineDistance includes a dot product scaled by Euclidean distances from the origin:
CorrelationDistance includes a dot product scaled by Euclidean distances from means:
EuclideanDistance computed from RootMeanSquare of a difference:
New in 6