#4335: Labelling of newforms
---------------------------+------------------------------------------------
 Reporter:  ljpk           |       Owner:  craigcitro
     Type:  defect         |      Status:  new       
 Priority:  minor          |   Milestone:  sage-3.2  
Component:  modular forms  |    Keywords:            
---------------------------+------------------------------------------------
 Given a space of CuspForms, there is a newforms method which gives a list
 of newforms associated to that space, with a name specified by the user.
 However, this does not seem to work correctly at the moment:
 {{{
 sage: S=CuspForms(23)
 sage: S.newforms('b')
 [q + a0*q^2 + (-2*a0 - 1)*q^3 + (-a0 - 1)*q^4 + 2*a0*q^5 + O(q^6)]
 }}}

 I think that the newforms code should be changed to something like:
 {{{
 def newforms(self, names=None):
         """
         Return all cusp forms in the cuspidal subspace of self.

         EXAMPLES:

         sage: CuspForms(23).newforms('b')
         [q + b0*q^2 + (-2*b0 - 1)*q^3 + (-b0 - 1)*q^4 + 2*b0*q^5 + O(q^6)]
         """
         M = self.modular_symbols(sign=1)
         factors = M.cuspidal_subspace().new_subspace().decomposition()
         large_dims = [ X.dimension() for X in factors if X.dimension() !=
 1 ]
         if len(large_dims) > 0 and names is None:
             names = 'a'
         return [ element.Newform(self, factors[i], names=(names+str(i)) )
                  for i in range(len(factors)) ]
 }}}
 (removing the ValueError statement) as this should correctly use the user-
 specified name if one is given or default to 'a' if one is not.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4335>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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