Boost logo

Boost :

Subject: Re: [boost] boost interval arithmetic
From: Asbjørn (lordcrc_at_[hidden])
Date: 2015-01-15 09:48:18


On 15.01.2015 15:01, Павел Кудан wrote:
> Now see:
>
> [-1.0, 1.0] / .0
>
> What is the correct result? Of course, [-inf, inf]

The way I understand interval arithmetics, the result is the set
{x / 0 for all x in [-1, 1]}.

Now, x/0 is undefined for all x in [-1, 1], so returning an empty set seems
logical to me.

- Asbjørn


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk