ConvertVector - Maple Help

VectorCalculus

 ConvertVector
 converts Cartesian free Vectors, rooted Vectors and position Vectors among themselves Calling Sequence ConvertVector(v,form) ConvertVector(v,form, root ) Parameters

 v - 'Vector'(algebraic); the Cartesian free Vector, rooted Vector or position Vector to convert form - name; specify the type of Vector to be converted to: free, rooted or position root - (optional) list(algebraic) or Vector(algebraic); root point of the converted Vector Description

 • The ConvertVector command converts Cartesian free Vectors, rooted Vectors and position Vectors among themselves by specifying the desired type. If v is not a Cartesian Vector an error is raised.
 • If form is rooted, the root point can be specified as a list or a free Vector with the extra optional parameter root. If root is a list, it is interpreted in Cartesian coordinates, if it is a free Vector in non-Cartesian coordinates, an appropriate transformation is made to obtain a Cartesian root.
 – If form is rooted, v is a free, rooted or position Vector and root is provided, the result is the Vector rooted at root.
 – If form is rooted, v is a position Vector and root is not provided, then the Vector is rooted at the Cartesian origin.
 – If form is rooted, v is a free Vector and root is not provided an error is raised. Examples

 > $\mathrm{with}\left(\mathrm{VectorCalculus}\right):$
 > $\mathrm{ConvertVector}\left(\mathrm{PositionVector}\left(\left[1,p\right],\mathrm{parabolic}\right),'\mathrm{rooted}'\right)$
 $\left[\begin{array}{c}\frac{{1}}{{2}}{-}\frac{{{p}}^{{2}}}{{2}}\\ {p}\end{array}\right]$ (1)
 > $\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]$ (2)
 > $\mathrm{v1}≔\mathrm{ConvertVector}\left(\mathrm{pv},'\mathrm{free}'\right)$
 ${\mathrm{v1}}{≔}\left({p}{}{\mathrm{cos}}{}\left({p}\right)\right){{e}}_{{x}}{+}\left({p}{}{\mathrm{sin}}{}\left({p}\right)\right){{e}}_{{y}}$ (3)
 > $\mathrm{v2}≔\mathrm{ConvertVector}\left(\mathrm{pv},'\mathrm{rooted}'\right)$
 ${\mathrm{v2}}{≔}\left[\begin{array}{c}{p}{}{\mathrm{cos}}{}\left({p}\right)\\ {p}{}{\mathrm{sin}}{}\left({p}\right)\end{array}\right]$ (4)
 > $\mathrm{About}\left(\mathrm{v2}\right)$
 $\left[\begin{array}{cc}{\mathrm{Type:}}& {\mathrm{Rooted Vector}}\\ {\mathrm{Components:}}& \left[{p}{}{\mathrm{cos}}{}\left({p}\right){,}{p}{}{\mathrm{sin}}{}\left({p}\right)\right]\\ {\mathrm{Coordinates:}}& {{\mathrm{cartesian}}}_{{x}{,}{y}}\\ {\mathrm{Root Point:}}& \left[{0}{,}{0}\right]\end{array}\right]$ (5)
 > $\mathrm{GetRootPoint}\left(\mathrm{v2}\right)$
 $\left({0}\right){{e}}_{{x}}{+}\left({0}\right){{e}}_{{y}}$ (6)
 > $\mathrm{v3}≔\mathrm{ConvertVector}\left(\mathrm{pv},'\mathrm{rooted}',\left[1,1\right]\right)$
 ${\mathrm{v3}}{≔}\left[\begin{array}{c}{p}{}{\mathrm{cos}}{}\left({p}\right)\\ {p}{}{\mathrm{sin}}{}\left({p}\right)\end{array}\right]$ (7)
 > $\mathrm{GetRootPoint}\left(\mathrm{v3}\right)$
 $\left({1}\right){{e}}_{{x}}{+}\left({1}\right){{e}}_{{y}}$ (8)
 > $\mathrm{v4}≔\mathrm{ConvertVector}\left(\mathrm{pv},'\mathrm{rooted}',\mathrm{Vector}\left(⟨1,\frac{\mathrm{\pi }}{2}⟩,\mathrm{coords}=\mathrm{polar}\left[u,v\right]\right)\right)$
 ${\mathrm{v4}}{≔}\left[\begin{array}{c}{p}{}{\mathrm{cos}}{}\left({p}\right)\\ {p}{}{\mathrm{sin}}{}\left({p}\right)\end{array}\right]$ (9)
 > $\mathrm{GetRootPoint}\left(\mathrm{v4}\right)$
 $\left({0}\right){{e}}_{{x}}{+}\left({1}\right){{e}}_{{y}}$ (10)
{"ft_lang_label":"__label__en","ft_lang_prob":0.60033387,"math_prob":0.9999933,"size":2003,"snap":"2021-43-2021-49","text_gpt3_token_len":627,"char_repetition_ratio":0.19809905,"word_repetition_ratio":0.11553785,"special_character_ratio":0.18322515,"punctuation_ratio":0.13486005,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9996797,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-11-29T23:56:32Z\",\"WARC-Record-ID\":\"<urn:uuid:092d44a7-3dea-4057-9653-6f2c599934b3>\",\"Content-Length\":\"243468\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1763be5a-a18a-487a-afae-9b6f3cbacb72>\",\"WARC-Concurrent-To\":\"<urn:uuid:5f7e69fa-2e4c-49e9-9828-6be90578c99c>\",\"WARC-IP-Address\":\"199.71.183.28\",\"WARC-Target-URI\":\"https://de.maplesoft.com/support/help/Maple/view.aspx?path=VectorCalculus/ConvertVector\",\"WARC-Payload-Digest\":\"sha1:NVRC3QQBUWFQT5MWUD3O6OYTBP6IBJWZ\",\"WARC-Block-Digest\":\"sha1:FZT5EVWVWVMBNHWU4X5MQB7VTWOP3ZXX\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964358847.80_warc_CC-MAIN-20211129225145-20211130015145-00034.warc.gz\"}"}