ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 24 Jul 2014 13:12:04 +0200<repr(<sage.modular.modform.element.Newform at 0x7f0c8fa15c30>) failed: IndexError: list index out of range>],https://ask.sagemath.org/question/23528/reprsagemodularmodformelementnewform-at-0x7f0c8fa15c30-failed-indexerror-list-index-out-of-range/ M11=ModularForms(11,2,base_ring=Qp(7,10));show(M11.modular_symbols()),show(M11),M11.level(),M11.weight(),M11.character(),M11.dimension(),M11.group().order(),M11.group().gens(),M11.newforms(),M11.free_module(),show(M11.hecke_module_of_level(1)),
1
why \QQ7 is red?maybe 7-adic field Op7?
2
free_module is error.
<repr(<sage.modular.modform.element.Newform at 0x7f0c8fa15c30>) failed: IndexError: list index out of range>],Tue, 22 Jul 2014 14:08:39 +0200https://ask.sagemath.org/question/23528/reprsagemodularmodformelementnewform-at-0x7f0c8fa15c30-failed-indexerror-list-index-out-of-range/Answer by slelievre for <pre><code>M11=ModularForms(11,2,base_ring=Qp(7,10));show(M11.modular_symbols()),show(M11),M11.level(),M11.weight(),M11.character(),M11.dimension(),M11.group().order(),M11.group().gens(),M11.newforms(),M11.free_module(),show(M11.hecke_module_of_level(1)),
</code></pre>
<p>1
why \QQ7 is red?maybe 7-adic field Op7?</p>
<p>2
free_module is error.</p>
<p><repr(<sage.modular.modform.element.newform at="" 0x7f0c8fa15c30="">) failed: IndexError: list index out of range>],</p>
https://ask.sagemath.org/question/23528/reprsagemodularmodformelementnewform-at-0x7f0c8fa15c30-failed-indexerror-list-index-out-of-range/?answer=23532#post-id-23532I tried the code from your question, one command per line, without the 'show' commands.
**Your question about free_module**
The command `M11.free_module()` did not produce any error in Sage 6.3.beta6.
Everything worked except the command about newforms.
**The error with the method newforms**
If you have a quick look at the documentation for the method `newforms`, which you can access by
sage: M11.newforms?
you will see that the examples all involve spaces of cusp forms.
Indeed the following works.
sage: CuspForms(11).newforms()
[q - 2*q^2 - q^3 + 2*q^4 + q^5 + O(q^6)]
**Your first question: why \QQ7 is red?**
When you ask `show(M11.modular_symbols())`, the output is rendered using LaTeX, and the 7-adic field appears in bold as $\mathbf{Q}_7$. Maybe you don't have LaTeX installed, and when you viewed the output the boldface was rendered as red? Where was the output rendered?
**Full output of the code you provided**
For reference this was the output when running your commands,
slightly reordered.
sage: version() # for reference
'Sage Version 6.3.beta6, Release Date: 2014-07-19'
sage: M11 = ModularForms(11,2,base_ring=Qp(7,10))
sage: M11
Modular Forms space of dimension 2 for Congruence Subgroup Gamma0(11) of weight 2 over 7-adic Field with capped relative precision 10
sage: M11.modular_symbols()
Modular Symbols space of dimension 3 for Gamma_0(11) of weight 2 with sign 0 over 7-adic Field with capped relative precision 10
sage: M11.level()
11
sage: M11.weight()
2
sage: M11.character()
Dirichlet character modulo 11 of conductor 1 mapping 2 |--> 1
sage: M11.dimension()
2
sage: M11.group().order()
+Infinity
sage: M11.group().gens()
(
[1 1] [ 7 -2] [ 8 -3] [-1 0]
[0 1], [11 -3], [11 -4], [ 0 -1]
)
sage: M11.newforms()
[<repr(<sage.modular.modform.element.Newform at 0x1136915a0>) failed: IndexError: list index out of range>]
sage: M11.free_module()
Vector space of dimension 2 over 7-adic Field with capped relative precision 10
sage: M11.hecke_module_of_level(1)
Modular Forms space of dimension 0 for Modular Group SL(2,Z) of weight 2 over 7-adic Field with capped relative precision 10
Tue, 22 Jul 2014 15:12:29 +0200https://ask.sagemath.org/question/23528/reprsagemodularmodformelementnewform-at-0x7f0c8fa15c30-failed-indexerror-list-index-out-of-range/?answer=23532#post-id-23532Comment by cjsh for <p>I tried the code from your question, one command per line, without the 'show' commands.</p>
<p><strong>Your question about free_module</strong></p>
<p>The command <code>M11.free_module()</code> did not produce any error in Sage 6.3.beta6.
Everything worked except the command about newforms.</p>
<p><strong>The error with the method newforms</strong></p>
<p>If you have a quick look at the documentation for the method <code>newforms</code>, which you can access by</p>
<pre><code>sage: M11.newforms?
</code></pre>
<p>you will see that the examples all involve spaces of cusp forms.</p>
<p>Indeed the following works.</p>
<pre><code>sage: CuspForms(11).newforms()
[q - 2*q^2 - q^3 + 2*q^4 + q^5 + O(q^6)]
</code></pre>
<p><strong>Your first question: why \QQ7 is red?</strong></p>
<p>When you ask <code>show(M11.modular_symbols())</code>, the output is rendered using LaTeX, and the 7-adic field appears in bold as $\mathbf{Q}_7$. Maybe you don't have LaTeX installed, and when you viewed the output the boldface was rendered as red? Where was the output rendered?</p>
<p><strong>Full output of the code you provided</strong></p>
<p>For reference this was the output when running your commands,
slightly reordered.</p>
<pre><code>sage: version() # for reference
'Sage Version 6.3.beta6, Release Date: 2014-07-19'
sage: M11 = ModularForms(11,2,base_ring=Qp(7,10))
sage: M11
Modular Forms space of dimension 2 for Congruence Subgroup Gamma0(11) of weight 2 over 7-adic Field with capped relative precision 10
sage: M11.modular_symbols()
Modular Symbols space of dimension 3 for Gamma_0(11) of weight 2 with sign 0 over 7-adic Field with capped relative precision 10
sage: M11.level()
11
sage: M11.weight()
2
sage: M11.character()
Dirichlet character modulo 11 of conductor 1 mapping 2 |--> 1
sage: M11.dimension()
2
sage: M11.group().order()
+Infinity
sage: M11.group().gens()
(
[1 1] [ 7 -2] [ 8 -3] [-1 0]
[0 1], [11 -3], [11 -4], [ 0 -1]
)
sage: M11.newforms()
[<repr(<sage.modular.modform.element.Newform at 0x1136915a0>) failed: IndexError: list index out of range>]
sage: M11.free_module()
Vector space of dimension 2 over 7-adic Field with capped relative precision 10
sage: M11.hecke_module_of_level(1)
Modular Forms space of dimension 0 for Modular Group SL(2,Z) of weight 2 over 7-adic Field with capped relative precision 10
</code></pre>
https://ask.sagemath.org/question/23528/reprsagemodularmodformelementnewform-at-0x7f0c8fa15c30-failed-indexerror-list-index-out-of-range/?comment=23560#post-id-23560than you very much!
than all sage people!
than god!Thu, 24 Jul 2014 13:12:04 +0200https://ask.sagemath.org/question/23528/reprsagemodularmodformelementnewform-at-0x7f0c8fa15c30-failed-indexerror-list-index-out-of-range/?comment=23560#post-id-23560Comment by cjsh for <p>I tried the code from your question, one command per line, without the 'show' commands.</p>
<p><strong>Your question about free_module</strong></p>
<p>The command <code>M11.free_module()</code> did not produce any error in Sage 6.3.beta6.
Everything worked except the command about newforms.</p>
<p><strong>The error with the method newforms</strong></p>
<p>If you have a quick look at the documentation for the method <code>newforms</code>, which you can access by</p>
<pre><code>sage: M11.newforms?
</code></pre>
<p>you will see that the examples all involve spaces of cusp forms.</p>
<p>Indeed the following works.</p>
<pre><code>sage: CuspForms(11).newforms()
[q - 2*q^2 - q^3 + 2*q^4 + q^5 + O(q^6)]
</code></pre>
<p><strong>Your first question: why \QQ7 is red?</strong></p>
<p>When you ask <code>show(M11.modular_symbols())</code>, the output is rendered using LaTeX, and the 7-adic field appears in bold as $\mathbf{Q}_7$. Maybe you don't have LaTeX installed, and when you viewed the output the boldface was rendered as red? Where was the output rendered?</p>
<p><strong>Full output of the code you provided</strong></p>
<p>For reference this was the output when running your commands,
slightly reordered.</p>
<pre><code>sage: version() # for reference
'Sage Version 6.3.beta6, Release Date: 2014-07-19'
sage: M11 = ModularForms(11,2,base_ring=Qp(7,10))
sage: M11
Modular Forms space of dimension 2 for Congruence Subgroup Gamma0(11) of weight 2 over 7-adic Field with capped relative precision 10
sage: M11.modular_symbols()
Modular Symbols space of dimension 3 for Gamma_0(11) of weight 2 with sign 0 over 7-adic Field with capped relative precision 10
sage: M11.level()
11
sage: M11.weight()
2
sage: M11.character()
Dirichlet character modulo 11 of conductor 1 mapping 2 |--> 1
sage: M11.dimension()
2
sage: M11.group().order()
+Infinity
sage: M11.group().gens()
(
[1 1] [ 7 -2] [ 8 -3] [-1 0]
[0 1], [11 -3], [11 -4], [ 0 -1]
)
sage: M11.newforms()
[<repr(<sage.modular.modform.element.Newform at 0x1136915a0>) failed: IndexError: list index out of range>]
sage: M11.free_module()
Vector space of dimension 2 over 7-adic Field with capped relative precision 10
sage: M11.hecke_module_of_level(1)
Modular Forms space of dimension 0 for Modular Group SL(2,Z) of weight 2 over 7-adic Field with capped relative precision 10
</code></pre>
https://ask.sagemath.org/question/23528/reprsagemodularmodformelementnewform-at-0x7f0c8fa15c30-failed-indexerror-list-index-out-of-range/?comment=23543#post-id-23543 thank you very much!
when will sagecloud or cell be 6.3 beta6?
version()
'Sage Version 6.2.rc2, Release Date: 2014-05-04'
version()
'Sage Version 6.3.beta4, Release Date: 2014-06-19'Wed, 23 Jul 2014 14:13:53 +0200https://ask.sagemath.org/question/23528/reprsagemodularmodformelementnewform-at-0x7f0c8fa15c30-failed-indexerror-list-index-out-of-range/?comment=23543#post-id-23543Comment by slelievre for <p>I tried the code from your question, one command per line, without the 'show' commands.</p>
<p><strong>Your question about free_module</strong></p>
<p>The command <code>M11.free_module()</code> did not produce any error in Sage 6.3.beta6.
Everything worked except the command about newforms.</p>
<p><strong>The error with the method newforms</strong></p>
<p>If you have a quick look at the documentation for the method <code>newforms</code>, which you can access by</p>
<pre><code>sage: M11.newforms?
</code></pre>
<p>you will see that the examples all involve spaces of cusp forms.</p>
<p>Indeed the following works.</p>
<pre><code>sage: CuspForms(11).newforms()
[q - 2*q^2 - q^3 + 2*q^4 + q^5 + O(q^6)]
</code></pre>
<p><strong>Your first question: why \QQ7 is red?</strong></p>
<p>When you ask <code>show(M11.modular_symbols())</code>, the output is rendered using LaTeX, and the 7-adic field appears in bold as $\mathbf{Q}_7$. Maybe you don't have LaTeX installed, and when you viewed the output the boldface was rendered as red? Where was the output rendered?</p>
<p><strong>Full output of the code you provided</strong></p>
<p>For reference this was the output when running your commands,
slightly reordered.</p>
<pre><code>sage: version() # for reference
'Sage Version 6.3.beta6, Release Date: 2014-07-19'
sage: M11 = ModularForms(11,2,base_ring=Qp(7,10))
sage: M11
Modular Forms space of dimension 2 for Congruence Subgroup Gamma0(11) of weight 2 over 7-adic Field with capped relative precision 10
sage: M11.modular_symbols()
Modular Symbols space of dimension 3 for Gamma_0(11) of weight 2 with sign 0 over 7-adic Field with capped relative precision 10
sage: M11.level()
11
sage: M11.weight()
2
sage: M11.character()
Dirichlet character modulo 11 of conductor 1 mapping 2 |--> 1
sage: M11.dimension()
2
sage: M11.group().order()
+Infinity
sage: M11.group().gens()
(
[1 1] [ 7 -2] [ 8 -3] [-1 0]
[0 1], [11 -3], [11 -4], [ 0 -1]
)
sage: M11.newforms()
[<repr(<sage.modular.modform.element.Newform at 0x1136915a0>) failed: IndexError: list index out of range>]
sage: M11.free_module()
Vector space of dimension 2 over 7-adic Field with capped relative precision 10
sage: M11.hecke_module_of_level(1)
Modular Forms space of dimension 0 for Modular Group SL(2,Z) of weight 2 over 7-adic Field with capped relative precision 10
</code></pre>
https://ask.sagemath.org/question/23528/reprsagemodularmodformelementnewform-at-0x7f0c8fa15c30-failed-indexerror-list-index-out-of-range/?comment=23545#post-id-23545@cjsh: I think the next Sage upgrade on SageMathCloud will be done when Sage 6.3 is out (which should be in a few weeks). But everything in my answer works in Sage 6.2.rc2 too.Wed, 23 Jul 2014 15:28:40 +0200https://ask.sagemath.org/question/23528/reprsagemodularmodformelementnewform-at-0x7f0c8fa15c30-failed-indexerror-list-index-out-of-range/?comment=23545#post-id-23545