Angle Between Two Vectors
The angle between two nonzero vectors follows from the dot product. A result of means the vectors are orthogonal. Use it in geometry, physics and machine learning (cosine similarity) to compare directions.
LaTeX
\cos\theta=\frac{\mathbf a\cdot\mathbf b}{|\mathbf a|\,|\mathbf b|}Variables
- angle between the vectors, 0 to 180°
Example
Angle between and .
- .
Answer: .