The Interactive Geometry Software Cinderella

Forum: Cinderella Support (E)

Forums->Cinderella Support (E)->Reproducing Julia Sets example (Tiny Code Examples)

aelkins
3 stars
Reproducing Julia Sets example (Tiny Code Examples)


The Julia Sets example (Tiny Code Examples) needs some critical information to be able to reproduce it. The image is as shown below.



You will find it off the help menu:
Help > Cinderella Manual > CindyScript > Tiny Code Examples > Julia Sets
or in "The Cinderella.2 Manual" ISBN 9783540349242
Chapter 16 — Tiny Code Examples, Julia Sets (page 411)
or click on the image above to see the online documentation.

The placement of the point "C" is critical. The following CindyScript provides the missing information:

// in Initialization

createpoint("A",[-1.53,-1.17]);
createpoint("B",[1.37,1.15]);
createpoint("C",[-0.21,0.69]);


In addition to what is shown:
// in Draw

g(z,c):=z^2+c;

julia(z):=(
iter=0;
while(iter<100 & |z|<2,
z=g(z,complex(C.xy));
iter=iter+1;
);
1-iter/100;
);

colorplot(julia(complex(#))
,A,B,startres->16,pxlres->1);


Then zoom in to see the image as shown above.

Best regards,
Alexander Elkins


 
on: Sun 20 of Sep, 2015 [20:46 UTC] reads: 78908

Posted messages

author message
aelkins
3 stars
Re: Reproducing Julia Sets example (Tiny Code Examples)
on: Fri 16 of Oct, 2015 [19:48 UTC]
Perhaps posting a reply will keep the thread from vanishing...
wink





Show posts:
 
Language