MathGroup Archive 1998

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

Search the Archive

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


>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.}?