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

Online Help

All Products    Maple    MapleSim


Student[VectorCalculus]

  

Vector

  

create a Vector with a coordinate system attribute

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

<a,b>

<a,b,c>

<a|b>

<a|b|c>

Vector(arguments)

Parameters

a, b, c

-

algebraic; the entries in the Vector

arguments

-

same parameters as the top-level Vector command

Description

• 

The Vector command in the Student[VectorCalculus] package constructs a free Vector and attaches additional information about the coordinate system in which the Vector is to be interpreted. This additional information is stored in the form of an attribute on the Vector, and is used by most of the other commands of the package.

• 

The free Vector is one of the four principal Vector data structures in the Student[VectorCalculus] package. Note that the Student[VectorCalculus] and the VectorCalculus packages share the same Vector data structures.

• 

For details on the differences between the four principal Vector data structures, namely, free Vectors, position Vectors, rooted Vectors, and vector fields, see VectorCalculus/Details.

• 

The simplest way to construct a Vector for use with commands in this package is to first load the package, for example by calling with(Student[VectorCalculus]), and then use one of the first four calling sequences shown above, which illustrate the short-cut, "angle bracket" notation for Vectors in Maple. This will construct either a column Vector (the first two forms) or a row Vector (the next two forms), with the default coordinate system, which is cartesian.

• 

To create Vectors in a different coordinate system but still use the angle bracket command form, you can either create the Vector as above and then call SetCoordinates, passing the newly created Vector and the target coordinate system, or you can call SetCoordinates first, thus changing the default coordinate system, and then create the Vector. Note that the Student[VectorCalculus] package only supports cartesian, polar, spherical and cylindrical coordinate systems.

  

Note: Changing the coordinate system of a Vector just changes how the components are interpreted. It does not "map" the Vector into the new system. See MapToBasis.

• 

The command Vector(arguments) provides the same functionality as the top-level Vector command, thus providing more fine-grained control over how the Vector is to be built. To set the coordinate system to something other than the default system, use the attributes=&lsqb;coordinates=...&rsqb;&rsqb; option.

• 

If you either set the default coordinate system passing only the name of that system to SetCoordinates (for example, SetCoordinates(polar)), or pass only that coordinate system name in the attributes option of a Vector command, Maple will choose default names for the coordinates of that system.

  

Note: A Vector that is not a vector field is not interpreted as a constant vector field by the Student[VectorCalculus] package commands. Vector fields and other Vectors cannot be used interchangeably.

• 

By default, vector fields, free Vectors and rooted Vectors created by commands from the Student[VectorCalculus] package are displayed using basis format, that is, as a sum of scalar multiples of basis vectors.  Vector Fields are visually distinguished in this format by displaying an overbar above each basis vector. For more information on Vector display formats, see BasisFormat.

Examples

If no coordinate system is specified, then current default coordinate system is used.

withStudentVectorCalculus&colon;

va&comma;b&comma;c

GetCoordinatesv

cartesian

(1)

If you specify a coordinate system, the Vector is defined with respect to the coordinate system.

SetCoordinatespolar

polarr,θ

(2)

v1&comma;2

GetCoordinatesv

polarr,θ

(3)

SetCoordinatescylindricalr,θ,z

cylindricalr,θ,z

(4)

ur|0|0

v1&comma;2&comma;3

wcopyv

SetCoordinatesv&comma;cartesian

MapToBasisw&comma;cartesian

See Also

attributes

Student[VectorCalculus]

Student[VectorCalculus][BasisFormat]

Student[VectorCalculus][GetCoordinates]

Student[VectorCalculus][MapToBasis]

Student[VectorCalculus][SetCoordinates]

Student[VectorCalculus][VectorField]

Vector