Student/VectorCalculus/GetPVDescription - Maple Help

Student[VectorCalculus]

 GetPVDescription
 returns a description of a position Vector in a specified coordinate system.

 Calling Sequence GetPVDescription(pvector) GetPVDescription(pvector, c)

Parameters

 pvector - Vector; the position Vector c - name or name[name, name, ...]; specify the coordinate system, optionally indexed by the coordinate names

Description

 • The GetPVDescription returns a list with the description of pvector in c coordinates; pvector is not changed.
 • If no coordinate argument is provided, the description of pvector is given with respect to the current coordinate system as long as the dimensions match.
 • The position Vector is always a cartesian Vector rooted at the origin, but its description varies with the choice of coordinates. For more details about position Vectors, see VectorCalculus,Details.

Examples

 > $\mathrm{with}\left(\mathrm{Student}\left[\mathrm{VectorCalculus}\right]\right):$
 > $\mathrm{pv}≔\mathrm{PositionVector}\left(\left[p\mathrm{cos}\left(p\right),p\mathrm{sin}\left(p\right)\right],\mathrm{cartesian}\left[x,y\right]\right)$
 ${\mathrm{pv}}{≔}\left[\begin{array}{c}{p}{}{\mathrm{cos}}{}\left({p}\right)\\ {p}{}{\mathrm{sin}}{}\left({p}\right)\end{array}\right]$ (1)
 > $M≔\mathrm{GetPVDescription}\left(\mathrm{pv},\mathrm{polar}\left[r,t\right]\right):$
 > $\mathrm{simplify}\left(M\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{assuming}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}p::\mathrm{real}$
 $\left[\left|{p}\right|{,}{\mathrm{arctan}}{}\left({p}{}{\mathrm{sin}}{}\left({p}\right){,}{p}{}{\mathrm{cos}}{}\left({p}\right)\right)\right]$ (2)
 > $\mathrm{pv2}≔\mathrm{PositionVector}\left(M,\mathrm{polar}\left[r,t\right]\right)$
 ${\mathrm{pv2}}{≔}\left[\begin{array}{c}{p}{}{\mathrm{cos}}{}\left({p}\right)\\ {p}{}{\mathrm{sin}}{}\left({p}\right)\end{array}\right]$ (3)
 > $c≔\mathrm{arctan}\left(u\right)$
 ${c}{≔}{\mathrm{arctan}}{}\left({u}\right)$ (4)
 > $\mathrm{pv3}≔\mathrm{PositionVector}\left(\left[\mathrm{cos}\left(u\right)\mathrm{cos}\left(c\right),\mathrm{sin}\left(u\right)\mathrm{cos}\left(c\right),-\mathrm{sin}\left(c\right)\right],\mathrm{cartesian}\left[x,y,z\right]\right)$
 ${\mathrm{pv3}}{≔}\left[\begin{array}{c}\frac{{\mathrm{cos}}{}\left({u}\right)}{\sqrt{{{u}}^{{2}}{+}{1}}}\\ \frac{{\mathrm{sin}}{}\left({u}\right)}{\sqrt{{{u}}^{{2}}{+}{1}}}\\ {-}\frac{{u}}{\sqrt{{{u}}^{{2}}{+}{1}}}\end{array}\right]$ (5)
 > $M≔\mathrm{GetPVDescription}\left(\mathrm{pv3},\mathrm{spherical}\left[r,p,t\right]\right):$
 > $\mathrm{simplify}\left(M\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{assuming}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}u::\mathrm{real}$
 $\left[{1}{,}{\mathrm{arctan}}{}\left({1}{,}{-}{u}\right){,}{\mathrm{arctan}}{}\left({\mathrm{sin}}{}\left({u}\right){,}{\mathrm{cos}}{}\left({u}\right)\right)\right]$ (6)