Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote

I am using cadabra 2.2.1

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

in Bug reports by (560 points)

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!

Please log in or register to answer this question.

...