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".