/*
batch file for maxima
conformal mapping from :
the circle with center=0 and radius=1/2
given by equation : abs(2*z)=1
where : z:x+y*%i=r*cos(t)+%i*r*sin(t) =
onto
cardioid ( boundary of main hyperbolic component of Mandelbrot set
is given by equation:
c:w-w*w;
based on :Conformal Mappings And The Area Of The Mandelbrot Set by David Allingham page 18
http://www.eng.warwick.ac.uk/staff/doa/reports/allingham-thesis1995.pdfarchive copy at the Wayback Machine
*/
/* conformal map */
f(w):=w-w*w;
iMax:100; /* number of points to draw */
dt:1/iMax;
/*
circle D={w:abs(2w)=1 } where w=l(t)
t is angle in turns ; 1 turn = 360 degree = 2*Pi radians
*/
l(t):=%e^(%i*t*2*%pi)/2;
/* point to point method of drawing */
t:0; /* angle in turns */
/* compute first point of curve, create list and save point to this list */
/* point of unit circle w:l(t); */
w:rectform(ev(l(t), numer));
circleList:makelist (w, j, 1, 1);
for i:1 thru iMax step 1 do
block
(t:t+dt,
w:rectform(ev(l(t), numer)),
circleList:cons(w,circleList)
);
/* convert one list into 2 lists */
xxCircle:map(realpart, circleList);
yyCircle:map(imagpart, circleList);
/* conformal mapping from circle to cardioid */
cardioidList: map(f, circleList);
/* convert one list into 2 lists */
xxCardioid:map(realpart, cardioidList);
yyCardioid:map(imagpart, cardioidList);
load(draw); /* Mario Rodríguez Riotorto http://www.telefonica.net/web2/biomates/maxima/gpdraw/index.htmlarchive copy at the Wayback Machine */
draw(file_name = "a",
pic_width=1000,
pic_height= 500,
terminal = 'png,
columns = 2,
gr2d(title = " circle D={w:abs(2*w)=1 } ",
points_joined =true,
color = red,
point_type = 0,
points(xxCircle,yyCircle)),
gr2d(title = "cardioid {c: c = w - w*w } ",
points_joined =true,
color = blue,
point_type = 0,
points(xxCardioid,yyCardioid))
);
to share – to copy, distribute and transmit the work
to remix – to adapt the work
Under the following conditions:
attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue
You may select the license of your choice.
Captions
Add a one-line explanation of what this file represents
{{Information |Description={{en|1=Conformal mapping from circle to cardioid}} |Source=Own work by uploader |Author=Adam majewski |Date=4.10.2008 |Permission= |other_versions= }} <!--{{ImageUpload|full}}-->
File usage
No pages on the English Wikipedia use this file (pages on other projects are not listed).