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


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

Re: Sqrt of complex number

From David Bailey <dave@removedbailey.co.uk>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Sqrt of complex number
Date 2012-05-29 09:46 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jq25u1$6gl$1@smc.vnet.net> (permalink)
References <201205270842.EAA17817@smc.vnet.net> <jpvfh3$q6g$1@smc.vnet.net>

Show all headers | View raw


>
> 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
>

In addition to what others have said, it is maybe worth pointing out 
that in general, the Sqrt expression would be embedded in a larger 
expression, such as a+Sqrt[3-4 I]+42 - so what should Mathematica do? If 
it returns a list of all possible answers, that might not be acceptable 
to something that was expecting a single value, and anyway, expressions 
such as ArcSin[.2] would have an infinite number of answers!

The only possible alternative strategy would be not to evaluate at all, 
as is the case with Sqrt[x^2] (since the answer can by x or -x).

David Bailey
http://www.dbaileyconsultancy.co.uk

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | 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