- Indicial Tensor Manipulation package. It may be loaded by
LOADFILE("itensr"); A manual for the Tensor packages is
available in share/tensor.descr. A demo is available by
DEMO("itenso.dem1"); (and additional demos are in
("itenso.dem2"), ("itenso.dem3") and following).
- There are two tensor packages in MACSYMA, CTENSR and
ITENSR. CTENSR is Component Tensor Manipulation, and may be accessed
with LOAD(CTENSR); . ITENSR is Indicial Tensor Manipulation, and is
loaded by doing LOAD(ITENSR); A manual for CTENSR AND ITENSR is
available from the LCS Publications Office. Request MIT/LCS/TM-167.
In addition, demos exist on the TENSOR; directory under the filenames
CTENSO DEMO1, DEMO2, etc. and ITENSO DEMO1, DEMO2, etc. Do
DEMO("ctenso.dem1"); or DEMO("itenso.dem2"); Send bugs or
comments to RP or TENSOR.
[Tensor Package] Simplifies exp by renaming dummy
indices and reordering all indices as dictated by symmetry conditions
imposed on them. If ALLSYM is TRUE then all indices are assumed
symmetric, otherwise symmetry information provided by DECSYM
declarations will be used. The dummy indices are renamed in the same
manner as in the RENAME function. When CANFORM is applied to a large
expression the calculation may take a considerable amount of time.
This time can be shortened by calling RENAME on the expression first.
Also see the example under DECSYM. Note: CANFORM may not be able to
reduce an expression completely to its simplest form although it will
always return a mathematically correct result.
[Tensor Package] Simplifies exp by renaming (see RENAME)
and permuting dummy indices. CANTEN is restricted to sums of tensor
products in which no derivatives are present. As such it is limited
and should only be used if CANFORM is not capable of carrying out the
returns the argument (phase angle) of exp. Due to the
conventions and restrictions, principal value cannot be guaranteed
unless exp is numeric.
default:  determines the numerical suffix to be used in
generating the next dummy index in the tensor package. The prefix is
determined by the option DUMMYX[#].
gives tensor1 the property that the
contraction of a product of tensor1 and tensor2 results in tensor3
with the appropriate indices. If only one argument, tensor1, is
given, then the contraction of the product of tensor1 with any indexed
object having the appropriate indices (say tensor) will yield an
indexed object with that name, i.e.tensor, and with a new set of
indices reflecting the contractions performed.
For example, if METRIC: G, then DEFCON(G) will implement the
raising and lowering of indices through contraction with the metric
More than one DEFCON can be given for the same indexed object; the
latest one given which applies in a particular contraction will be
CONTRACTIONS is a list of those indexed objects which have been given
contraction properties with DEFCON.
Tensor Package - will set to zero, in
exp, all occurrences of the tensori that have no derivative indices.
Tensor Package - will set to zero, in
exp, all occurrences of the tensori that have derivative indices.
Tensor Package - will set to zero, in exp, all
occurrences of the differentiated object tensor that have n or more
derivative indices as the following example demonstrates.
J R S J R
(D1) A + A
I,K R S I,K R
is the generalized Kronecker delta function defined in
the Tensor package with L1 the list of covariant indices and L2 the
list of contravariant indices. KDELTA([i],[j]) returns the ordinary
Kronecker delta. The command EV(EXP,KDELTA) causes the evaluation of
an expression containing KDELTA(,) to the dimension of the
is the permutation (or Levi-Civita) tensor which yields 1 if
the list L consists of an even permutation of integers, -1 if it
consists of an odd permutation, and 0 if some indices in L are
imposes the Lorentz condition by substituting 0 for all
indexed objects in exp that have a derivative index identical to a
will display exp in the same manner as SHOW; however,
any tensor d'Alembertian occurring in exp will be indicated using the
symbol . For example, P([M],[N]) represents
specifies the metric by assigning the variable METRIC:G; in
addition, the contraction properties of the metric G are set up by
executing the commands DEFCON(G), DEFCON(G,G,KDELTA).
The variable METRIC, default: , is bound to the metric, assigned by
the METRIC(g) command.
gives the user a quick picture of the "size" of the
Einstein tensor. It returns a list of pairs whose second elements
give the number of terms in the components specified by the first
returns a list of pairs, whose second elements give the
number of terms in the RICCI component specified by the first
elements. In this way, it is possible to quickly find the non-zero
expressions and attempt simplification.
returns the complex value of the Plasma Dispersion Function
for complex Z.
NZETAR(Z) ==> REALPART(NZETA(Z))
returns IMAGPART(NZETA(Z)). This function is related to the complex
error function by
NZETA(Z) = %I*SQRT(%PI)*EXP(-Z^2)*(1-ERF(-%I*Z)).
returns the contravariant components of the Riemann
curvature tensor as array elements UR[I,J,K,L]. These are displayed
if dis is TRUE.
default:  - if TRUE rational simplification will be
performed on the non-zero components of Einstein tensors; if
FACRAT:TRUE then the components will also be factored.
- This switch has been renamed RATRIEMANN.
default:  - one of the switches which controls
simplification of Riemann tensors; if TRUE, then rational
simplification will be done; if FACRAT:TRUE then each of the
components will also be factored.
removes all the contraction properties
from the tensori. REMCON(ALL) removes all contraction properties from
all indexed objects.
Tensor package) This function first computes the
covariant components LR[i,j] of the Ricci tensor (LR is a mnemonic for
"lower Ricci"). Then the mixed Ricci tensor is computed using the
contravariant metric tensor. If the value of the argument to RICCICOM
is TRUE, then these mixed components, RICCI[i,j] (the index i is
covariant and the index j is contravariant), will be displayed
directly. Otherwise, RICCICOM(FALSE) will simply compute the entries
of the array RICCI[i,j] without displaying the results.
Tensor package) forms the invariant obtained by
contracting the tensors
This object is not
automatically simplified since it can be very large.
returns the scalar curvature (obtained by contracting
the Ricci tensor) of the Riemannian manifold with the given metric.
this has been renamed to TSETUP(); Sets up a metric for
computes the Weyl conformal tensor. If the argument dis is
TRUE, the non-zero components W[I,J,K,L] will be displayed to the
user. Otherwise, these components will simply be computed and stored.
If the switch RATWEYL is set to TRUE, then the components will be
rationally simplified; if FACRAT is TRUE then the results will be
factored as well.