Student[VectorCalculus] - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Education : Student Package : Vector Calculus : Computation Commands : Student/VectorCalculus/SetCoordinates

Student[VectorCalculus]

  

SetCoordinates

  

set the coordinate attribute on a Vector

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

SetCoordinates(v, c)

Parameters

v

-

(optional) free or position Vector

c

-

name or name[name, name, ...]; specify the coordinate system, possibly indexed by the coordinate names

Description

• 

The SetCoordinates(v, c) calling sequence sets the coordinate attribute on the Vector v.

  

Important: The SetCoordinates command does not convert a Vector to a new coordinate system. It simply changes the coordinate system attribute. To convert a Vector to a new coordinate system, use the MapToBasis command.

• 

The SetCoordinates(c) calling sequence sets the default coordinate system to c.

  

If c is given only as a name, default coordinate names are used for the display (only) of Vectors.

  

To be able to create a vector field using the default coordinate system, you must provide names for the coordinates in the index to the coordinate system specification c of the SetCoordinates call. See the Examples section.

• 

The coordinate systems recognized by the Student[VectorCalculus] package are described in Coordinates.

Examples

withStudent[VectorCalculus]:

SetCoordinatescartesianx,y

cartesianx,y

(1)

va,b

v:=aex+bey

(2)

SetCoordinatesv,polar

aer+beθ

(3)

GetCoordinatesv

polarr,θ

(4)

If you create a vector field and do not specify a coordinate system with coordinate names, default coordinate names for that system are generated.

SetCoordinatesspherical

sphericalr,φ,θ

(5)

vVectorFieldr,0,0

v:=re_r

(6)

SetCoordinatessphericalr,φ,θ

sphericalr,φ,θ

(7)

vVectorFieldr,0,0

v:=re_r

(8)

GetCoordinatesv

sphericalr,φ,θ

(9)

See Also

Coordinates

Student[VectorCalculus]

Student[VectorCalculus][GetCoordinates]

Student[VectorCalculus][MapToBasis]

Student[VectorCalculus][Vector]

Student[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