 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 coords.  For information on how to add new coordinate systems, see AddCoordinates. Examples

 > $\mathrm{with}\left(\mathrm{VectorCalculus}\right):$
 > $v≔⟨a,b⟩$ > $\mathrm{SetCoordinates}\left(v,'\mathrm{polar}'\right)$ > $\mathrm{GetCoordinates}\left(v\right)$
 ${\mathrm{polar}}$ (1)
 > $\mathrm{SetCoordinates}\left({'\mathrm{spherical}'}_{r,\mathrm{φ},\mathrm{θ}}\right)$
 ${{\mathrm{spherical}}}_{{r}{,}{\mathrm{\phi }}{,}{\mathrm{\theta }}}$ (2)
 > $v≔\mathrm{VectorField}\left(⟨r,0,0⟩\right)$ > $\mathrm{GetCoordinates}\left(v\right)$
 ${{\mathrm{spherical}}}_{{r}{,}{\mathrm{\phi }}{,}{\mathrm{\theta }}}$ (3)