Re: [sage-devel] Re: comparison of elements of number fields

2010-01-28 Thread Mike Hansen
Here is a relevant ticket: http://trac.sagemath.org/sage_trac/ticket/6132 --Mike -- 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.go

[sage-devel] Re: comparison of elements of number fields

2010-01-28 Thread Dima Pasechnik
IMHO coercing (details to be worked out, I guess, otherwise we might have precision losses...) into complex numbers x+iy, and then compare lexicographically, 1st the real parts, and then the imaginary parts (to make this consistent with the event we compare reals!), is the only meaningful way to pr

[sage-devel] Re: comparison of elements of number fields

2010-01-28 Thread javier
Hi all On Jan 28, 11:04 am, Alex Ghitza wrote: > [snip] > which some might frown at.  So another possibility would be this: given > x and y, first compare the norms of x and y; if the norms are equal, > compare str(x) and str(y).  I think this would make as much mathematical > sense as possible g