GetNames - Maple Help

VectorCalculus

 GetNames
 return the coordinate variable names of a Vector

 Calling Sequence GetNames(v)

Parameters

 v - Vector; where v is one of free vector, VectorField, PositionVector, or RootedVector

Description

 • The GetNames(v) calling sequence returns the coordinate variable names of the Vector v as a list of strings.

Examples

 > $\mathrm{with}\left(\mathrm{VectorCalculus}\right):$
 > $\mathrm{v1}≔\mathrm{Vector}\left(⟨\mathrm{sin}\left(t\right),\mathrm{cos}\left(t\right),{t}^{2}⟩\right)$
 ${\mathrm{v1}}{≔}\left({\mathrm{sin}}{}\left({t}\right)\right){{e}}_{{x}}{+}\left({\mathrm{cos}}{}\left({t}\right)\right){{e}}_{{y}}{+}\left({{t}}^{{2}}\right){{e}}_{{z}}$ (1)
 > $\mathrm{GetNames}\left(\mathrm{v1}\right)$
 $\left[{"x"}{,}{"y"}{,}{"z"}\right]$ (2)
 > $\mathrm{v2}≔\mathrm{VectorField}\left(⟨x,y⟩,\mathrm{cartesian}\left[x,y\right]\right)$
 ${\mathrm{v2}}{≔}\left({x}\right){\stackrel{{_}}{{e}}}_{{x}}{+}\left({y}\right){\stackrel{{_}}{{e}}}_{{y}}$ (3)
 > $\mathrm{GetNames}\left(\mathrm{v2}\right)$
 $\left[{"x"}{,}{"y"}\right]$ (4)
 > $\mathrm{GetNames}\left(\mathrm{PositionVector}\left(\left[x,y\right]\right)\right)$
 $\left[{"x"}{,}{"y"}\right]$ (5)
 > $\mathrm{GetNames}\left(\mathrm{RootedVector}\left(\mathrm{root}=\left[u,v\right],⟨x,y⟩\right)\right)$
 $\left[{"x"}{,}{"y"}\right]$ (6)

Compatibility

 • The VectorCalculus[GetNames] command was updated in Maple 2017.