lalitkumarj / OMSCategory

Sage Category implementation of OMS
1 stars 1 forks source link

Automorphy factors with character #62

Open rharron opened 11 years ago

rharron commented 11 years ago

The automorphy factor code (and hence the action code) crashes when we have a character. Basically, we have to take chi(a) where a is the upper-left entry of the matrix we're acting by. But a is currently a p-adic number and chi only likes integers. Here's some code that raises the bug.

p = 3 M = 8 var_prec = 4 k = 1 r = (k-2) % (p-1) N = 39 DG = DirichletGroup(N, ZZ) chi = DG(kronecker_character(13)) * DG(kronecker_character(-3)) MM = FamiliesOfOMS(chi, r, p=p, prec_cap=[M, var_prec], base_coeffs=ZpCA(p, M), sign=-1) MM.random_element()