# Issue with combine algorithm

+1 vote

ex:=A^\alpha B{\alpha};
combine(
);

produces the output (BA) which is clearly unexpected while,

ex:=A\alpha B{\alpha};
combine(_);

produces the output (AB) which is expected. I require the combine to work for contractions like Einstein summation. Please help

Hi,
I think your code has some typos. I checked the following code and gave your desired result AB

{ \alpha}::Indices;
ex:=A_\alpha B^{\alpha};
combine(_);


But as you mentioned the code

{ \alpha}::Indices;
ex:=A^\alpha B_{\alpha};
combine(_);


gives an inverse order, BA.

Oh, thanks for pointing that out and writing the correct code!