On Thursday 28 August 2003 02:40, Andrew J Bromage wrote:

> On Wed, Aug 27, 2003 at 04:03:52PM +0000, Jonas Ritter wrote:
> > >+ :: Intervall -> Intervall -> Intervall
> > >(a,b) + (c,d) = (a+c,b+d)
>
> In general this is insufficient because of floating point rounding.

It all depends on the application for the interval arithmetic. One could use 
Rational for the numeric type, for example, if CPU time is not critical and 
the range of the numbers is not too large.

Konrad.
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to