It all depends on what you mean by "similar": for example, if similar means close in Euclidean distance, just compute the length of |u-v|. On the other hand, if similar means "in similar directions", compute the angle between the vectors: (u.v)/( |u| |v|).