VectorCalculus
SetCoordinates
set the coordinate attribute on a free 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) command sets the coordinate attribute on the Vector v. If the parameter v is not specified, it sets the default coordinates to c.
If c is given only as a name, default coordinate names are used for the display (only) of Vectors. In order to create a vector field using the coordinate system set by a call to SetCoordinates, you must provide names for the coordinates, in the index to the coordinate specification c.
The coordinate systems recognized by the VectorCalculus package are described in coords. For information on how to add new coordinate systems, see AddCoordinates.
with⁡VectorCalculus:
v≔a,b
SetCoordinates⁡v,polar
GetCoordinates⁡v
polar
SetCoordinates⁡sphericalr,φ,θ
sphericalr,φ,θ
v≔VectorField⁡r,0,0
See Also
coords
VectorCalculus[AddCoordinates]
VectorCalculus[GetCoordinates]
VectorCalculus[Vector]
VectorCalculus[VectorField]
Download Help Document