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

SquaredEuclideanDistance

SquaredEuclideanDistance
gives the squared Euclidean distance between vectors u and v.
Squared Euclidean distance between two vectors:
Squared Euclidean distance between numeric vectors:
Squared Euclidean distance between two vectors:
In[1]:=
Click for copyable input
Out[1]=
 
Squared 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 squared Euclidean distance:
Demonstrate the triangle inequality:
SquaredEuclideanDistance is equivalent to the squared Norm of a difference:
SquaredEuclideanDistance computed from RootMeanSquare of a difference:
New in 6