Hi all,

I noticed that iterating over a finite field gives a different order
depending on the implementation:

sage: list(sage.rings.finite_field_prime_modn.FiniteField_prime_modn
(7))
[0, 1, 2, 3, 4, 5, 6]
sage: list(sage.rings.finite_field.FiniteField_givaro(7))
[0, 3, 2, 6, 4, 5, 1]
sage: list(sage.rings.finite_field_ext_pari.FiniteField_ext_pari
(2**3,'a'))
[0, 1, a, a + 1, a^2, a^2 + 1, a^2 + a, a^2 + a + 1]
sage: list(sage.rings.finite_field.FiniteField_givaro(2**3))
[0, a, a^2, a + 1, a^2 + a, a^2 + a + 1, a^2 + 1, 1]
sage: list(sage.rings.finite_field_ntl_gf2e.FiniteField_ntl_gf2e
(2**3,'a'))
[0, 1, a, a + 1, a^2, a^2 + 1, a^2 + a, a^2 + a + 1]

I think we should change the behavior for FiniteField_givaro, but
maybe it's better to give the choice between the two behavior. Do you
think it's useful to keep both? Which one would you prefer for
default?

Yann
--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to