Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Is this a bug?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90853] Re: [mg90816] Is this a bug?
  • From: Andy Anderson <aanderson at amherst.edu>
  • Date: Sat, 26 Jul 2008 04:22:25 -0400 (EDT)
  • References: <200807251014.GAA12036@smc.vnet.net>

On Jul 25, 2008, at 6:14 AM, mailcwc at gmail.com 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}}
>
> Am I  suppose to get {{X -> 3, Y -> 4 I}, {X -> 3, Y -> -4 I}} ?

Looks correct to me:

{X -> 3, Y -> -2 I}: Abs[X + Y I] == Abs[3 + (-2 I) I] == Abs[3 + 2]  
== Abs[5] = 5
{X -> 3, Y -> 8 I}: Abs[X + Y I] == Abs[3 + (8 I) I] == Abs[3 - 8] ==  
Abs[-5] = 5

-- Andy



  • References:
  • Prev by Date: Compression (zip) in 5.2?
  • Next by Date: question about sorting lists
  • Previous by thread: Is this a bug?
  • Next by thread: Re: Is this a bug?