Ask Your Question

Revision history [back]

Print scaling factors in eta-products

I have the useful command:

EtaGroup(8).basis()[0].r(2)

which will return the first exponent in (eta_2)^-4 (eta_4)^12 (eta_8)^-8; namely -4. Similarly

EtaGroup(8).basis()[0].r(4)

will return 12 etc. I want to extract the scaling factors though. That is, I want to print 2 or 4 or 8 in the expression (eta_2)^-4 (eta_4)^12 (eta_8)^-8 How??