On 2-May-08, at 9:46 AM, John Voight wrote:
>
> Is there a canonical way to sort elements of an algebraic number
> field?  I can think of one or two, but this is a needlessly costly
> thing to do, IMHO.

You're asking for a canonical representation, which amounts to a  
canonical choice of a defining polynomial for the field.  One can  
sort defining polynomials and choose the "smallest" one that gives a  
field isomorphic to your field; this seems to be more accepted for  
finite fields.

I think you might just want to try set([1, 3, 2]) == set([2, 3, 1,  
1]) and test for what you're really getting: a set.

Nick

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@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-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to