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() -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---
xgalois.sage
Description: Binary data