MathGroup Archive 2012

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

Search the Archive

Re: "Solve" on polynomial equality results in expressions containing "Root"


On 10/26/12 at 11:48 PM, coder0xff at gmail.com wrote:

>If I do Solve[y==3x^2-2x^3,x] I get expressions containing imaginary
>parts. If I set the domain to the Reals
>(Solve[y==3x^2-2x^3,x,Reals]) then I got stuff like Root[y - 3 #1^2
>+ 2 #1^3 &, 2]. I know there's a solution using only reals (since
>the range and domain are both real, and complex math is performed as
>operations on reals after all) How can I get it to give me the
>actual solution using only reals?

Probably the simplest way to accomplish your goal is to let
Solve return all solutions and delete the complex solutions, i.e.,

Cases[Solve[y == 3 x^2 - 2 x^3, x], _?(FreeQ[#, Complex] &)]




  • Prev by Date: Re: "Solve" on polynomial equality results in expressions
  • Next by Date: Re: Subscript in parameter names
  • Previous by thread: Re: "Solve" on polynomial equality results in expressions
  • Next by thread: Re: Trying to use Mathematica as "word processor" for my math homework