# keep_weight problem

+1 vote
\Gamma_{a b c d e f g h i j}::Weight(label=ten);
ex:=\Gamma_{a b c d e f g h i j} + f_{a b c d e f g h i j};
keep_weight(ex,$ten=1$);

produces \Gamma_{a b c d e f g h i j} which is expected.

But, if I tell Cadabra that \Gamma{#} means gammamatrix, I get the answer to be zero i.e.

\Gamma{#}::GammaMatrix;
\Gamma_{a b c d e f g h i j}::Weight(label=ten);
ex:=\Gamma_{a b c d e f g h i j} + f_{a b c d e f g h i j};
keep_weight(ex,$ten=1$);

This produce output zero.

Is this expected?

+1 vote

This was fixed recently (I think the fix went into 2.2.0 but there may be a small improvement to that which is only on github at the moment). In any case, the current github version does this correctly.

by (66.3k points)