Ask Your Question
0

Print scaling factors in eta-products

asked 2021-01-19 01:03:30 +0200

FundamentalDomain gravatar image

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??

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2021-01-19 09:06:55 +0200

FrédéricC gravatar image

Like this

sage: e = EtaGroup(8).basis()[0]                                                
sage: e                                                                         
Eta product of level 8 : (eta_2)^-4 (eta_4)^12 (eta_8)^-8
sage: e._rdict                                                                  
{2: -4, 4: 12, 8: -8}
edit flag offensive delete link more

Comments

Very nice. Did not know this function. Thank you!

FundamentalDomain gravatar imageFundamentalDomain ( 2021-01-20 00:33:57 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2021-01-19 01:03:30 +0200

Seen: 25 times

Last updated: Jan 19