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

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

asked in Bug reports by (520 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.

Please log in or register to answer this question.

...