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 proceed...
Dima On Jan 28, 8:00 pm, javier <vengor...@gmail.com> wrote: > Hi all > > On Jan 28, 11:04 am, Alex Ghitza <aghi...@gmail.com> 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 given the circumstances. > > > Reactions? > > I don't really like the idea of comparing the strings. Why not coerce > the elements into complex numbers and compare there? > > Cheers > J -- 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 URL: http://www.sagemath.org