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