MathGroup Archive 2010

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

Search the Archive

Re: Peculiar output from Union ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108528] Re: Peculiar output from Union ?
  • From: Raffy <adraffy at gmail.com>
  • Date: Mon, 22 Mar 2010 02:38:41 -0500 (EST)
  • References: <ho1ui0$hov$1@smc.vnet.net>

On Mar 20, 12:47 am, Jack L Goldberg 1 <jackg... at umich.edu> wrote:
> Hi Folks,
>
> Can anyone explain this:
>
> In[1]:= Union[  1 < x < 2, 3 < x < 5  ]
>
> Out[1]= 5 < x
>
> ??
>
> I am using a MacBook Pro, OS 10.6.2
>
> Thanks,
>
> Jack

FullForm/Trace of what you have written:

Union[Less[1,x,2], Less[3,x,5]] === Union[Less[1,2,3,5,x]] ===
Less[1,2,3,5,x] === Less[5,x]

Recall, Union is expecting its arguments to be "sets" (with a common
head) and the actual Union is with respect to the elements of those
"sets".


  • Prev by Date: Re: real and imaginary part of a complex number
  • Next by Date: Re: solving equations
  • Previous by thread: Re: Peculiar output from Union ?
  • Next by thread: Docked cells and TagBoxNote / StatusArea