# collect_factors(_) for Symbol indices

Hello!

Is there a way to collect factors into powers for objects which have Symbol-type sub/superscripts?

Like for the example in the manual:

\dagger::Symbol;
ex:= A^{\dagger} A^{\dagger};
collect_factors(_);


The collect_factors(_) doesn't produce A^{\dagger}^2 as one would expect.

+1 vote

It should, it's a bug introduced with tidying up some pattern matching functions. I have just pushed a fix for this to github. Thanks for reporting.