 SetCoordinates - Maple Help

VectorCalculus

 SetCoordinates
 set the coordinate attribute on a free Vector 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) 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 Coordinates.  For information on how to add new coordinate systems, see AddCoordinates. Examples

 > $\mathrm{with}\left(\mathrm{VectorCalculus}\right):$
 > $v≔⟨a,b⟩$
 ${v}{≔}\left({a}\right){{e}}_{{x}}{+}\left({b}\right){{e}}_{{y}}$ (1)
 > $\mathrm{SetCoordinates}\left(v,'\mathrm{polar}'\right)$
 $\left({a}\right){{e}}_{{r}}{+}\left({b}\right){{e}}_{{\mathrm{θ}}}$ (2)
 > $\mathrm{GetCoordinates}\left(v\right)$
 ${\mathrm{polar}}$ (3)
 > $\mathrm{SetCoordinates}\left('\mathrm{spherical}'\left[r,\mathrm{\phi },\mathrm{\theta }\right]\right)$
 ${{\mathrm{spherical}}}_{{r}{,}{\mathrm{\phi }}{,}{\mathrm{\theta }}}$ (4)
 > $v≔\mathrm{VectorField}\left(⟨r,0,0⟩\right)$
 ${v}{≔}\left({r}\right){\stackrel{{_}}{{e}}}_{{r}}{+}\left({0}\right){\stackrel{{_}}{{e}}}_{{\mathrm{φ}}}{+}\left({0}\right){\stackrel{{_}}{{e}}}_{{\mathrm{θ}}}$ (5)
 > $\mathrm{GetCoordinates}\left(v\right)$
 ${{\mathrm{spherical}}}_{{r}{,}{\mathrm{\phi }}{,}{\mathrm{\theta }}}$ (6)