MathGroup Archive 2002

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

Search the Archive

Re: Quick question about Interval[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34191] Re: Quick question about Interval[]
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Thu, 9 May 2002 05:15:51 -0400 (EDT)
  • References: <abaf77$s42$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Roland,
Interesting observation.
It seems that we must use IntervalIntersection and IntervalUnion

    i=Interval[{3,7}];
    j=Interval[{-2,5}];

    IntervalIntersection[i,j]

        Interval[{3,5}]

    IntervalUnion[i,j]

        Interval[{-2,7}]

--
Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565


"Roland Pabel" <pabel at tabu.uni-bonn.de> wrote in message
news:abaf77$s42$1 at smc.vnet.net...
> Hi,
> I've got a quick question about Intervals : Everything works fine when I
use
> IntervallIntersection and IntervalUnion. I curiously used the symbols
> \[Union] and \[Intersection], but only \[Union] works as expected :
>
> Notebook[{
> Cell[BoxData[{
>     \(\(i = Interval[{3, 7}];\)\), "\[IndentingNewLine]",
>     \(\(j = Interval[{\(-2\), 5}];\)\)}], "Input"],
>
> Cell[CellGroupData[{
>
> Cell[BoxData[
>     \(i \[Union] j\)], "Input"],
>
> Cell[BoxData[
>     \(Interval[{\(-2\), 7}]\)], "Output"]
> }, Open  ]],
>
> Cell[CellGroupData[{
>
> Cell[BoxData[
>     \(i \[Intersection] j\)], "Input"],
>
> Cell[BoxData[
>     \(Interval[]\)], "Output"]
> }, Open  ]]
> },
> FrontEndVersion->"4.0 for X",
> ]
>
> As you can see, the Intersection using \[Intersection] is empty. Is this a
> bug or is \[Union] a (unnoted?) feature?
> thanks,
> Roland
> --
> ICQ UIN 49339118                        Linux Counter #88774
> GPG-Key 1024D/C969F3F2 2001-02-28 Roland Pabel <roland at pabel.net>
> fingerprint = C8A7 BF6A 12FE CE55 724D  667B 4060 B228 C969 F3F2
>




  • Prev by Date: RE: Sequence and Or
  • Next by Date: HTMLSave and Heading
  • Previous by thread: Quick question about Interval[]
  • Next by thread: Dynamic referencing AND hyperlinking for numbered equations(done)