MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Interval[{a,b}]-Interval[{a,b}] = 0?


"Richard Fateman" <fateman at cs.berkeley.edu> wrote:
> Is this a bug or a feature?
> Notice that Interval[{-1,1}]-Interval[{-1,1}] is Interval[{-2,2}].

Johan has already given you an excellent answer. Here's just a slightly
different way of looking at the matter. I hope that each step seems
intuitively obvious:

-Interval[{-1,1}] is the same as Interval[{-1,1}].
(In other words, since Interval[{-1,1}] is symmetric about the origin,
negating all of its elements, we get the same interval.)

a - b is the same as a + (-b), even in interval arithmetic.

So then we have

Interval[{-1,1}] - Interval[{-1,1}]

= Interval[{-1,1}] + (-Interval[{-1,1}])

= Interval[{-1,1}] + Interval[{-1,1}]

= 2 Interval[{-1,1}]

= Interval[{-2,2}].

---------------------

For better or worse, most operations in interval arithmetic do not have
inverses. (Example: a/b = c does not imply that a = b*c.)

-Interval[{-1,1}] is the _negative_ of Interval[{-1,1}], yes. But it's not
an additive inverse of Interval[{-1,1}]. In fact, there can be no such
additive inverse.

Regards,
David


  • Prev by Date: Re: Interval[{a,b}]-Interval[{a,b}] = 0?
  • Next by Date: Re: Interval[{a,b}]-Interval[{a,b}] = 0?
  • Previous by thread: Re: Interval[{a,b}]-Interval[{a,b}] = 0?
  • Next by thread: Re: Interval[{a,b}]-Interval[{a,b}] = 0?