From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: sqrt complex
Date: Tue, 11 May 2010 17:04:05 +0000 (UTC)
Organization: Xoran Technologies
Lines: 15
Message-ID: <hsc2m5$38l$>
References: <hsc0es$988$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1273597445 3349 (11 May 2010 17:04:05 GMT)
NNTP-Posting-Date: Tue, 11 May 2010 17:04:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: comp.soft-sys.matlab:634674

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <hsc0es$988$>...
> I read at the help and doc but I could not find any specification of SQRT for complex numbers.
> It seems the output keeps the same sign of the imaginary part as the input, and the discontinuity (in the complex plane) is the negative real axis. This is what I want, but I love to see it documented somewhere.
> Any opinion?

Probably the closest thing you can get right now is

doc angle

After some experimentation it is pretty clear that the underlying algorithm is