SetCoordinates - 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]

  

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

withStudentVectorCalculus:

SetCoordinatescartesianx,y

cartesianx,y

(1)

va,b

SetCoordinatesv,polar

GetCoordinatesv

polarr,θ

(2)

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,φ,θ

(3)

vVectorFieldr,0,0

SetCoordinatessphericalr,φ,θ

sphericalr,φ,θ

(4)

vVectorFieldr,0,0

GetCoordinatesv

sphericalr,φ,θ

(5)

See Also

Coordinates

Student[VectorCalculus]

Student[VectorCalculus][GetCoordinates]

Student[VectorCalculus][MapToBasis]

Student[VectorCalculus][Vector]

Student[VectorCalculus][VectorField]