Some weird behavior in ComplexIntervalField:

CIF(0) != CIF(-1, 1);

This should be false (as the value 0 is contained in both intervals),
but it returns true (using whatever version is on sagenb.org).

A little deeper:

print CIF(0);
0

print CIF(1);
[1.00000000000000000000 .. 1.00000000000000000000]


So it seems the problem is in the construction of ComplexIntervalField
from an integer.
Note that it works fine for RIF, in particular

print RIF(0);
[0.00000000000000000 .. 0.00000000000000000]

A fix for this would be greatly appreciated.  Also has anyone decided
the appropriate way to go about fixing the 'x in x.parent()' bug (for
x RealIntervalFieldElement or ComplexIntervalFieldElement)?

Thanks,
Eric

--~--~---------~--~----~------------~-------~--~----~
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