MathGroup Archive 2010

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

Search the Archive

Re: Peculiar output from Union ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108511] Re: Peculiar output from Union ?
  • From: DC <b.gatessucks at gmail.com>
  • Date: Sun, 21 Mar 2010 02:05:41 -0500 (EST)
  • References: <ho1ui0$hov$1@smc.vnet.net>

For a generic head f :

In[1]:= Union[f[x, y], f[y, w, z]]

Out[1]= f[w, x, y, z]

hence your result as FullForm[1<x<2]=Less[1,x,2].

Try

In[9]:= Union[Interval[{1, 2}], Interval[{3, 5}]]

Out[9]= Interval[{1, 2}, {3, 5}]

-Francesco

On 03/20/2010 07:47 AM, Jack L Goldberg 1 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
>


  • Prev by Date: Re: Peculiar output from Union ?
  • Next by Date: Re: Peculiar output from Union ?
  • Previous by thread: Re: Peculiar output from Union ?
  • Next by thread: Re: Peculiar output from Union ?