Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Modular forms membership testing bug
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Loeffler  
View profile  
 More options Oct 3 2012, 5:20 am
From: David Loeffler <d.a.loeff...@warwick.ac.uk>
Date: Wed, 3 Oct 2012 02:20:06 -0700 (PDT)
Local: Wed, Oct 3 2012 5:20 am
Subject: Modular forms membership testing bug

I just hit this bug in the wild while doing some modular forms computations:

masiao@fermat:~$ sage
----------------------------------------------------------------------
| Sage Version 5.3, Release Date: 2012-09-08                         |
| Type "notebook()" for the browser-based notebook interface.        |
| Type "help()" for help.                                            |
----------------------------------------------------------------------
sage: M = ModularForms(Gamma0(17), 4)
sage: v = M.q_expansion_basis(prec=10)[0]
sage: v in M
False

Oddly "M(v)" works if v corresponds to a q-expansion of a form in M, and
raises an error if it doesn't -- as it should do -- so there is something
going wrong in the code for __contains__. Does anyone know what might be
causing this?

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maarten Derickx  
View profile  
 More options Oct 3 2012, 7:57 pm
From: Maarten Derickx <m.derickx.stud...@gmail.com>
Date: Wed, 3 Oct 2012 16:57:24 -0700 (PDT)
Local: Wed, Oct 3 2012 7:57 pm
Subject: Re: Modular forms membership testing bug

The reason is that q_expansion_basis returns power series and not modular
forms:

sage: M = ModularForms(Gamma0(17), 4)
sage: M.basis()[0].parent()
Modular Forms space of dimension 6 for Congruence Subgroup Gamma0(17) of
weight 4 over Rational Field
sage: M.basis()[0] in M
True
sage: M.q_expansion_basis()[0].parent()
Power Series Ring in q over Rational Field

Le mercredi 3 octobre 2012 11:20:06 UTC+2, David Loeffler a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Loeffler  
View profile  
 More options Oct 4 2012, 5:24 am
From: David Loeffler <d.a.loeff...@warwick.ac.uk>
Date: Thu, 4 Oct 2012 10:24:07 +0100
Local: Thurs, Oct 4 2012 5:24 am
Subject: Re: [sage-devel] Re: Modular forms membership testing bug
On 4 October 2012 00:57, Maarten Derickx <m.derickx.stud...@gmail.com> wrote:

> The reason is that q_expansion_basis returns power series and not modular
> forms:

Yes, I know, but in practice one often wants to know if a given power
series is the q-expansion of an element of the space, and it seems
strange to me that you can do this by the ugly method of calling
"M(v)" and testing whether it raises an error, but you can't just use
"in". Maybe it's a matter of taste.

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Stein  
View profile  
 More options Oct 4 2012, 12:52 pm
From: William Stein <wst...@gmail.com>
Date: Thu, 4 Oct 2012 09:52:15 -0700
Local: Thurs, Oct 4 2012 12:52 pm
Subject: Re: [sage-devel] Re: Modular forms membership testing bug
On Thu, Oct 4, 2012 at 2:24 AM, David Loeffler

<d.a.loeff...@warwick.ac.uk> wrote:
> On 4 October 2012 00:57, Maarten Derickx <m.derickx.stud...@gmail.com> wrote:
>> The reason is that q_expansion_basis returns power series and not modular
>> forms:

> Yes, I know, but in practice one often wants to know if a given power
> series is the q-expansion of an element of the space, and it seems
> strange to me that you can do this by the ugly method of calling
> "M(v)" and testing whether it raises an error, but you can't just use
> "in". Maybe it's a matter of taste.

> David

You're probably right, given the way in tends to work, e.g.,

sage: GF(3)(2) in ZZ
True

sage: 7/1 in ZZ
True

> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To post to this group, send email to sage-devel@googlegroups.com.
> To unsubscribe from this group, send email to sage-devel+unsubscribe@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel?hl=en.

--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »