[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Switch rounding mode

From: J.Benoist Leger
Subject: Switch rounding mode
Date: Thu, 16 Apr 2009 14:08:13 +0200
User-agent: Thunderbird (X11/20090220)


For doing interval analysis, I need some help :

if a is double scalar, b too, and I want to do :
> c= a*b

But in interval analisis I want to do :
> c.min = a \*/ b
> c.max = a /*\ b

where \*/ and /*\ are respectivly * where rounding mode is to -inf and inf.

I think I can do this :
> c=a*b;
> c.min=c-eps(c);
> c.max=c+eps(c);

But this is not the best way, my interval is to huge because
(c.max-c.min)=2*eps(c) and with the first way (c.max-c.min)=eps(c)

My question is, how I do the first way if it's possible ?


J.Benoist Leger

reply via email to

[Prev in Thread] Current Thread [Next in Thread]