#8133: changing the string representation of Dirichlet charachters
-----------------------------+----------------------------------------------
   Reporter:  wuthrich       |       Owner:  craigcitro          
       Type:  defect         |      Status:  new                 
   Priority:  major          |   Milestone:  sage-4.3.2          
  Component:  modular forms  |    Keywords:  dirichlet characters
     Author:                 |    Upstream:  N/A                 
   Reviewer:                 |      Merged:                      
Work_issues:                 |  
-----------------------------+----------------------------------------------

Comment(by wuthrich):

 I put this in the component 'modular forms' since the relevant file
 dirichlet.py is there. But I think it is a bit odd that this file is
 there; it should be with number fields, I believe.

 The attached patch changes the string representation of a Dirichlet
 character to

 {{{
 sage: G = DirichletGroup(12)
 sage: chi = G.0
 sage: chi
 Dirichlet character modulo 12 of conductor 4 mapping the generators to {5:
 1, 7: -1}
 }}}

 I have also created a shorter representation that is used in other _repr_
 like in

 {{{
 sage: ModularForms(chi,7)
 Modular Forms space of dimension 14, character {5: 1, 7: -1} and weight 7
 over Rational Field
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8133#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to