Ken Monks
    Dept. of Mathematics
    University of Scranton
    Scranton, PA 18510
SITE CONTENTS
Home Page Software Courses
Publications Student Research Misc
Phone: (570) 941-6101   
Fax: (570) 941-5981   
Office: STT163-A   
Email:    monks@scranton.edu 
 

XMas tree fractals

This quick Maple worksheet produces some very simple fractals that look vaguely like XMas trees. The chaos Maple library is available here.

> readlib(chaos);

[Maple Math]

degrees:=Pi/180;

[Maple Math]

angle:=20;

[Maple Math]

IFS := [
Affine(1/2,1/2,90+angle,90+angle,1/2-0.15,0),
Affine(1/2,1/2,-90-angle,-90-angle,1/2+1/2*sin(angle*degrees)+0.15,1/2*cos(angle*degrees)),
Affine(1/2,1/2,0,0,1/4,0.85)];

[Maple Math]
[Maple Math]

DrawDetIFS(MrFace,IFS,1);

[Maple Plot]

DrawIFS(IFS,20000,color=green);

[Maple Plot]

 

IFS:=GridIFS(Lt,Rt,Up,none);

[Maple Math]

[Maple Math]

IFS := [Affine(1/2,1/2,90,90,1/2,0), Affine(1/2,1/2,-90,-90,1/2,1/2), Affine(1/2,1/2,0,0,1/4,1/2)];

[Maple Math]

DrawDetIFS(MrFace,IFS,1);

[Maple Plot]

DrawIFS(IFS,20000,color=GREEN);

[Maple Plot]

IFS:=GridIFS(Up,Up,Up,none);

[Maple Math]

angle:=60;

[Maple Math]

IFS := [
Affine(1/2,1/2,angle,angle,1/4-1/4*cos(angle*degrees),-1/4*sin(angle*degrees)),
Affine(1/2,1/2,-angle,-angle,3/4-1/4*cos(angle*degrees),1/4*sin(angle*degrees)),
Affine(1/2,1/2,0,0,1/4,1/2)];

[Maple Math]

DrawDetIFS(MrFace,IFS,1);

[Maple Plot]

DrawIFS(IFS,20000,color=green);

[Maple Plot]

 


Self Portrait

Many mathematics files on this site are in pdf format. If your browser does not display pdf files, click here for assistance.
This page was last  updated on Sunday, May 28, 2000 12:24:54 AM
. © Ken Monks