 Student[LinearAlgebra] - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Education : Student Packages : 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·V}{\mathrm{Norm}\left(U\right)\mathrm{Norm}\left(V\right)}\right)$.

Examples

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

 See Also