VectorField & OneForm Object Overloaded builtins
overview of overloaded builtins for VectorField & OneForm objects
Description
Examples
Compatibility
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.
with⁡LieAlgebrasOfVectorFields:
map, subs
X≔VectorField⁡ξ⁡x,y⁢Dx+η⁡x,y⁢Dy
X≔ξ⁡x,y⁢ⅆⅆx+η⁡x,y⁢ⅆⅆy
R≔subs⁡ξ⁡x,y=−y,η⁡x,y=x,X
R≔−y⁢ⅆⅆx+x⁢ⅆⅆy
map⁡z↦2⋅z,R
−2⁢y⁢ⅆⅆx+2⁢x⁢ⅆⅆy
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
normal⁡X
−x⁢ⅆⅆx+cos⁡a2+sin⁡a2⁢ⅆⅆy
expand⁡X
simplify⁡X
−x⁢ⅆⅆx+ⅆⅆy
type
type⁡X,VectorField,type⁡X,object,type⁡X,`module`
true,true,true
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
The vector field contains x.
type⁡X,dependent⁡x,type⁡X,freeof⁡x
indets, has, hastype
X≔VectorField⁡1,x,sin⁡a,y,cos⁡a,z
X≔ⅆⅆx+sin⁡a⁢ⅆⅆy+cos⁡a⁢ⅆⅆz
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
has⁡X,ξ,has⁡X,sin,has⁡X,z
false,true,true
hastype⁡X,function
true
hastype⁡X,float
false
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]
Download Help Document