Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10235

Re: Sqrt of complex number

From "Dave Snead" <dsnead6@charter.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Sqrt of complex number
Date 2012-05-28 09:12 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jpvfh3$q6g$1@smc.vnet.net> (permalink)
References <201205270842.EAA17817@smc.vnet.net>

Show all headers | View raw


Use Solve to get both answers:

Solve[z^2==3-4I,z]

{{z->-2+I},{z->2-I}}

Cheers,
Dave Snead


-----Original Message----- 
From: Jacare Omoplata
Sent: Sunday, May 27, 2012 1:42 AM
Subject: Sqrt of complex number

Hi,

When I try to find the square root of of a complex number, I get only one 
answer.

In[1]:= Sqrt[3-4 I]
Out[1]= 2-I

But -2+I is an answer as well.

In[2]:= (-2+I)^2
Out[2]= 3-4 I

Why does Mathematica give the first answer and not the second? Does it 
choose the answer with the positive real number? Is there any way I can get 
both answers? Or do I just have to remember that the negative of the given 
answer is also an answer?

Thanks.


Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: Sqrt of complex number "Dave Snead" <dsnead6@charter.net> - 2012-05-28 09:12 +0000
  Re: Sqrt of complex number David Bailey <dave@removedbailey.co.uk> - 2012-05-29 09:46 +0000
    Re: Sqrt of complex number Richard Fateman <fateman@cs.berkeley.edu> - 2012-05-30 08:13 +0000

csiph-web