VectorAngle - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


LinearAlgebra

  

VectorAngle

  

compute the angle between two Vectors

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

VectorAngle(U, V, c)

Parameters

U, V

-

Vectors with the same dimension

c

-

(optional) equation of the form conjugate=true or false; specifies if the result uses the Hermitian transpose

Description

• 

The VectorAngle(U, V) function computes the angle between Vectors U and V by using the formula arccosDotProductU,V,cVectorNormU,2VectorNormV,2. The default value for the conjugate option c is true.

• 

This function is part of the LinearAlgebra package, and so it can be used in the form VectorAngle(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[VectorAngle](..).

Examples

withLinearAlgebra:

V11,0,1

V1101

(1)

V21,1,0

V2110

(2)

VectorAngleV1,V1

0

(3)

VectorAngleV1,V2

π3

(4)

See Also

LinearAlgebra[DotProduct]

LinearAlgebra[VectorNorm]

Vector

 


Download Help Document