# Angle between two vectors

I'm trying to find the angle between these two vectors. I know how to find the angle of using the dot product over magnitude of both vectors. However, these two vectors are opposite to each other, creating an angle of 180 degrees and a dot product of -29. Is there a difference between column vectors and row vectors when using this formula?

v = <-5,2> w = <5,-2> (in column form)

What is going on?

• The angle formula is ${\cos \theta} = {{V\cdot W} \over{ ||V || ||W||}}$ which in your case is $-1$. The angle whose cosine is $-1$ is $180^\circ$. Sometimes it is written as $AB^T$ if $A,B$ are rows or as $A^TB$ if they are column vectors, or ... – Maesumi Feb 16 '13 at 0:47
• No difference at all. – Ross Millikan Feb 16 '13 at 0:47
• Public service announcement: please do not get in the habit of numerically computing the angle using $\arccos$. For 2D and 3D vectors use $\operatorname{atan2}( |u\times v|, u\cdot v).$ – user7530 Feb 16 '13 at 0:51
• @user7530 -- why is that? – bubba Feb 16 '13 at 1:06
• I had a feeling that there was no difference. I got stumped when I found out that the answer had to be in radians and not in degrees which led to my belief that I was in the wrong... – Dimitri Feb 16 '13 at 1:07