Student/VectorCalculus/ConvertVector - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Student/VectorCalculus/ConvertVector

Student[VectorCalculus]

  

ConvertVector

  

converts Cartesian free Vectors, rooted Vectors and position Vectors among themselves

 

Calling Sequence

Parameters

Description

Examples

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.

• 

The Student[VectorCalculus] package uses the same Vector data structures as the VectorCalculus package. For details about the various types of Vectors in these packages, see VectorCalculus,Details.

Examples

> 

with⁡StudentVectorCalculus:

> 

ConvertVector⁡PositionVector⁡1,p,polar,rooted

cos⁡psin⁡p

(1)
> 

pv≔PositionVector⁡p⁢cos⁡p,p⁢sin⁡p,cartesianx,y

pv≔p⁢cos⁡pp⁢sin⁡p

(2)
> 

v1≔ConvertVector⁡pv,free

v1≔p⁢cos⁡pex+p⁢sin⁡pey

(3)
> 

v2≔ConvertVector⁡pv,rooted

v2≔p⁢cos⁡pp⁢sin⁡p

(4)
> 

About⁡v2

Type: Rooted VectorComponents: p⁢cos⁡p,p⁢sin⁡pCoordinates: cartesianx,yRoot Point: 0,0

(5)
> 

GetRootPoint⁡v2

0ex+0ey

(6)
> 

v3≔ConvertVector⁡pv,rooted,1,1

v3≔p⁢cos⁡pp⁢sin⁡p

(7)
> 

GetRootPoint⁡v3

1ex+1ey

(8)
> 

v4≔ConvertVector⁡pv,rooted,Vector⁡1,π2,coords=polaru,v

v4≔p⁢cos⁡pp⁢sin⁡p

(9)
> 

GetRootPoint⁡v4

0ex+1ey

(10)

See Also

Student[VectorCalculus]

Student[VectorCalculus][About]

Student[VectorCalculus][PlotPositionVector]

Student[VectorCalculus][PositionVector]

Student[VectorCalculus][RootedVector]

Student[VectorCalculus][Vector]