Student[VectorCalculus]
RootedVector
creates a vector rooted at a given point with specified components in a given coordinate system
Calling Sequence
Parameters
Description
Examples
RootedVector(origin,comps,c)
RootedVector(vspace, comps)
origin
-
root=list(algebraic) or root=Vector(algebraic); root point of the vector
vspace
root=module(Vector,GetRootPoint), VectorSpace where the vector lies
comps
list(algebraic) or Vector(algebraic); components specifying the coefficients of the basis vectors
c
(optional) name or name[name, name, ...]; specify the coordinate system, possibly indexed by the coordinate names
The call RootedVector(origin,comps,c) returns a vector rooted at point origin with components comps in c coordinates. Note that the Student[VectorCalculus] package only supports the cartesian, polar, spherical and cylindrical coordinate systems.
The rooted Vector is one of the four principal Vector data structures of the Student[VectorCalculus] package. Note that the Student[VectorCalculus] and the VectorCalculus packages share the same Vector data structures.
For details on the differences between the four principal Vector data structures, namely, rooted Vectors, position Vectors, free Vectors, and vector fields, see VectorCalculus,Details.
If no coordinate system argument is present, the current coordinate system is used.
The root point origin can be specified as a free or position Vector or as a list of coordinate entries. If it is a free or position Vector, the coordinate system attribute is checked and conversion of the point to the current or specified c coordinate system is done accordingly.
The keyword root can also be given as point.
The components comps must be specified as a free Vector in Cartesian coordinates, a position Vector or as a list. The elements of the Vector or list are taken to be the coefficients of the unit basis vectors in the target coordinate system (as specified by the c parameter, if given, or else the current coordinate system).
The call RootedVector(vpsace,comps) returns a vector rooted at the root point of the VectorSpace vspace with components comps in the coordinate system of vspace. No extra coordinate system needs to be specified. The comps argument can be a list, a free Vector in Cartesian coordinates or a position Vector.
The returned rooted vector has a VectorSpace attribute that contains a module representation of the vector space rooted at the point origin.
RootedVectors are always displayed as column vectors.
with⁡StudentVectorCalculus:
Introductory Examples:
v1≔RootedVector⁡root=1,2,3,1,1,1
v1≔111
About⁡v1
Type: Rooted VectorComponents: 1,1,1Coordinates: cartesianRoot Point: 1,2,3
GetSpace⁡v1
modulelocal_origin,_coords,_coords_dim;exportGetCoordinates,GetRootPoint,Vector,eval;end module
GetRootPoint⁡v1
v2≔RootedVector⁡point=1,π,1,1,polarr,t
v2≔11
About⁡v2
Type: Rooted VectorComponents: 1,1Coordinates: polarr,tRoot Point: 1,π
GetCoordinates⁡v2
polarr,t
rp≔Vector⁡1,1,coords=cartesian
v3≔RootedVector⁡root=rp,1,0,polarr,t
v3≔10
GetRootPoint⁡v3
vs≔VectorSpace⁡2,3,polarr,t:
v4≔RootedVector⁡root=vs,1,2
v4≔12
v5≔RootedVector⁡root=vs,3,4
v5≔34
GetRootPoint⁡v4
GetRootPoint⁡v5
See Also
attributes
Student[VectorCalculus][About]
Student[VectorCalculus][GetCoordinates]
Student[VectorCalculus][GetRootPoint]
Student[VectorCalculus][GetSpace]
Student[VectorCalculus][MapToBasis]
Student[VectorCalculus][Vector]
Student[VectorCalculus][VectorSpace]
Download Help Document