VectorCalculus
Vector
create a free Vector with specified components and a coordinate system
Calling Sequence
Parameters
Description
Examples
Vector[o](n, init, f, c)
<x1, x2, ...>
o
-
(optional) one of row or column; specifies Vector orientation
n
(optional) non-negative integer or integer range starting at 1; number of elements in the Vector
init
(optional) Maple procedure, table, Array, Vector, set of equations, list, or expression of type algebraic; initial values for the Vector
f
(optional) equation of the form fill=value; specifies Vector entries at locations not otherwise set
c
(optional) name or an equation of the form coords=name or coordinates=name; specify the coordinate system, optionally indexed by coordinate names
x1, x2, ...
algebraic expressions; initial values for the Vector
The Vector command constructs a free Vector, one of the principal data structures of the Vector Calculus package.
The optional argument c specifies a coordinate system that will be attached to the constructed free Vector as an attribute. Commands in the VectorCalculus package understand a comprehensive set of coordinate systems.
All other arguments in Vector are passed to the top-level Vector constructor.
If c is omitted, the constructed free Vector will inherit the coordinate attribute from the current coordinate system. In this case, if the number of components specified does not match the expected dimension of the current coordinate system, an error will be raised.
The <x1, x2, ...> syntax calls this command, but only after executing the with(VectorCalculus) command. If any of the elements xi are not algebraic expressions, then the top-level Vector command is called instead.
The display format for free Vectors and vector fields can be controlled by calling BasisFormat. Note that the formatting of position Vectors and rooted Vectors is not affected by BasisFormat.
For details on the differences between free Vectors, position Vectors, and rooted Vectors, see VectorCalculus,Details.
with⁡VectorCalculus:
v≔a,b,c
attributes⁡v
coords=cartesian
About⁡v
Type: Free VectorComponents: a,b,cCoordinates: cartesian
GetCoordinates⁡v
cartesian
u≔Vector⁡a,b,coords=polar
GetCoordinates⁡u
polar
SetCoordinates⁡sphericalr,φ,θ
sphericalr,φ,θ
w≔VectorField⁡r|0|0
GetCoordinates⁡w
See Also
attributes
plots[arrow]
VectorCalculus[BasisFormat]
VectorCalculus[GetCoordinates]
VectorCalculus[SetCoordinates]
VectorCalculus[VectorField]
Download Help Document