Yes, it is a bug and the fix is at

   http://trac.sagemath.org/sage_trac/ticket/1122

Martin

On Wednesday 07 November 2007, William Stein wrote:
> Here's a support request from Jim Carlson:
>
>
> ---------- Forwarded message ----------
> From: James Carlson <[EMAIL PROTECTED]>
> Date: Nov 7, 2007 7:03 AM
> Subject: Bug?
> To: William Stein <[EMAIL PROTECTED]>
>
>
> Hi William,
>
>   Attached is a file with odd behavior.
>
>        p = a prime
>        n = a postive integer
>        q = p^n
>        K = GF(q)
>
>       f = x^3 + y^3 + z^3
>
>       points(f) -- returns list of poitns of f(x,y,z) == 0
>
>       The above works with p = 5, n = 2.  But points
>    crashes with p = 5, n = 3.  The error message is attached.
> I also did this:
>
> for i in range(0,1953125):
> ....:     bar.append(K.random_element)
> ....:
> sage: len(bar)
> 1953125
>
> Thus I don't think SAGE ran out of memory.
>
> I am using SAGE 2.8.7 on a macbook pro, OS 10.5
>
> Best regards,
>
> Jim
>
>
>
>
>
> <type 'exceptions.IndexError'>            Traceback (most recent call
> last)
>
> /Volumes/jxxcarlson/_jc/_current/sage/<ipython console> in <module>()
>
> /Volumes/jxxcarlson/_jc/_current/sage/xgalois.py in points(f)
>      17     for yy in K:
>      18       for zz in K:
> ---> 19         if f(xx,yy,zz) == Integer(0):
>      20           pts.append([xx,yy,zz])
>      21   return pts
>
> /Volumes/jxxcarlson/_jc/_current/sage/finite_field_givaro.pyx in
> finite_field_givaro.FiniteField_givaroElement.__richcmp__()
>
> /Volumes/jxxcarlson/_jc/_current/sage/element.pyx in
> element.Element._richcmp()
>
> /Volumes/jxxcarlson/_jc/_current/sage/element.pyx in
> element.Element._richcmp_()
>
> /Volumes/jxxcarlson/_jc/_current/sage/element.pyx in
> element.Element._richcmp()
>
> /Volumes/jxxcarlson/_jc/_current/sage/element.pyx in
> element.Element._richcmp_c_impl()
>
> /Volumes/jxxcarlson/_jc/_current/sage/finite_field_givaro.pyx in
> finite_field_givaro.FiniteField_givaroElement._cmp_c_impl()
>
> /Volumes/jxxcarlson/_jc/_current/sage/finite_field_givaro.pyx in
> finite_field_givaro.FiniteField_givaro.log_to_int()
>
> <type 'exceptions.IndexError'>: n=126 must be < self.order()



-- 
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: [EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to