VectorAngle - Maple Help

Student[LinearAlgebra]

 VectorAngle
 compute the angle between two Vectors

 Calling Sequence VectorAngle(U, V, options)

Parameters

 U, V - Vectors with the same dimension options - (optional) parameters; for a complete list, see LinearAlgebra[VectorAngle]

Description

 • The VectorAngle(U, V) command computes the angle between Vectors U and V by using the formula $\mathrm{arccos}\left(\frac{U·V}{\mathrm{Norm}\left(U\right)\mathrm{Norm}\left(V\right)}\right)$.

Examples

 > $\mathrm{with}\left(\mathrm{Student}\left[\mathrm{LinearAlgebra}\right]\right):$
 > $\mathrm{V1}≔⟨1,0,1⟩$
 ${\mathrm{V1}}{≔}\left[\begin{array}{c}{1}\\ {0}\\ {1}\end{array}\right]$ (1)
 > $\mathrm{V2}≔⟨1,1,0⟩$
 ${\mathrm{V2}}{≔}\left[\begin{array}{c}{1}\\ {1}\\ {0}\end{array}\right]$ (2)
 > $\mathrm{VectorAngle}\left(\mathrm{V1},\mathrm{V2}\right)$
 $\frac{{\mathrm{\pi }}}{{3}}$ (3)