Angle

The (unsigned) angle $$\theta$$ between two vectors $$x,y \in \mathbb{R}^n$$ is defined as $$\theta = \angle(x,y) = \cos^{-1} \frac{x^T y}{||x||\,||y||}$$