Vector - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


VectorCalculus

  

Vector

  

create a free Vector with specified components and a coordinate system

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Vector[o](n, init, f, c)

<x1, x2, ...>

Parameters

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

Description

• 

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, ...&gt; 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.

Examples

withVectorCalculus&colon;

va&comma;b&comma;c

attributesv

coords=cartesian

(1)

Aboutv

Type: Free VectorComponents: a&comma;b&comma;cCoordinates: cartesian

(2)

GetCoordinatesv

cartesian

(3)

uVectora&comma;b&comma;coords=polar

GetCoordinatesu

polar

(4)

SetCoordinatessphericalr,φ,θ

sphericalr,φ,θ

(5)

wVectorFieldr|0|0

GetCoordinatesw

sphericalr,φ,θ

(6)

See Also

attributes

plots[arrow]

Vector

VectorCalculus

VectorCalculus[BasisFormat]

VectorCalculus[GetCoordinates]

VectorCalculus[SetCoordinates]

VectorCalculus[VectorField]