On Fri, Feb 12, 2010 at 6:33 AM, gagan <[email protected]> wrote:
> The following commands worked find in sage 4.3.
> E=EllipticCurve('11a1')
> E.torsion_subgroup();
>
> However in sage 4.3.2 they give m the following error
Hmm, they work for me in sage-4.3.2:
wst...@ubuntu:~/414$ sage
----------------------------------------------------------------------
| Sage Version 4.3.2, Release Date: 2010-02-06 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: E=EllipticCurve('11a1')
sage: E.torsion_subgroup()
Torsion Subgroup isomorphic to Multiplicative Abelian Group isomorphic
to C5 associated to the Elliptic Curve defined by y^2 + y = x^3 - x^2
- 10*x - 20 over Rational Field
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "_sage_input_28.py", line 9, in <module>
> open("___code___.py","w").write("# -*- coding: utf-8 -*-\n" +
> _support_.preparse_worksheet_cell(base64.b64decode("RT1FbGxpcHRpY0N1cnZlKCcxMWExJykKRS50b3JzaW9uX3N1Ymdyb3VwKCk7"),globals())
> +"\n"); execfile(os.path.abspath("___code___.py"))
> File "", line 1, in <module>
>
> File "/private/var/folders/6r/6rhDNnQhH9aXA0rGlw4Jbk++8Bk/-Tmp-/
> tmpSaWNtz/___code___.py", line 3, in <module>
> E.torsion_subgroup();
> File "", line 1, in <module>
>
> File "/Applications/sage/local/lib/python2.6/site-packages/sage/
> schemes/elliptic_curves/ell_rational_field.py", line 3515, in
> torsion_subgroup
> self.__torsion_subgroup =
> ell_torsion.EllipticCurveTorsionSubgroup(self, algorithm)
> File "/Applications/sage/local/lib/python2.6/site-packages/sage/
> schemes/elliptic_curves/ell_torsion.py", line 159, in __init__
> if self.__K is RationalField() and algorithm in
> pari_torsion_algorithms:
> File "/Applications/sage/local/lib/python2.6/site-packages/sage/
> rings/rational_field.py", line 208, in __init__
> self._assign_names(('x',),normalize=False) # ???
> File "parent_gens.pyx", line 327, in
> sage.structure.parent_gens.ParentWithGens._assign_names (sage/
> structure/parent_gens.c:2854)
> File "category_object.pyx", line 336, in
> sage.structure.category_object.CategoryObject._assign_names (sage/
> structure/category_object.c:3286)
> ValueError: variable names cannot be changed after object creation.
>
> Please help. My actually program is much longer, but I went through
> each function I was using and found that torsion_subgroup() was the
> one that was giving me error.
>
> --
> 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-support
> URL: http://www.sagemath.org
>
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org
--
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-support
URL: http://www.sagemath.org