JetBundleCategory¶
jet.spad line 37 [edit on github]
JetBundleCategory provides basic data structures and procedures for jet bundles. Nearly all necessary functions are implemented already here. Only the representation and functions which directly access it must be implemented in a domain. Two notations of derivatives are supported. Default is multi-index notation, where the i
-th entry of the index denotes the number of differentiations taken with respect to x^i
. In repeated index notation each entry i
in the index denotes a differentiation with respect to x^i
. The choice affects, however, only in- and output. Internally, multi-index notation is used throughout.
- 1: %
1
generates the special “jet variable” 1, which is needed for the representation of linear functions.
- <=: (%, %) -> Boolean
from PartialOrder
- <: (%, %) -> Boolean
from PartialOrder
- >=: (%, %) -> Boolean
from PartialOrder
- >: (%, %) -> Boolean
jv1 > jv2
checks whetherjv1
is greater thanjv2
in the internal ordering.
- allRepeated: List NonNegativeInteger -> List List PositiveInteger
allRepeated(ind)
returns a list of all possible realizations of a given multi-index as repeated index.
- class: % -> NonNegativeInteger
class(jv)
yields the class of the jet variablejv
(Class of multi-index for derivative, 0 else).
- class: List NonNegativeInteger -> NonNegativeInteger
class(ind)
yields the class of the multi-indexind
(Position for first non-vanishing entry).
- coerce: % -> Expression Integer
from CoercibleTo Expression Integer
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- derivativeOf?: (%, %) -> List NonNegativeInteger
derivativeOf?(jv1, jv2)
checks whetherjv1
is a derivative ofjv2
. In this case, the difference of their multi-indices is returned. Otherwise, an empty list is returned.
- differentiate: (%, PositiveInteger) -> Union(%, 0)
differentiate(jv, i)
differentiatesjv
wrt
thei
-
th independent variable.
- dimJ: NonNegativeInteger -> NonNegativeInteger
dimJ(q)
computes the (fibre) dimension of theq
-
th order jet bundle.
- dimS: NonNegativeInteger -> NonNegativeInteger
dimS(q)
computes dimension ofSqT
x
VE (= number of derivatives of orderq
).
- getNotation: () -> Symbol
getNotation()
shows the currently used notation.
- index: % -> PositiveInteger
index(jv)
yields number of the jet variablejv
.
- integrate: (%, PositiveInteger) -> %
integrate(jv, i)
is likeintegrateIfCan(jv, i)
but yields an error, if the integration is not possible.
- integrateIfCan: (%, PositiveInteger) -> Union(%, failed)
integrate(jv, i)
integratedjv
wrt
thei
-
th independent variable, if possible.
- latex: % -> String
from SetCategory
- m2r: List NonNegativeInteger -> List PositiveInteger
m2r(ind)
transforms a multi-index into a repeated index.
- max: (%, %) -> %
from OrderedSet
- min: (%, %) -> %
from OrderedSet
- multiIndex: % -> List NonNegativeInteger
multiIndex(jv)
returns the multi-index of the jet variablejv
.
- name: % -> Symbol
name(jv)
yields the name of the jet variablejv
.
- numDepVar: () -> PositiveInteger
numDepVar
returns the number of dependent variables.
- numIndVar: () -> PositiveInteger
numIndVar
returns the number of independent variables.
- one?: % -> Boolean
one?(jv)
checks whether the jet variablesjv
is the special variable 1.
- order: % -> NonNegativeInteger
order(jv)
yields the order of the jet variablejv
(Order as derivative).
- P: (PositiveInteger, List NonNegativeInteger) -> %
P(i, ind)
generates the derivative of thei
-
th dependent variablewrt
the indexind
. Whetherind
is interpreted as multi-index or as repeated index depends on the chosen notation.
- P: (PositiveInteger, NonNegativeInteger) -> %
P(i, j)
generates thej
-
th derivative of thei
-
th independent variablewrt
the only independent variable.
- P: List NonNegativeInteger -> %
P(ind)
generates the derivative of the only dependent variablewrt
the indexind
.
- P: NonNegativeInteger -> %
P(i)
generates thei
-
th derivative of the only dependent variablewrt
the only independent variable.
- Pm: (PositiveInteger, List NonNegativeInteger) -> %
Pm(i, ind)
is likeP(i, ind)
butind
is always a multi-index.
- Pr: (PositiveInteger, List PositiveInteger) -> %
Pr(i, ind)
is likeP(i, ind)
butind
is always a repeated index.
- r2m: List PositiveInteger -> List NonNegativeInteger
r2m(ind)
transforms a repeated index into a multi-index.
- repeatedIndex: % -> List PositiveInteger
repeatedIndex(jv)
returns the multi-index of the jet variablejv
in repeated index notation.
- setNotation: Symbol -> Symbol
setNotation(s)
chooses the notation used for derivatives. Returns the old value.
- smaller?: (%, %) -> Boolean
from Comparable
- type: % -> Symbol
type(jv)
yields the type (Const, Indep, Dep, Deriv
) of the jet variablejv
.
- U: () -> %
U()
generates the only dependent variable.
- U: PositiveInteger -> %
U(i)
generates thei
-
th dependent variable.
- variables: (NonNegativeInteger, PositiveInteger) -> List %
variables(q, c)
computes all jet variables of orderq
whose class is greater than or equal toc
.
- variables: NonNegativeInteger -> List %
variables(q)
computes the list of all jet variables up to orderq
.
- weight: % -> NonNegativeInteger
weight(jv)
assigns each jet variable a unique integer reflecting its position in the internal ordering. The variable with the greater weight is also greater in this ordering.
- X: () -> %
X()
generates the only independent variable.
- X: PositiveInteger -> %
X(i)
generates thei
-
th independent variable.