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

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

> 

with⁡LieAlgebrasOfVectorFields:

 

The +, -, * Operators

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

> 

R≔VectorField⁡x⁢Dy−y⁢Dx,space=x,y

R≔−y⁢ⅆⅆx+x⁢ⅆⅆy

(1)
> 

Tx≔VectorField⁡Dx,space=x,y

Tx≔ⅆⅆx

(2)
> 

Ty≔VectorField⁡Dy,space=x,y

Ty≔ⅆⅆy

(3)
> 

Tx+Ty

ⅆⅆx+ⅆⅆy

(4)
> 

−R

y⁢ⅆⅆx−x⁢ⅆⅆy

(5)
> 

x⁢Tx+y⁢Ty

x⁢ⅆⅆx+y⁢ⅆⅆy

(6)
> 

R+y0⁢Tx−x0⁢Ty

y0−y⁢ⅆⅆx+−x0+x⁢ⅆⅆy

(7)

One-form arithmetic works same as vector field arithmetic.

> 

ωx≔OneForm⁡dx,space=x,y,z

ωx≔dx

(8)
> 

ωy≔OneForm⁡dy,space=x,y,z

ωy≔dy

(9)
> 

ωz≔OneForm⁡dz,space=x,y,z

ωz≔dz

(10)
> 

x2⁢ωz+x⁢ωy+ωx

x2⁢dz+x⁢dy+dx

(11)

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

> 

add⁡ai⁢ωi,iinx,y,z

ax⁢dx+ay⁢dy+az⁢dz

(12)

The = Operator

> 

X≔VectorField⁡x⁢x−1⁢Dx+y⁢Dy,space=x,y

X≔x⁢x−1⁢ⅆⅆx+y⁢ⅆⅆy

(13)
> 

Y≔VectorField⁡x2−x⁢Dx+y⁢Dy,space=x,y

Y≔x2−x⁢ⅆⅆx+y⁢ⅆⅆy

(14)
> 

evalb⁡X=Y

false

(15)
> 

evalb⁡expand⁡X=expand⁡Y

true

(16)
> 

θ1≔OneForm⁡dx,space=x

θ1≔dx

(17)
> 

θ2≔OneForm⁡dx,space=x,y

θ2≔dx

(18)

 

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

> 

evalb⁡θ1=θ2

false

(19)

The ?[] Operator

> 

X≔VectorField⁡x2⁢Dz+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]