Hi!
On 2012-05-22 09:59, Jose wrote:
> Hi,
>
> A related post:
>
>
https://groups.google.com/group/xact/browse_thread/thread/a214ba5ffb48fe40
>
> I agree that IndexCoefficient does not behave well in the case
> reported by Antonin, but I'm not sure the general problem handled by
> IndexCoefficient is well defined when there are dummy indices in the
> second argument. For example, what is the coefficient of x[c] x[-c] in
> x[a] x[b] ? By symmetry arguments the answer must be proportional to
> g[a,b], but I'm not sure the coefficient is uniquely defined. (The
> contraction of the answer with g[-a,-b] is the solution to Antonin's
> question.) We need additional conditions on the decomposition (like
> separation in pure trace and traceless parts) to make it unique.
Yes, this problem is difficult even to define.
Unfortunately there are problems with the current code also without
contractions in the second argument.
There are problems already if there are contractions in the first argument.
Consider the following: You want to find the X[-i] term of X[-j] or
g[-j,-l] X[l]
Then
IndexCoefficient[X[-j],X[-i]]*X[-i]
,
IndexCoefficient[X[-j],X[-j]]*X[-j]
and
IndexCoefficient[g[-j,-l] X[l],X[-i]]*X[-i]
all works fine.
However
IndexCoefficient[g[-j,-l] X[l],X[-j]]*X[-j]
does not work as expected.
Hence, one actually can get a problem if the free indices of the first
and second argument are the same.
I don't know if this problem is as difficult to resolve as the one with
contractions in the second argument.
Regards
Thomas
> Cheers,
> Jose.
>
> On May 21, 11:53 am, Thomas B�ckdahl<
thomas.backd...@gmail.com>