MathGroup Archive 2008

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

Search the Archive

Re: Is this a bug?

"mailcwc at" <mailcwc at> wrote:
> I tried to solve the following equation with mathematica 6.03
> Solve[{Abs[X+Y I]==5,X==3},{X,Y}]
> and got the answer
> {{X -> 3, Y -> -2 I}, {X -> 3, Y -> 8 I}}

It's easy to verify that both of those solutions are correct.

> Am I  suppose to get {{X -> 3, Y -> 4 I}, {X -> 3, Y -> -4 I}} ?

No. Rather, I think that you were wanting Y itself to be real, and so you
should have been hoping for

{{X -> 3, Y -> 4}, {X -> 3, Y -> -4}}


In any event, it seems that you were wanting Mathematica to find the
possible imaginary parts of complex numbers having real part 3 and
modulus 5. The way I'd do that is

In[1]:= Reduce[Abs[3 + Im[z]*I] == 5, z]

Out[1]= Im[z] == -4 || Im[z] == 4

Finally, in your title, you asked if there were a bug. Well, as I had said,
the two solutions which your Solve gave are correct. But I think that
Mathematica is perhaps at fault for not having warned you that Solve was
not necessarily giving you all possible solutions.


  • Prev by Date: Re: Comments on online documentation
  • Next by Date: Re: Unprotect[Pi]
  • Previous by thread: Re: Is this a bug?
  • Next by thread: Re: Is this a bug?