Physics[SubstituteTensorIndices] - perform substitution of covariant/contravariant tensor indices in tensorial expressions
|
Calling Sequence
|
|
SubstituteTensorIndices(mu = .., ~nu = .., ... expression)
|
|
Parameters
|
|
expression
|
-
|
any algebraic tensorial expression typically having some free and some repeated indices
|
mu = ... , ~nu = .., ...
|
-
|
the substitution equations, can be a sequence, or a set or list of them
|
evaluatetensor = ...
|
-
|
optional - can be true (default) or false, to indicate whether to evaluate the tensors after substituting on them
|
evaluateexpression = ...
|
-
|
optional - can be true or false (default), to indicate whether to evaluate expression after substituting the indices in its tensors
|
covariantandcontravariant = ...
|
-
|
optional - can be true (default) or false, to indicate whether to substitute both covariant and contravariant indices when only one of them is given as substitution equation
|
|
|
|
|
Description
|
|
•
|
The SubstituteTensorIndices substitutes indices in tensors. Nowhere else are the indices substituted, and the substitution can be performed in a covariant index, the corresponding contravariant one, or in both.
|
•
|
The tensors where indices are substituted are re-evaluated after substitution; this re-evaluation can optionally be suppressed giving the argument evaluatetensor = false. The expression where these re-evaluated tensors are introduce is by default not re-evaluated; you can change that passing the optional argument evaluateexpression = true.
|
•
|
To check and determine the free and repeated indices of an expression use Check.
|
|
|
Compatibility
|
|
•
|
The Physics[SubstituteTensorIndices] command was introduced in Maple 16.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
Define a couple of arbitrary spacetime tensors for exploration purposes
>
|
|
| (2) |
Enter, for example, this tensorial expression
>
|
|
| (3) |
To check the repeated and free indices in an expression use Check
>
|
|
| (4) |
So (3) has no free indices. Substitute now : the standard subs command will only substitute the covariant
>
|
|
| (5) |
Consequently, the resulting expression is not equivalent to (3): it now has free indices
>
|
|
| (6) |
To substitute both covariant and contravariant repeated indices obtaining an expression equivalent to original one use
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
|
|
References
|
|
|
Landau, L.D., and Lifshitz, E.M. The Classical Theory of Fields, Course of Theoretical Physics Volume 2, fourth revised English edition. Elsevier, 1975.
|
|
|
Download Help Document
Was this information helpful?