MathGroup Archive 2004

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

Search the Archive

Re: Q: Solve gives complex solution where there is a noncomplex solution how to get the last one?


You used approximate (machine) numbers in the equation, namely, the 
exponent, so you got machine numbers in your answer.

But:

  Solve[x y/Sqrt[1 + y^2] == a, y] // InputForm

{{y -> -(a/Sqrt[-a^2 + x^2])},
  {y -> a/Sqrt[-a^2 + x^2]}}

(I'm using InputForm on the result of Solve just to obtain the answer in 
a linear form suitable for e-mail rather than Mathematica's default 2D 
StandardForm.)

Dick Barends wrote:

> Hello,
> 
> The following line
> 
> Solve[x y / ( 1 + y^2 )^0.5 == a, y]
> 
> Gives a complex solution : (0.+ i )a / (a^2 - x^2)^0.5
> Which is correct but could be simpler, not complex
> 
> The solution I expected is: a/(x^2 - a^2)^0.5
> 
> How can I instruct Mathematica (Solve) to give the simple solution directly.
> 
> kind regards
> Dick Barends
> 
> 
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: Is a For loop always a no-no?
  • Next by Date: Re: Is a For loop always a no-no?
  • Previous by thread: Re: Q: Solve gives complex solution where there is a noncomplex solution how to get the last one?
  • Next by thread: Re: subscripted function variables