#5204: [with patch, needs work] simon_two_descent -- bug in the interface when
number field has variable name 'x'
---------------------------+------------------------------------------------
Reporter: was | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-3.4.1
Component: number theory | Keywords:
---------------------------+------------------------------------------------
Comment(by mabshoff):
These two patches cause the following doctest failure:
{{{
sage -t -long devel/sage/sage/schemes/elliptic_curves/ell_number_field.py
**********************************************************************
File "/scratch/mabshoff/sage-3.3.rc3/devel/sage-
main/sage/schemes/elliptic_curves/ell_number_field.py", line 9:
sage: E.simon_two_descent()
Exception raised:
Traceback (most recent call last):
File "/scratch/mabshoff/sage-3.3.rc3/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/scratch/mabshoff/sage-3.3.rc3/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/scratch/mabshoff/sage-3.3.rc3/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_0[5]>", line 1, in <module>
E.simon_two_descent()###line 9:
sage: E.simon_two_descent()
File "/scratch/mabshoff/sage-3.3.rc3/local/lib/python2.5/site-
packages/sage/schemes/elliptic_curves/ell_number_field.py", line 176, in
simon_two_descent
maxprob=maxprob, limbigprime=limbigprime)
File "/scratch/mabshoff/sage-3.3.rc3/local/lib/python2.5/site-
packages/sage/schemes/elliptic_curves/gp_simon.py", line 74, in
simon_two_descent
E = E.change_ring(K)
File "/scratch/mabshoff/sage-3.3.rc3/local/lib/python2.5/site-
packages/sage/schemes/elliptic_curves/ell_generic.py", line 826, in
change_ring
return constructor.EllipticCurve(R, [R(a) for a in self.ainvs()])
File "parent.pyx", line 276, in
sage.structure.parent.Parent.__call__ (sage/structure/parent.c:3653)
File "coerce_maps.pyx", line 76, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:2793)
File "coerce_maps.pyx", line 71, in
sage.structure.coerce_maps._call_ (sage/structure/coerce_maps.c:2700)
File "/scratch/mabshoff/sage-3.3.rc3/local/lib/python2.5/site-
packages/sage/rings/number_field/number_field.py", line 831, in
_element_constructor_
return self._coerce_from_other_number_field(x)
File "/scratch/mabshoff/sage-3.3.rc3/local/lib/python2.5/site-
packages/sage/rings/number_field/number_field.py", line 3735, in
_coerce_from_other_number_field
raise TypeError, "Cannot coerce element into this number field"
TypeError: Cannot coerce element into this number field
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5204#comment:4>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---