MathGroup Archive 2008

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

Search the Archive

How to remove duplicate solutions (Solve)?


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)?