Opened 8 years ago

Closed 7 years ago

#17338 closed defect (fixed)

Fix printing of Dirichlet characters

Reported by: pbruin Owned by:
Priority: minor Milestone: sage-6.4
Component: number theory Keywords: Dirichlet characters
Cc: jdemeyer Merged in:
Authors: Peter Bruin Reviewers: Volker Braun
Report Upstream: N/A Work issues:
Branch: f431aad (Commits, GitHub, GitLab) Commit: f431aada2d5e66c1c6edf87f36dca1cee44e142d
Dependencies: #17337 Stopgaps:

Status badges


Dirichlet characters modulo 2 are printed in a strange way:

sage: DirichletGroup(2)[0]
Dirichlet character modulo 2 of conductor 1 mapping 

After #17337, this also happens for Dirichlet characters modulo 1.

This ticket makes Dirichlet characters modulo 1 and 2 print as

sage: DirichletGroup(1)[0]
Dirichlet character modulo 1 of conductor 1
sage: DirichletGroup(2)[0]
Dirichlet character modulo 2 of conductor 1

and uses the mapping ... only for conductors >= 3:

sage: DirichletGroup(3)[1]
Dirichlet character modulo 3 of conductor 1 mapping 2 |--> -1

Change History (3)

comment:1 Changed 8 years ago by pbruin

  • Branch set to u/pbruin/17338-DirichletCharacter_printing
  • Commit set to f431aada2d5e66c1c6edf87f36dca1cee44e142d
  • Status changed from new to needs_review

comment:2 Changed 7 years ago by vbraun

  • Reviewers set to Volker Braun
  • Status changed from needs_review to positive_review

comment:3 Changed 7 years ago by vbraun

  • Branch changed from u/pbruin/17338-DirichletCharacter_printing to f431aada2d5e66c1c6edf87f36dca1cee44e142d
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.