[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Re: Specifying signs when f(0)=0
On 2007-05-27 13:52:52 +0100, Nick Maclaren wrote:
One that I heard, but haven't checked out thoroughly, is that it is
needed for interval arithmetic. The claim was that the interval
[-0,x] includes true zero, whereas [+0,x] doesn't. I was and am
unconvinced, but would need to study the matter further to be sure.
This would mean that pow(-0, 2) should return -0 when rounding toward
negative.
However, if the tests are a problem, enabling traps allows to avoid them.
They are more-or-less deprecated by IEEE 754, IEEE 754R and C99.
Where did you see that?
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)