This does look like a bug to me.   It is likely that there was an
error calling the gp script, and Sage then fails to parse the output.
Can you file a trac ticket for this?

For more than a  year there have been numerous attempts by me, Martin
Raum an others to change the way Sage uses the Simon scripts, which
have had various bug-fixes and improvements made to them *none* of
which are in Sage since we failed to get it to work, despite Martin
and I spending several complete days doing this at two Sage Days in
March 2011 and December 2011.  So there are known problems and a lot
of work towards solutions.

On thing that would help is to see if your example works using Simon's
scripts directly (they are on his web page), not via Sage.  I would do
that but do not have time now.  The point is to see if the newer
version than Sage uses also gives rise to the problem.

John

On 26 May 2012 02:32, Alex C <thealexco...@gmail.com> wrote:
> Hi Sage developers. I'm new to Sage, and I think I have found a bug,
> but I may very well be doing something wrong. I'm on Ubuntu 11.04
> 64bit using Sage 5.0. Code which produces the problem is below. Thank
> you for any help.
>
>
> ----------------------------------------------------------------------
> | Sage Version 5.0, Release Date: 2012-05-14                         |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> sage: poly = CyclotomicField(43).subfields(3)[0][0].polynomial()
> sage: poly
> x^3 + x^2 - 14*x + 8
> sage: K = NumberField(poly, 'a')
> sage: E = EllipticCurve(K, '37')
> sage: E
> Elliptic Curve defined by y^2 + y = x^3 + (-1)*x over Number Field in
> a with defining polynomial x^3 + x^2 - 14*x + 8
> sage: E.simon_two_descent()
> ---------------------------------------------------------------------------
> TypeError                                 Traceback (most recent call
> last)
>
> /home/blatm/<ipython console> in <module>()
>
> /home/blatm/sage/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/
> local/lib/python2.7/site-packages/sage/schemes/elliptic_curves/
> ell_number_field.pyc in simon_two_descent(self, verbose, lim1, lim3,
> limtriv, maxprob, limbigprime)
>    281                               verbose=verbose, lim1=lim1,
> lim3=lim3, limtriv=limtriv,
>    282                               maxprob=maxprob,
> limbigprime=limbigprime)
> --> 283         prob_rank = Integer(t[0])
>    284         two_selmer_rank = Integer(t[1])
>    285         prob_gens = [self(P) for P in t[2]]
>
> /home/blatm/sage/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/
> local/lib/python2.7/site-packages/sage/rings/integer.so in
> sage.rings.integer.Integer.__init__ (sage/rings/integer.c:6865)()
>
> TypeError: unable to convert x (=f) to an integer
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to 
> sage-devel+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to