Operators - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


VectorField & OneForm Object Operator Methods

overview of VectorField and OneForm object operators

 

Description

Examples

Compatibility

Description

• 

The + and - operators provide addition and subtraction of two objects X and Y, and returns a new object Z. These objects are either all VectorField or all OneForm objects.

• 

These objects can also be added using the existing commands add and sum.

• 

The * operator provides scalar multiplication of an object X, and returns a new object Y. These two objects are either both VectorField or both OneForm objects.

• 

The = operator tests equality of two VectorField or OneForm objects. The two objects are regarded as equal if they live on the same space and have the same components.

• 

The ?[] operator provides a look-up of components of a VectorField or OneForm object. The object is indexed by its space coordinates, see examples below.

• 

These operators are associated with the VectorField and OneForm objects. For more detail, see Overview of the VectorField object, Overview of the OneForm object.

Examples

withLieAlgebrasOfVectorFields:

 

The +, -, * Operators

We first construct some suitable VectorField objects: rotation, translations in (x,y) coordinates

RVectorFieldxDyyDx,space=x,y

Ryⅆⅆx+xⅆⅆy

(1)

TxVectorFieldDx,space=x,y

Txⅆⅆx

(2)

TyVectorFieldDy,space=x,y

Tyⅆⅆy

(3)

Tx+Ty

ⅆⅆx+ⅆⅆy

(4)

R

yⅆⅆxxⅆⅆy

(5)

xTx+yTy

xⅆⅆx+yⅆⅆy

(6)

R+y0Txx0Ty

y0yⅆⅆx+x0+xⅆⅆy

(7)

One-form arithmetic works same as vector field arithmetic.

ωxOneFormdx,space=x,y,z

ωxdx

(8)

ωyOneFormdy,space=x,y,z

ωydy

(9)

ωzOneFormdz,space=x,y,z

ωzdz

(10)

x2ωz+xωy+ωx

x2dz+xdy+dx

(11)

Taking a linear combination of these one-forms using add (or sum) command.

addaiωi,iinx,y,z

axdx+aydy+azdz

(12)

The = Operator

XVectorFieldxx1Dx+yDy,space=x,y

Xxx1ⅆⅆx+yⅆⅆy

(13)

YVectorFieldx2xDx+yDy,space=x,y

Yx2xⅆⅆx+yⅆⅆy

(14)

evalbX=Y

false

(15)

evalbexpandX=expandY

true

(16)

θ1OneFormdx,space=x

θ1dx

(17)

θ2OneFormdx,space=x,y

θ2dx

(18)

 

Although θ1,θ2 look the same, they are not equal because they live on different spaces.

evalbθ1=θ2

false

(19)

The ?[] Operator

XVectorFieldx2Dz+Dy,space=x,y,z

Xⅆⅆy+x2ⅆⅆz

(20)

 

Xx,Xy,Xz

0,1,x2

(21)

Compatibility

• 

The VectorField & OneForm Object Operator Methods command was introduced in Maple 2020.

• 

For more information on Maple 2020 changes, see Updates in Maple 2020.

See Also

VectorField (Object overview)

OneForm (Object overview)

LieAlgebrasOfVectorFields[VectorField]

LieAlgebrasOfVectorFields[OneForm]