Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running dimension_modular_forms on weight 0 should return 1 (trivial to fix) #2133

Closed
aghitza opened this issue Feb 9, 2008 · 5 comments
Closed

Comments

@aghitza
Copy link

aghitza commented Feb 9, 2008

It should say 1, but now says

sage: dimension_modular_forms(1, 0)
---------------------------------------------------------------------------
<type 'exceptions.NotImplementedError'>   Traceback (most recent call last)

/home/ghitza/sage/eigensystems/<ipython console> in <module>()

/opt/sage/local/lib/python2.5/site-packages/sage/modular/dims.py in dimension_modular_forms(X, k)
   1004     if congroup.is_GammaH(X):
   1005         return dimension_modular_forms_H(X, k)
-> 1006     return dimension_cusp_forms(X, k) + dimension_eis(X, k)
   1007 
   1008 def sturm_bound(level, weight):

/opt/sage/local/lib/python2.5/site-packages/sage/modular/dims.py in dimension_eis(X, k)
    939     if k <= 1:
    940         # TODO
--> 941         raise NotImplementedError, "Dimension of weight <= 1 Eisenstein series not yet implemented."
    942     if isinstance(X, (int,long,Integer)):
    943         if k%2 == 1: return 0

<type 'exceptions.NotImplementedError'>: Dimension of weight <= 1 Eisenstein series not yet implemented.

Component: modular forms

Issue created by migration from https://trac.sagemath.org/ticket/2133

@aghitza aghitza added this to the sage-2.10.2 milestone Feb 9, 2008
@aghitza aghitza self-assigned this Feb 9, 2008
@aghitza
Copy link
Author

aghitza commented Feb 17, 2008

Attachment: 2133-dimensions_weight_0.patch.gz

@aghitza
Copy link
Author

aghitza commented Feb 17, 2008

comment:1

... and the trivial fix is in the attached patch (together with a couple of trivial typos).

@williamstein
Copy link
Contributor

Attachment: 2133-doctest.patch.gz

apply this and the previous patch; this just adds a doctest

@williamstein
Copy link
Contributor

comment:2

Looks great; thanks for fixing the typos too. I've added a doctest.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Feb 19, 2008

comment:3

Merged both patches in Sage 2.10.2.alpha1

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Feb 19, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants