Union[{0},{0.}] = {0,0.}?
- To: mathgroup at smc.vnet.net
- Subject: [mg12662] Union[{0},{0.}] = {0,0.}?
- From: "Chris Farr" <farr at brown.edu>
- Date: Mon, 1 Jun 1998 23:16:38 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Union[{0},{0.}] = {0,0.}. Why? I would like the above to return only {0}. The root of the problem is that Mathematica thinks they are the same: SameQ[{0},{0.}] = False How can I get around this? The following doesn't help either. Union[{ N[0] },{0.}] = {0,0.} Any ides out there?