#13165: Error multiplying modular forms of level Gamma1
---------------------------------+------------------------------------------
       Reporter:  davidloeffler  |         Owner:  craigcitro  
           Type:  defect         |        Status:  needs_review
       Priority:  major          |     Milestone:  sage-5.11   
      Component:  modular forms  |    Resolution:              
       Keywords:                 |   Work issues:              
Report Upstream:  N/A            |     Reviewers:  Peter Bruin 
        Authors:  Armin Straub   |     Merged in:              
   Dependencies:                 |      Stopgaps:              
---------------------------------+------------------------------------------
Changes (by pbruin):

  * status:  needs_info => needs_review


Old description:

> The following was reported by Nadim Restom on sage-support
> [https://groups.google.com/forum/?fromgroups#!topic/sage-
> support/c-wjnYxAcn8 here]:
> {{{
> f = ModularForms(Gamma1(5),2).0
> f*f
>
> I am getting an error:
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "_sage_input_5.py", line 10, in <module>
>     exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8
> -*-\\n" +
> _support_.preparse_worksheet_cell(base64.b64decode("Zipm"),globals())+"\\n");
> execfile(os.path.abspath("___code___.py"))
>   File "", line 1, in <module>
>
>   File "/tmp/tmp9a_pAs/___code___.py", line 2, in <module>
>     exec compile(u'f*f
>   File "", line 1, in <module>
>
>   File
> "/sagenb/sage_install/sage-5.0-boxen-x86_64-Linux/local/lib/python2.7
> /site-packages/sage/modular/modform/element.py", line 1034, in __mul__
>     eps1 = self.character()
>   File
> "/sagenb/sage_install/sage-5.0-boxen-x86_64-Linux/local/lib/python2.7
> /site-packages/sage/modular/modform/element.py", line 423, in character
>     raise ValueError, "Form is not an eigenvector for <%s>" % g
> ValueError: Form is not an eigenvector for <2>
> }}}
>
> Looks like line 1040 of sage/modular/modform/element.py is the culprit.

New description:

 The following was reported by Nadim Restom on sage-support
 [https://groups.google.com/forum/?fromgroups#!topic/sage-
 support/c-wjnYxAcn8 here]:
 {{{
 f = ModularForms(Gamma1(5),2).0
 f*f

 I am getting an error:

 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "_sage_input_5.py", line 10, in <module>
     exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8
 -*-\\n" +
 _support_.preparse_worksheet_cell(base64.b64decode("Zipm"),globals())+"\\n");
 execfile(os.path.abspath("___code___.py"))
   File "", line 1, in <module>

   File "/tmp/tmp9a_pAs/___code___.py", line 2, in <module>
     exec compile(u'f*f
   File "", line 1, in <module>

   File
 "/sagenb/sage_install/sage-5.0-boxen-x86_64-Linux/local/lib/python2.7
 /site-packages/sage/modular/modform/element.py", line 1034, in __mul__
     eps1 = self.character()
   File
 "/sagenb/sage_install/sage-5.0-boxen-x86_64-Linux/local/lib/python2.7
 /site-packages/sage/modular/modform/element.py", line 423, in character
     raise ValueError, "Form is not an eigenvector for <%s>" % g
 ValueError: Form is not an eigenvector for <2>
 }}}

 Looks like line 1040 of sage/modular/modform/element.py is the culprit.

 Apply: :attachment:trac_13165_modform_multiply_2.patch

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13165#comment:10>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to