VectorCalculus
BasisFormat
query or set Vector display style
Calling Sequence
Parameters
Description
Examples
BasisFormat(fmt)
fmt
-
(optional) truefalse; specify display style
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.
with⁡VectorCalculus:
The default notation is basis format for free Vectors and vector fields.
BasisFormat⁡
true
SetCoordinates⁡polarr,θ
polarr,θ
fv≔2,3
rv≔RootedVector⁡root=1,π,2,π2
rv≔2π2
vf≔VectorField⁡r2,1θ
pv≔PositionVector⁡1,θ
pv≔cos⁡θsin⁡θ
To use standard Vector notation, set BasisFormat to false. This will not affect the display of position Vectors or rooted Vectors.
BasisFormat⁡false
fv
rv
2π2
vf
r21θ
pv
cos⁡θsin⁡θ
See Also
coords
VectorCalculus[PositionVector]
VectorCalculus[RootedVector]
VectorCalculus[SetCoordinates]
VectorCalculus[Vector]
VectorCalculus[VectorField]
Download Help Document