MathGroup Archive 2005

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

Search the Archive

Dropping Similar Numbers from List

  • To: mathgroup at
  • Subject: [mg60564] Dropping Similar Numbers from List
  • From: "andre" <erasmus.the.giant at>
  • Date: Tue, 20 Sep 2005 05:19:43 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

My data set has some numbers which differ by a small amount, say one
part in 10^-15, that I don't want to appear more than once.  If they
were identical, I would just use Union[data] and be finished.  Is there
a way to set a tollerance for the Union function?

I tried to use SetPrecision to get rid of the unwanted extra digits,
but Union[SetPrecision[data,n]] gives the same result as Union[data].
What exactly does SetPrecision do?  It seems that it's not just
dropping the digits beyond the limit I set.


  • Prev by Date: Re: Mathematica: access serial port?
  • Next by Date: Re: writing a function with unknown number of paramters
  • Previous by thread: Re: Re: another Bug in Reduce ?
  • Next by thread: Re: Dropping Similar Numbers from List