MathGroup Archive 1998

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

Search the Archive

Re: Union[{0},{0.}] = {0,0.}?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg12716] Re: Union[{0},{0.}] = {0,0.}?
  • From: bobk at decide.com
  • Date: Wed, 3 Jun 1998 02:21:06 -0400
  • Organization: Deja News - The Leader in Internet Discussion
  • References: <6kvpko$7hl@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <6kvpko$7hl at smc.vnet.net>,
  "Chris Farr" <farr at brown.edu> wrote:
>
> Union[{0},{0.}] = {0,0.}.
>
> Why?
>
> I would like the above to return only {0}.
>
Hi, Replacing 0 by 0. works fine:

In[12]:={0,0.}/. Rule[0,0.]
Out[12]={0.,0.}
In[13]:=Union[%]
Out[13]={0.}

Cheers/Bob

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading


  • Prev by Date: Power spectrum calculation and fit
  • Next by Date: Re: Thickness of ContourPlot[] lines?
  • Previous by thread: Union[{0},{0.}] = {0,0.}?
  • Next by thread: Re: Union[{0},{0.}] = {0,0.}?