create a Vector rooted at a given point with specified components in a given coordinate system - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Vector Calculus : VectorCalculus/RootedVector

VectorCalculus[RootedVector] - create a Vector rooted at a given point with specified components in a given coordinate system

Calling Sequence

RootedVector(origin, comps, c)

RootedVector(vspace, comps)

Parameters

origin

-

root=list(algebraic) or root=Vector(algebraic); specify root point of the vector

vspace

-

root=module(Vector,GetRootPoint), specify VectorSpace where the vector lies

comps

-

list(algebraic) or Vector(algebraic); components specifying the coefficients of the basis vectors

c

-

(optional) symbol or symbol[name, name, ...]; specify the coordinate system, possibly indexed by the coordinate names

Description

• 

The call RootedVector(origin,comps,c) returns a Vector rooted at point origin with components comps in c coordinates. The rooted Vector is one of the principal data structures of the Vector Calculus package.

• 

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 argument c can be of the form coords=coord_name, coordinates=coord_name,  or simply coord_name, where coord_name is the name of a valid coordinate system.

• 

The components comps should be specified as a list. Alternatively, for convenience, it can be specified as a free Vector in Cartesian coordinates or a position Vector. 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.

• 

Rooted Vectors always display as column vectors, independent of any formatting specified by a call to the BasisFormat command.

• 

For details on the differences between rooted Vectors, free Vectors, position Vectors and vector fields, see VectorCalculus,Details.

Examples

withVectorCalculus:

Introductory Examples:

v1:=RootedVectorroot=1,2,3,1,1,1

v1:=111

(1)

Aboutv1

Type: Rooted VectorComponents: 1,1,1Coordinates: cartesianRoot Point: 1,2,3

(2)

GetSpacev1

modulelocal_origin,_coords,_coords_dim;exportGetCoordinates,GetRootPoint,Vector;end module

(3)

GetRootPointv1

ex+2ey+3ez

(4)

v2:=RootedVectorpoint=1,π,1,1,coords=polarr,t

v2:=11

(5)

Aboutv2

Type: Rooted VectorComponents: 1,1Coordinates: polarr,tRoot Point: 1,π

(6)

GetCoordinatesv2

polarr,t

(7)

rp:=Vector1,1,coords=cartesian

rp:=ex+ey

(8)

v3:=RootedVectorroot=rp,1,0,polarr,t

v3:=10

(9)

GetRootPointv3

2er+14πet

(10)

vs:=VectorSpace2,3,parabolicu,v:

v4:=RootedVectorroot=vs,1,2

v4:=12

(11)

v5:=RootedVectorroot=vs,3,4

v5:=34

(12)

GetRootPointv4

2eu+3ev

(13)

GetRootPointv5

2eu+3ev

(14)

See Also

attributes, VectorCalculus, VectorCalculus[About], VectorCalculus[GetCoordinates], VectorCalculus[GetRootPoint], VectorCalculus[GetSpace], VectorCalculus[MapToBasis], VectorCalculus[Vector], VectorCalculus[VectorSpace]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam