Student[VectorCalculus]
SetCoordinates
set the coordinate attribute on a Vector
Calling Sequence
Parameters
Description
Examples
SetCoordinates(v, c)
v
-
(optional) free or position Vector
c
name or name[name, name, ...]; specify the coordinate system, possibly indexed by the coordinate names
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.
with⁡StudentVectorCalculus:
SetCoordinates⁡cartesianx,y
cartesianx,y
v≔a,b
SetCoordinates⁡v,polar
GetCoordinates⁡v
polarr,θ
If you create a vector field and do not specify a coordinate system with coordinate names, default coordinate names for that system are generated.
SetCoordinates⁡spherical
sphericalr,φ,θ
v≔VectorField⁡r,0,0
SetCoordinates⁡sphericalr,φ,θ
See Also
Coordinates
Student[VectorCalculus][GetCoordinates]
Student[VectorCalculus][MapToBasis]
Student[VectorCalculus][Vector]
Student[VectorCalculus][VectorField]
Download Help Document