MathGroup Archive 2004

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

Search the Archive

Union & Select for removing duplicates in a list


I got list of numbers using FindRoot...which had duplicates...or, at
least, what looked like duplicates....I used Union to sort and ,
according to documentation, remove duplicates....but it didnt
work.....so list , after Union, looks like this for example....

{.0035, .0035, .005, .006...etc..}

I was actually building up {x,y} pairs from several  lists one entry of
which came up as {.0035, .0035} for example.....I then applied Select
...

Select[{x,y} pairs, #[[1]]NotEqual#[[2]]&]......and to my surprise this
worked, it removed {.0035, .0035}.....I assume that 'duplicate' for
Union and Select mean the same thing.....but then not according to the
actual operations.....

what am I missing?


thanks....jerry blimbaum


  • Prev by Date: Re: The Wave Equation : Mathematica vs. Mathworld
  • Next by Date: Re: 34.123*89 = 3036.95 (3036.947)
  • Previous by thread: Three graph into one
  • Next by thread: RE : 34.123*89 = 3036.95 (3036.947)