On Sep 17, 2009, at 10:44 PM, Robert Bradshaw wrote:

> On Sep 17, 2009, at 3:16 PM, David Harvey wrote:
>
>> I disagree with this change. One of the main purposes of interval
>> arithmetic is to be able to take a function f(x) that operates on
>> floats, and pass in intervals instead, to determine the possible  
>> range
>> of outputs a given input interval could produce. This change violates
>> that paradigm. The author of f(x) shouldn't need to care whether they
>> are operating on floats or intervals.
>
> +1. The smallest possible value for floor is a different thing (and
> contains less information) than all possible values of floor, and
> "all possible values" characterizes the interval arithmetic  
> operations.

Example:

sage: floor(log(RIF(8)) / log(RIF(2)))
3.?

Should this be 2? What if it returned an Integer if there was a  
unique floor (ceiling, etc.) and raised an exception otherwise?

- Robert


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

Reply via email to