Skip to content

Commit

Permalink
fix Conrey number of trivial Dirichlet character
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Aug 25, 2023
1 parent 04232a4 commit 1b815e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sage/modular/dirichlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,12 @@ def conrey_number(self):
sage: eps2 = DirichletGroup(5,QQ)([-1])
sage: eps1.conrey_number() == eps2.conrey_number()
True
sage: chi = DirichletGroup(1)[0]
sage: chi.conrey_number()
1
"""
if self.modulus() == 1:
return 1
G, v = self._pari_init_()
return pari.znconreyexp(G, v).sage()

Expand Down

0 comments on commit 1b815e0

Please sign in to comment.