VectorCalculus - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

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

v:=aex&plus;bey&plus;cez

(1)

attributesv

coords&equals;cartesian

(2)

Aboutv

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

(3)

GetCoordinatesv

cartesian

(4)

uVectora&comma;b&comma;&apos;coords&apos;&equals;&apos;polar&apos;

u:=aer&plus;be&theta;

(5)

GetCoordinatesu

polar

(6)

SetCoordinates&apos;spherical&apos;&apos;r&apos;&comma;&apos;&phi;&apos;&comma;&apos;&theta;&apos;

sphericalr&comma;&phi;&comma;&theta;

(7)

wVectorFieldr&verbar;0&verbar;0

w:=re&lowbar;r

(8)

GetCoordinatesw

sphericalr&comma;&phi;&comma;&theta;

(9)

See Also

attributes

plots[arrow]

Vector

VectorCalculus

VectorCalculus[BasisFormat]

VectorCalculus[GetCoordinates]

VectorCalculus[SetCoordinates]

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