[sage-devel] Re: Bug in ComplexIntervalField

2008-07-16 Thread saucerful
I like 3. It probably makes the most sense because its the behavior is simplest to define/remember, and (in)equality is by far the most important anyway. On Jul 16, 2:44 am, Carl Witty <[EMAIL PROTECTED]> wrote: > On Jul 13, 1:57 pm, saucerful <[EMAIL PROTECTED]> wrote: > > > I see.  Yes I agree

[sage-devel] Re: Bug in ComplexIntervalField

2008-07-15 Thread Carl Witty
On Jul 13, 1:57 pm, saucerful <[EMAIL PROTECTED]> wrote: > I see.  Yes I agree it should be false.  Consider: > > CIF(RIF(0)) != CIF(RIF(-1, 1)) > True > > RIF(0, 0) != RIF(-1, 1) > False > > That these two comparisons should be different makes no sense, does > it? Yes, there's probably a bug her

[sage-devel] Re: Bug in ComplexIntervalField

2008-07-13 Thread saucerful
I see. Yes I agree it should be false. Consider: CIF(RIF(0)) != CIF(RIF(-1, 1)) True RIF(0, 0) != RIF(-1, 1) False That these two comparisons should be different makes no sense, does it? Also why is it that CIF(0) seems to not have an interval, while CIF(1) does? On Jul 13, 4:35 pm, Nick Al

[sage-devel] Re: Bug in ComplexIntervalField

2008-07-13 Thread Nick Alexander
On 13-Jul-08, at 12:17 PM, saucerful wrote: > > Some weird behavior in ComplexIntervalField: > > CIF(-1, 1) isn't what you think it is: sage: CIF(-1, 1) [-1. .. -1.] + [1. .. 1.]*I You meant: sage: CIF(RIF(-1, 1)) [-1.