Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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: [mg12693] Re: Union[{0},{0.}] = {0,0.}?
  • From: "Stephen P Luttrell" <luttrell at signal.dra.hmg.gb>
  • Date: Wed, 3 Jun 1998 02:20:46 -0400
  • Organization: Defence Evaluation and Research Agency
  • References: <6kvpko$7hl@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

>Union[{0},{0.}] = {0,0.}.
>
>Why?
>
>I would like the above to return only {0}.
>
>...

Try this:

Union[{0},{Chop[0.]}]

==========================================================

Stephen P Luttrell
luttrell at signal.dra.hmg.gb
Adaptive Systems Theory                           01684-894046 (phone)
Room EX21, DERA                                    01684-894384 (fax)
Malvern, Worcs, WR14 3PS, U.K.
http://www.dra.hmg.gb/cis5pip/Welcome.html



  • Prev by Date: Re: Groebner Bases
  • Next by Date: Re: How to get PostScript file in text mode.
  • Previous by thread: Re: Union[{0},{0.}] = {0,0.}?
  • Next by thread: Re: Union[{0},{0.}] = {0,0.}?