VectorAngle

VectorAngle[u,v]
gives the angle between the vectors u and v.

DetailsDetails

  • VectorAngle gives an angle in radians.
  • For nonzero real vectors the vector angle satisfies .
  • For complex vectors the numerator is .

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

The angle between two vectors in 2D:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

The angle between two vectors in 3D:

In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=

The angle between orthogonal vectors:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
Introduced in 2007
(6.0)