Re: Issue 2625 in sympy: Imaginary unit in R, ordering of complex numbers

2013-10-09 Thread sympy
Updates: Labels: -NeedsReview NeedsBetterPatch Comment #13 on issue 2625 by julien.r...@gmail.com: Imaginary unit in R, ordering of complex numbers http://code.google.com/p/sympy/issues/detail?id=2625 There are test failures. -- You received this message because this project is confi

Re: Issue 2625 in sympy: Imaginary unit in R, ordering of complex numbers

2013-10-05 Thread sympy
Updates: Labels: NeedsReview Comment #12 on issue 2625 by skirpic...@gmail.com: Imaginary unit in R, ordering of complex numbers http://code.google.com/p/sympy/issues/detail?id=2625 https://github.com/sympy/sympy/pull/2510 -- You received this message because this project is configur

Re: Issue 2625 in sympy: Imaginary unit in R, ordering of complex numbers

2013-03-15 Thread sympy
Comment #11 on issue 2625 by asmeu...@gmail.com: Imaginary unit in R, ordering of complex numbers http://code.google.com/p/sympy/issues/detail?id=2625 But In [89]: Interval(-oo,oo).contains(I) Out[89]: ⅈ > -∞ ∧ ⅈ < ∞ and even things like I > 2 still work. -- You received this message becau

Re: Issue 2625 in sympy: Imaginary unit in R, ordering of complex numbers

2013-03-15 Thread sympy
Comment #10 on issue 2625 by skirpic...@gmail.com: Imaginary unit in R, ordering of complex numbers http://code.google.com/p/sympy/issues/detail?id=2625 Probably, this bug could be closed: In [5]: I in Interval(-oo,oo) -

Re: Issue 2625 in sympy: Imaginary unit in R, ordering of complex numbers

2011-08-05 Thread sympy
Comment #8 on issue 2625 by alfr...@gmail.com: Imaginary unit in R, ordering of complex numbers http://code.google.com/p/sympy/issues/detail?id=2625 That's the kind of thing I mean =). I am not really advocating either way. I was more pointing out that OP's suggestion is both reasonable and

Re: Issue 2625 in sympy: Imaginary unit in R, ordering of complex numbers

2011-08-05 Thread sympy
Comment #7 on issue 2625 by asmeurer: Imaginary unit in R, ordering of complex numbers http://code.google.com/p/sympy/issues/detail?id=2625 That's really only a problem if the comparison operator is required to be compatible with the field operations for other reasons. It is a problem. T

Re: Issue 2625 in sympy: Imaginary unit in R, ordering of complex numbers

2011-08-05 Thread sympy
Comment #6 on issue 2625 by alfr...@gmail.com: Imaginary unit in R, ordering of complex numbers http://code.google.com/p/sympy/issues/detail?id=2625 Yeah, you can't make the complex numbers into an ordered field. That's really only a problem if the comparison operator is required to be co

Re: Issue 2625 in sympy: Imaginary unit in R, ordering of complex numbers

2011-08-05 Thread sympy
Comment #5 on issue 2625 by asmeurer: Imaginary unit in R, ordering of complex numbers http://code.google.com/p/sympy/issues/detail?id=2625 You can define any number of total orderings on the set of complex numbers, but none of these will be algebraic orders. This is true even if you limit

Re: Issue 2625 in sympy: Imaginary unit in R, ordering of complex numbers

2011-08-05 Thread sympy
Comment #4 on issue 2625 by matt...@gmail.com: Imaginary unit in R, ordering of complex numbers http://code.google.com/p/sympy/issues/detail?id=2625 Just to note this: we use the following ordering when sorting expressions (involving imaginary unit): In [1]: sorted([2 + 3*I, 2 + I, I, -I,

Re: Issue 2625 in sympy: Imaginary unit in R, ordering of complex numbers

2011-08-05 Thread sympy
Comment #3 on issue 2625 by alfr...@gmail.com: Imaginary unit in R, ordering of complex numbers http://code.google.com/p/sympy/issues/detail?id=2625 Actually, this is not even true. We should probably raise an error with that, just as Python does Lexicographic ordering is a natural choic

Re: Issue 2625 in sympy: Imaginary unit in R, ordering of complex numbers

2011-08-04 Thread sympy
Comment #2 on issue 2625 by asmeurer: Imaginary unit in R, ordering of complex numbers http://code.google.com/p/sympy/issues/detail?id=2625 I suppose there is a natural ordering of the purely imaginary numbers but statements such as '5*I < 6*I' and 'I*4 > I' do not return Boolean values.

Re: Issue 2625 in sympy: Imaginary unit in R, ordering of complex numbers

2011-08-04 Thread sympy
Updates: Status: Accepted Labels: WrongResult Assumptions Comment #1 on issue 2625 by asmeurer: Imaginary unit in R, ordering of complex numbers http://code.google.com/p/sympy/issues/detail?id=2625 This is because we have in the class Infinity: def __le__(a, b): i

Issue 2625 in sympy: Imaginary unit in R, ordering of complex numbers

2011-08-04 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 2625 by arthur.n...@gmail.com: Imaginary unit in R, ordering of complex numbers http://code.google.com/p/sympy/issues/detail?id=2625 Sorry if this has already been reported; I searched open issues but didn't see this one.