No BSD License  

Highlights from
Schwarz-Christoffel Toolbox

image thumbnail
from Schwarz-Christoffel Toolbox by Toby Driscoll
Computes conformal maps to polygons, allowing easy solution of Laplace's equation.

dimapfun(wp,yp,flag,scale,z,beta,c);
function zdot = dimapfun(wp,yp,flag,scale,z,beta,c);
%   Used by DINVMAP for solution of an ODE.

%   Copyright 1998 by Toby Driscoll.
%   $Id: dimapfun.m 7 1998-05-10 04:37:19Z tad $

lenyp = length(yp);
lenzp = lenyp/2;
zp = (yp(1:lenzp)+sqrt(-1)*yp(lenzp+1:lenyp));

f = scale./dderiv(zp,z,beta,c);
zdot = [real(f);imag(f)];

Contact us at files@mathworks.com