we know that
The cosine of the angle between two vectors is equal to the dot product of this vectors divided by the product of vector magnitude.
so
see the attached image
then
when you have cosine of angle theta
theta=arcos(theta) -----> using a calculator