<< scidemo_optimrosenbrock Demonstration Toolbox

Demonstration Toolbox >> Demonstration Toolbox > scidemo_plotcmplxfun

scidemo_plotcmplxfun

Draw a complex function on a square or a disk.

Calling Sequence

scidemo_plotcmplxfun (R,e,TypeDomain,TypeCut,n,StrFunc,theta,alpha,DomReal)

Parameters

R :

a 1-by-1 matrix of doubles, length of half a side of the square or radius of the disk

e :

a 1-by-1 matrix of doubles, thin layer to avoid the branch(es) cut(s)

TypeDomain :

a 1-by-1 matrix of strings, "Square" or "Disk"

TypeCut :

a 1-by-1 matrix of strings, "Ox" or "Oy"

n :

a scalar (for Square) or a 2-vector = [ntheta, nr] (for Disk) for discretization

StrFunc :

a 1-by-1 matrix of strings, the string which names the complex function (this is because primitive don't pass as function argument)

theta :

a 1-by-1 matrix of doubles, usual parameters for plot3d

alpha :

a 1-by-1 matrix of doubles, usual parameters for plot3d

DomReal :

a 1-by-2 matrix of doubles, interval for which the real restriction is drawn

Description

A function to draw on a square or a disk a complex function with branch(es) cut(s) on Ox or Oy.

Examples

scf();
theta = -110;
alpha = 75;
scidemo_plotcmplxfun (2,%eps,"Square","Ox",41,"acos",theta,alpha,[-1,1]);

Authors

Bibliography

"Cleve's Corner: Trigonometry Is a Complex Subject", Cleve Moler, 1998, http://www.mathworks.com/company/newsletters/news_notes/clevescorner/sum98cleve.html

"Classroom Tips and Techniques: Branches and Branch Cuts for the Inverse Trig and Hyperbolic Functions", Robert J. Lopez, 2008, http://www.maplesoft.com/view.aspx?SF=6932/Branches_and_Branch_Cuts.pdf

<< scidemo_optimrosenbrock Demonstration Toolbox