Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

How to remove duplicate solutions (Solve)?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91782] How to remove duplicate solutions (Solve)?
  • From: Peng Yu <PengYu.UT at gmail.com>
  • Date: Sun, 7 Sep 2008 22:53:57 -0400 (EDT)

Hi,

Solve[(x - 1)^2 == 0, x]

The above code would give me the solution
{{x -> 1}, {x -> 1}}

But one is a duplicate of the other. I'm wondering how to only produce
the unique solutions.

Thanks,
Peng


  • Prev by Date: Re: force variable to be real
  • Next by Date: Re: Use of delayed assignment, :=, with a list
  • Previous by thread: Re: Mathematica and F#
  • Next by thread: Re: How to remove duplicate solutions (Solve)?