Newsgroups: comp.soft-sys.matlab
Subject: Evaluation on branch cuts
Date: Sat, 23 May 2009 07:26:00 -0700 (PDT)
Lines: 13
Message-ID: <>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: 1243088761 19159 (23 May 2009 14:26:01 GMT)
NNTP-Posting-Date: Sat, 23 May 2009 14:26:01 +0000 (UTC)
Injection-Info:; posting-host=; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv: 
	Gecko/2009042513 Ubuntu/8.04 (hardy) Firefox/3.0.10,gzip(gfe),gzip(gfe)
Bytes: 1668
Xref: comp.soft-sys.matlab:542006

I always have trouble with Matlab's determination of which value to
use when a function is evaluated on its branch cut. For example,
evaluating the function f(z) = z^(1/2) along the negative real axis.

Is there a way to get Matlab to automatically insert a small imaginary
value in order to keep the signs sorted out? For example, I may want
to use,

f(x + 1e-12*i) as the value of f(x)

That is, other than doing it manually. I suppose my question is are
there any aids to help the programmer keep control over how Matlab is
performing the branch cuts.