CosineDistance
CosineDistance[u, v] gives the angular cosine distance between vectors u and v.
Examples
Compute the cosine distance between two vectors:
CosineDistance[{1, 0}, {0, 1}]
(* 1 *)Parallel vectors have zero cosine distance:
CosineDistance[{1, 2, 3}, {2, 4, 6}]
(* 0 *)Please visit the official Wolfram Language Reference for more details.