What angle does the line pass through the points $A[1,1]$ and $B[−3, −3]$ with the vector $v=(−3,\sqrt{3})$?
I proceed as follows:
I determine the vector $AB = u = (-4, -4)$,
then using the formula
$$\cos (x) = \frac{u\cdot v}{\|u\|\cdot\|v\|}$$
I get
$$\cos (x) = \frac{(-4)\cdot (- 3) + \sqrt{3}\cdot (- 4)}{\sqrt{32} \cdot \sqrt{12}}$$
but somehow I can't make adjustments to the result, which is $\frac{5}{12}\pi$.