Builtins - 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 Overloaded builtins

overview of overloaded builtins for VectorField & OneForm objects

 

Description

Examples

Compatibility

Description

• 

The functionalities of some Maple builtin commands are extended for use on VectorField and OneForm objects.

• 

The following builtins have been overloaded for this purpose: map, subs, normal, expand, simplify, indets, has, type, hastype

• 

The map, subs, normal, expand, simplify builtin commands accept a VectorField or a OneForm object and apply their methods onto the components of the object. Then they return a VectorField or a OneForm object with new components.

• 

Let V be a VectorField (respectively OneForm) object.

• 

(i) The call type(V, t) returns true if t is any of the following types: module, object, anything, VectorField (respectively OneForm), appliable, and indexable. See examples below.

• 

(ii) The call type(V,indexable(t)) returns true if the components of V are of type t. See example below.

• 

(iii) The call type(V, dependent(x)) and type(V, freeof(x)) respectively return true if the components and space coordinates of V contain (respectively don't contain) x. See example below.

• 

The indets, has, hastype builtin commands accept a VectorField or a OneForm object and apply their methods onto the space coordinate variables and the components of the object.

• 

These overloaded builtins 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:

 

map, subs

> 

X≔VectorField⁡ξ⁡x,y⁢Dx+η⁡x,y⁢Dy

X≔ξ⁡x,y⁢ⅆⅆx+η⁡x,y⁢ⅆⅆy

(1)
> 

R≔subs⁡ξ⁡x,y=−y,η⁡x,y=x,X

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

(2)
> 

map⁡z↦2⋅z,R

−2⁢y⁢ⅆⅆx+2⁢x⁢ⅆⅆy

(3)

normal, expand, simplify

> 

X≔VectorField⁡x⁢x−1−x2,x,cos⁡a2+sin⁡a2,y

X≔x⁢x−1−x2⁢ⅆⅆx+cos⁡a2+sin⁡a2⁢ⅆⅆy

(4)
> 

normal⁡X

−x⁢ⅆⅆx+cos⁡a2+sin⁡a2⁢ⅆⅆy

(5)
> 

expand⁡X

−x⁢ⅆⅆx+cos⁡a2+sin⁡a2⁢ⅆⅆy

(6)
> 

simplify⁡X

−x⁢ⅆⅆx+ⅆⅆy

(7)

type

> 

X≔VectorField⁡ξ⁡x,y⁢Dx+η⁡x,y⁢Dy

X≔ξ⁡x,y⁢ⅆⅆx+η⁡x,y⁢ⅆⅆy

(8)
> 

type⁡X,VectorField,type⁡X,object,type⁡X,`module`

true,true,true

(9)

Checking type of the vector field's components, they are functions but not positive integers.

> 

type⁡X,indexable⁡function,type⁡X,indexable⁡posint

true,false

(10)

The vector field contains x.

> 

type⁡X,dependent⁡x,type⁡X,freeof⁡x

true,false

(11)

indets, has, hastype

> 

X≔VectorField⁡1,x,sin⁡a,y,cos⁡a,z

X≔ⅆⅆx+sin⁡a⁢ⅆⅆy+cos⁡a⁢ⅆⅆz

(12)

The indets of X includes all space variables as well as the indets occurring in the components of X.

> 

indets⁡X

a,x,y,z,cos⁡a,sin⁡a

(13)
> 

has⁡X,ξ,has⁡X,sin,has⁡X,z

false,true,true

(14)
> 

hastype⁡X,function

true

(15)
> 

hastype⁡X,float

false

(16)

Compatibility

• 

The VectorField & OneForm Object Overloaded builtins 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]