Re: Peculiar output from Union ?
- To: mathgroup at smc.vnet.net
- Subject: [mg108527] Re: Peculiar output from Union ?
- From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
- Date: Sun, 21 Mar 2010 02:08:39 -0500 (EST)
- References: <ho1ui0$hov$1@smc.vnet.net>
Jack, Union not only works on lists but on any function, as long as the functions to be united are the same. In this case we have the function Less: Union[Less[1,x,2],Less[3,x,5]] from which Union makes Less[1,2,3,5,x] (Union removes duplicates and sorts) This is equivalent to 1<2<3<5<x which simplifies to 5<x Cheers -- Sjoerd On Mar 20, 9: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