Re: itensor problem
Viktor T. Toth <vttoth <at> vttoth.com>
2010-07-02 01:06:38 GMT
I think it's a case of garbage in, garbage out. You are feeding an invalid
tensor expression to itensor, so you shouldn't expect a valid result.
To itensor, l([a,b])^2 means nothing. It evaluates to l([a,b])*l([a,b])
which has the same indices repeated in the covariant position. This is not a
valid itensor expression and it simply will not work.
To express the contraction of l with itself (I presume that's what you had
in mind), you should be using the expression l([a,b],)*l(,[a,b]).
However, to carry out the differentiation you also need to tell Maxima how
l([a,b],) and l(,[a,b]) are related to one another. Something like this:
In this code, the second line is needed to make sure that itensor
automatically applies any contraction rules related to the metric. The third
line spells out the contravariant form or l in terms of its covariant form
and the metric, to make sure that all occurrences of the covariant l are
explicit in the expression prior to differentiation. The fourth line carries
out the differentiation. The fifth line (remcomps) is used because we no
longer need or want Maxima to rewrite l(,[a,b]) in terms of the
l([a,b],) and the metric during final simplification. The sixth line is
You can also forego this components() business altogether by just writing
down the contraction of l with itself in explicit form:
In both cases, you get the correct result which, incidentally, is
2*l(,[i,j]) and not 2*kdelta([i,j],).
I hope this helps.
From: maxima-bounces <at> math.utexas.edu [mailto:maxima-bounces <at> math.utexas.edu]
On Behalf Of Gianluca Malato
Sent: Wednesday, June 30, 2010 2:02 PM
To: maxima <at> math.utexas.edu
Subject: [Maxima] itensor problem
Hi all. I need to differentiate a contraction of tensors in a way such
that expressions like
are to be simplified as
and not as
I know that the things I've written aren't correct tensorial expressions
(there are no repeated indices...) but I need them to be in this form. I
already know that the things I've writtend correspond to a metric tensor
equal to unity (no difference between upper and lower indices), but I
cannot implement it in Maxima.
Can anyone help me?
Maxima mailing list
Maxima <at> math.utexas.edu