Student[LinearAlgebra] - Maple Programming Help

Home : Support : Online Help : Education : Student Package : Linear Algebra : Computation : Standard : Student/LinearAlgebra/VectorAngle

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\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}.\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}V}{\mathrm{Norm}\left(U\right)\mathrm{Norm}\left(V\right)}\right)$.

Examples

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