I was wondering if there is any difference between finding the angle between two 4D vectors as opposed to finding the angle between two 3D vectors?
I have $u = (1, 0, 1, 0)$ , $v = (-3, -3, -3, -3)$ and used the dot product to find the angle between them. We have that:
$u\cdot v = -6$
$||u|| = \sqrt 2$
$||v|| = \sqrt{36}$
Then,
$$\cos(\theta) = \frac{u . v} {||u||\cdot ||v||}=\frac{-6 }{ \sqrt 6 \cdot \sqrt{36}} = -0.71,$$
so
$$\theta = \cos^{-1} (-0.71)$$
And the angle between $u$ and $v$ is $135$ degrees or $2.36$ radians.