VectorAngle

VectorAngle[u,v]

gives the angle between the vectors u and v.

Details

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

Examples

open allclose all

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]=

Scope  (2)

Generalizations & Extensions  (1)

Applications  (3)

Properties & Relations  (6)

Possible Issues  (1)

See Also

Dot  Projection  ArcCos  Cross  Degree

Introduced in 2007
(6.0)