Cosine of Angle between Two Vectors
Abstract
A vector in 2-space is easily represented by two coordinates. The angle between two such vectors can, by using right angle triangle trigonometry, be expressed as an algebraic function of the two pairs of coordinates, one pair on one vector, the other on the second vector. And this can be extended generally to two vectors in n-space. The resulting expression has useful invariance properties, and can also be thought of as a product–moment correlation.