query or set Vector display style - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Vector Calculus : VectorCalculus/BasisFormat

VectorCalculus[BasisFormat] - query or set Vector display style

Calling Sequence

BasisFormat(fmt)

Parameters

fmt

-

(optional) truefalse; specify display style

Description

• 

By default, free Vectors and vector fields created by commands in the VectorCalculus package are displayed using basis format, that is, as a sum of scalar multiples of basis vectors.  Basis vectors are displayed by using the letter "e" subscripted by a coordinate name. If the Vector displayed is a vector field, the basis vectors display with an overbar.

• 

The BasisFormat(fmt) calling sequence determines whether basis format style is used.  If fmt is true, free Vectors and vector fields are displayed using basis format.  If fmt is false, free Vectors and vector fields are displayed using standard Vector notation.

• 

Position Vectors, being Vectors that are always in cartesian coordinates rooted at the origin, are always displayed in standard Vector notation. The BasisFormat(fmt) calling sequence has no effect on the display of a position Vector.

• 

Similarly, rooted Vectors are always displayed in standard Vector notation, independent of the BasisFormat setting.

  

Note: In standard Vector notation, there is no visual distinction between vector fields and the other Vectors.

• 

The BasisFormat command returns the basis format setting in effect when the command was invoked, not the new setting.

Examples

withVectorCalculus:

The default notation is basis format for free Vectors and vector fields.

BasisFormat

true

(1)

SetCoordinatespolarr,θ

polarr,θ

(2)

fv:=2,3

fv:=2er+3eθ

(3)

rv:=RootedVectorroot=1,π,2,π2

rv:=212π

(4)

vf:=VectorFieldr2,1θ

vf:=r2e_r+1θe_θ

(5)

pv:=PositionVector1,θ

pv:=cosθsinθ

(6)

To use standard Vector notation, set BasisFormat to false. This will not affect the display of position Vectors or rooted Vectors.

BasisFormatfalse

true

(7)

fv

23

(8)

rv

212π

(9)

vf

r21θ

(10)

pv

cosθsinθ

(11)

See Also

VectorCalculus, VectorCalculus[Coordinates], VectorCalculus[PositionVector], VectorCalculus[RootedVector], VectorCalculus[SetCoordinates], VectorCalculus[Vector], VectorCalculus[VectorField]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam