Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12318
| From | bertiiiiiiiiiiiiiiiiiiiiiiiiii@gmail.com |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Relational operators on intervals: bug? |
| Date | 2012-11-11 20:59 +0000 |
| Message-ID | <k7p3j3$ca3$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
Hi there,
I would like to know if someone understands the behavior of relational operators on intervals reported below. I, personally, consider items 1 and 2 below bugs, and 3, a conceptual flaw.
1. Comparision of any Interval[___] to the empty interval Interval[]:
>From the Interval-documentation (Version 8):
"Relational operators such as Equal and Less yield explicit True or False results whenever they are given disjoint intervals."
This implies that the operator Less should always yield True if the empty interval, Interval[], is compared to any other Interval[___].
However, Interval[] < Interval[] does not evaluate to either True or False.
Same for Interval[] < Interval[0].
2. Behavior of Equal on Interval[___]:
What they also mean to imply by the above quote from the documentation is, I think, that
interval1 R interval2,
where R is any relational operator (Less,LessEqual,Equal,...), should NOT yield explicit True or False results if there exist x1, x3 in interval1 and x2, x4 in interval2 such that
(x1 R x2 and Not[x3 R x4]).
Indeed, Interval[{0, 2}] <= Interval[{0, 2}] comes back unevaluated, which is fine, but Interval[{0, 2}] == Interval[{0, 2}] evaluates to True, which is not.
In fact, the documentation for Equal contradicts what is said in the above quote from the documentation of Interval.
3. IntervalIntersection[]:
IntervalIntersection[] evaluates to Interval[], which represents the empty set. This might be considered a legal definition, but is in fact nonsensical, for the same reason for which Min[ Interval[] ] should evaluate to Infinity, and not -Infinity (which is in fact what Mathematica's Min does).
Thank you for your comments.
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
Relational operators on intervals: bug? bertiiiiiiiiiiiiiiiiiiiiiiiiii@gmail.com - 2012-11-11 20:59 +0000
Re: Relational operators on intervals: bug? Richard Fateman <fateman@cs.berkeley.edu> - 2012-11-12 08:12 +0000
Re: Relational operators on intervals: bug? Murray Eisenberg <murray@math.umass.edu> - 2012-11-13 05:13 +0000
Re: Relational operators on intervals: bug? Richard Fateman <fateman@cs.berkeley.edu> - 2012-11-14 06:33 +0000
Re: Relational operators on intervals: bug? Andrzej Kozlowski <akozlowski@gmail.com> - 2012-11-15 09:04 +0000
Re: Relational operators on intervals: bug? Murray Eisenberg <murray@math.umass.edu> - 2012-11-15 09:07 +0000
Re: Relational operators on intervals: bug? Murray Eisenberg <murray@math.umass.edu> - 2012-11-15 09:07 +0000
Re: Relational operators on intervals: bug? Andrzej Kozlowski <akozlowski@gmail.com> - 2012-11-15 09:07 +0000
Re: Relational operators on intervals: bug? Andrzej Kozlowski <akozlowski@gmail.com> - 2012-11-16 07:14 +0000
Re: Relational operators on intervals: bug? Murray Eisenberg <murray@math.umass.edu> - 2012-11-16 07:14 +0000
Re: Relational operators on intervals: bug? Andrzej Kozlowski <akozlowski@gmail.com> - 2012-11-16 07:14 +0000
Re: Relational operators on intervals: bug? Andrzej Kozlowski <akozlowski@gmail.com> - 2012-11-17 08:49 +0000
Re: Relational operators on intervals: bug? Richard Fateman <fateman@cs.berkeley.edu> - 2012-11-17 08:51 +0000
Re: Relational operators on intervals: bug? Bob Hanlon <hanlonr357@gmail.com> - 2012-11-13 05:13 +0000
Re: Relational operators on intervals: bug? Richard Fateman <fateman@eecs.berkeley.edu> - 2012-11-13 05:13 +0000
csiph-web