CSC 470 Computer Graphics. Fractals

Size: px
Start display at page:

Download "CSC 470 Computer Graphics. Fractals"

Transcription

1 CSC 47 Computer Graphics Fractals 1

2 This Week Approaches to Infinity Fractals and Self-Similarity Similarity Iterative Function Systems Lindenmayer Systems Curves Natural Images (trees, landscapes..)

3 Introduction What is a Fractal? A A fractal is an image with self-similar similar properties produced by recursive or iterative algorithmic means. anything which has a substantial measure of exact or statistical l self-similarity similarity Mandelbrot coined the term from the latin fractus meaning fragmented or irregular 3

4 Introduction Why use fractals in Computer Graphics? Most real world objects are inherently smooth. Most real world objects cannot be represented by simple prisms and ellipsoids. Most real world objects cannot best be described by fixed mathematical curves (e.g. sin, cos etc..) 4

5 Introduction Although curves can represent natural phenomena they can become very complex e.g. Trees, Mountains, Water, Clouds etc... Clouds are not spheres, coastlines are not circles, bark is not smooth, nor does lightning travel in straight lines. -Mandelbrot 5

6 Introduction Fractals are useful for representing natural shapes such as trees, coastlines, mountains, terrain and clouds. Magnification of these things review smaller self-similar similar copies of the entire image. 6

7 Branches are self-similar Roots are self-similar 7

8 Fractal Curve Refinement Very complex curves can be fashioned recursively by repeatedly refining the curve. Koch Curve: subdivide each segment of Kn into three equal parts, and replace the middle part with a bump in the shape of an equilateral triangle. The Koch Snowflake 8

9 Fractal Curve Refinement //dir - turtle angle //len - length of line segment //n - number of iterations void drawkoch(double dir, double len,int n) { double dirrad = * dir; // in radians if(n == ) cvs.forward(len,1); else{ n--; // reduce the order len /= 3; // and the length drawkoch(dir, len,, n); dir += 6; cvs.turnto(dir); drawkoch(dir, len,, n); dir -= = 1; cvs.turnto(dir); drawkoch(dir, len,, n); dir += 6; cvs.turnto(dir); drawkoch(dir, len,, n); } } 9

10 Lindenmayer Systems An L-System L works by giving the turtle a string sequence where each symbol in the sequence gives turtle instructions. F -> > go forward 1 step + -> > turn right by x degrees - -> > turn left by x degrees where x is set and predetermined. 1

11 Lindenmayer Systems The string F+F-F F means go forward turn right, go forward, turn left and go forward. 11

12 Lindenmayer Systems L-Systems are produced based on a production rule. This rule is iteratively applied to the string. e.g. F -> > F+F means that all F s in the string should be replaced with F+F therefore, F+F-F F becomes: F+F+F+F-F+F 1

13 L-Systems Starting with: F+F+F+F and the production rule: F -> F+F-F-FF+F+F-F After one iteration the following string would result F+F-F-FF+F+F-F + F+F-F-FF+F+F-F + F+F-F- FF+F+F-F + F+F-F-FF+F+F-F 13

14 L-Systems After iterations the string would be: F+ F-F-FF+ F+ F-F+ F+ F-F-FF+ F+ F-F-F+ F-F-FF+ F+ F-F-F+ F-F-FF+ F+ F-FF+ F-F-FF+ F+ F-F+ F+ F-F-FF+ F+ F-F+ F+ F- F-FF+ F+ F-F-F+ F-F-FF+ F+ F-F+ F+ F-F-FF+ F+ F-F+ F+ F-F- FF+ F+ F-F-F+ F-F-FF+ F+ F-F-F+ F-F-FF+ F+ F-FF+ F-F-FF+ F+ F-F+ F+ F-F-FF+ F+ F-F+ F+ F-F-FF+ F+ F-F-F+ F-F-FF+ F+ F-F+ F+ F-F-FF+ F+ F-F+ F+ F-F-FF+ F+ F-F-F+ F-F-FF+ F+ F-F-F+ F-F-FF+ F+ F-FF+ F-F-FF+ F+ F-F+ F+ F-F-FF+ F+ F-F+ F+ F-F-FF+ F+ F-F-F+ F-F-FF+ F+ F-F+ F+ F-F-FF+ F+ F- F+ F+ F-F-FF+ F+ F-F-F+ F-F-FF+ F+ F-F-F+ F-F-FF+ F+ F- FF+ F-F-FF+ F+ F-F+ F+ F-F-FF+ F+ F-F+ F+ F-F-FF+ F+ F-F- F+ F-F-FF+ F+ F-F 14

15 L-Systems Programming L-SystemsL producestring(char *rule, int iterations) { FILE *ifp* ifp,, *ofp* ofp; for(int i = ; i < iterations; i++) { if( (ifp( = fopen("ldata.txt","r")) ")) == NULL (ofp( = fopen("ltemp.txt","w")) ")) == NULL ) exit(-1); //cannot open files } } int ch; while((ch = fgetc(ifp))!= -1) { switch(ch) { case 'F': fprintf(ofp,"%s",rule); break; default: fprintf(ofp,"%c",ch); break; } } fclose(ifp); fclose(ofp); remove("ldata.txt"); "); rename("ltemp.txt", ", "ldata.txt" ldata.txt"); 15

16 L-Systems Programming L-SystemsL drawstring(int len,, float angle) { FILE *ifp* ifp; if( (ifp( = fopen("ldata.txt","r")) ")) == NULL ) exit(-1); //cannot open files } int ch; while( (ch( = fgetc(ifp))!= -1) { switch(ch) { case 'F': cvs.forward(len,, 1); break; case '+': cvs.turn(-angle); break; case '-':' ': cvs.turn(angle); break; } } 16

17 L-Systems Programming L-SystemsL void mydisplay(void) { cvs.clearscreen(); gllinewidth(3); cvs.moveto(-5.,.); producestring("f-f++f F++F-F", F", 3); drawstring(,6); glflush(); } 17

18 L-Systems Programming L-L Systems The more iterations you do, the bigger the curve will get.. Therefore you need to modify the length of the sides depending on the number of iterations. 1 iteration 3 iterations 18

19 L-Systems There is a limit to the number of shapes that can be drawn with just and F directive. L-Systems need to be restricted to just F, you can use however many replacement letters and strings you like. 19

20 L-Systems For example, F, X and Y: F -> > F X -> > X+YF+ Y -> > -FX FX-Y atom = X (starting string) But the turtle only draws with F This of course is no rule, you could make X and Y draw as well it is up to you!!!

21 L-Systems The Dragon Curve F -> > F X -> > X+YF+ Y -> > -FX FX-Y atom = X 1 iterations 1

22 L-Systems Koch Island F -> > F+F-F-FF+F+F FF+F+F-F F X -> > Y -> > atom = F+F+F+F 5 iterations

23 L-Systems If you look at a tree you will notice that it is made up of smaller copies of itself. e.g. A tree branch is just a smaller version of a tree. Being self-similar similar doesn t mean each smaller version has to be EXACTLY the same. 3

24 L-Systems Lets look at a tree F F But that can t be right? F F F -> F+F-F 4

25 L-Systems Lets look at a tree F F F F return here F -> F+F-F start here 5

26 L-Systems Lets look at a tree F F F F return here F -> F[+F]-F start here 6

27 L-Systems Lets look at a tree F -> F[+F][-F] push the turtle location pop the turtle location 7

28 L-Systems Lets look at a tree F -> > F[+F][-F] F] atom F 8

29 L-Systems Lets look at a tree F -> > FF-[-F+F+F]+[+F F+F+F]+[+F-F-F] F] atom F 9

30 L-Systems Lets look at a tree Some L-System L trees can look a little calculated, therefore random angles and lengths can be introduced. This is the same tree (above) and below with random lengths and angles. 3

31 L-Systems or you can modify the thickness or length of the branch (lines) depending on the level at which it appears in the tree. 31

32 3 Affine Transformations Affine Transformations For example, take these: For example, take these: = ' ' y x y x = ' ' y x y x = ' ' y x y x original image (1x1) What will it look like after the transformations??

33 33 Affine Transformations Affine Transformations For example, take these: For example, take these: = ' ' y x y x = ' ' y x y x = ' ' y x y x

34 Affine Transformations 34

35 Affine Transformations An my personal favourite: Affine Transformations: T {a,b,c,d,e,f{ a,b,c,d,e,f} x' a = y' d 1 c x f. y 1 1 T1 {,,,,.16,} T {.,-.6,,.3,.,1.6}.6,,.3,.,1.6} T3 {-.15,.8,,.6,.4,.44}{ T4 {.75,.4,,-.4,.85,1.6}.4,.85,1.6} b e 35

36 Affine Transformations An my personal favourite: 36

37 Affine Transformations An my personal favourite: 37

38 Affine Transformations An my personal favourite: 38

39 Iterative Function Systems An iterative function system (IFS) takes a set of affine transformations and transforms a point through them based on a random selection of the transformation. An IFS is a collection of N affine transformations T i, for I = 1,,,N 39

40 Iterative Function Systems Generating an IFS Chaos Game select a random point do { select a random transformation run point through transformation plot new point set old point to new point }while (!bored) 4

41 Iterative Function Systems Generating an IFS Chaos Game select a random point do { select a random transformation run point through transformation plot new point set old point to new point }while (!bored) 41

42 Iterative Function Systems The idea: All points on the attractor (final image) are reachable by applying a long sequence of affine transformations. The random selection of transformations is invoked to ensure the system is fully exercised 4

43 43

44 Next Week More Fractals Mandelbrot and Julia Sets Generating realistic landscapes 44

Fractals & Iterative Function Systems

Fractals & Iterative Function Systems CS 543: Computer Graphics Fractals & Iterative Function Systems Robert W. Lindeman Associate Professor Department of Computer Science Worcester Polytechnic Institute gogo@wpi.edu (with lots of help from

More information

Fractal Geometry. Prof. Thomas Bäck Fractal Geometry 1. Natural Computing Group

Fractal Geometry. Prof. Thomas Bäck Fractal Geometry 1. Natural Computing Group Fractal Geometry Prof. Thomas Bäck Fractal Geometry 1 Contents Introduction The Fractal Geometry of Nature - Self-Similarity - Some Pioneering Fractals - Dimension and Fractal Dimension Scope of Fractal

More information

Fractal Geometry. LIACS Natural Computing Group Leiden University

Fractal Geometry. LIACS Natural Computing Group Leiden University Fractal Geometry Contents Introduction The Fractal Geometry of Nature Self-Similarity Some Pioneering Fractals Dimension and Fractal Dimension Cellular Automata Particle Systems Scope of Fractal Geometry

More information

Copyright 2009 Pearson Education, Inc. Chapter 9 Section 7 - Slide 1 AND

Copyright 2009 Pearson Education, Inc. Chapter 9 Section 7 - Slide 1 AND Copyright 2009 Pearson Education, Inc. Chapter 9 Section 7 - Slide 1 AND Chapter 9 Geometry Copyright 2009 Pearson Education, Inc. Chapter 9 Section 7 - Slide 2 WHAT YOU WILL LEARN Transformational geometry,

More information

CS 543: Computer Graphics Lecture 3 (Part I): Fractals. Emmanuel Agu

CS 543: Computer Graphics Lecture 3 (Part I): Fractals. Emmanuel Agu CS 543: Computer Graphics Lecture 3 (Part I: Fractals Emmanuel Agu What are Fractals? Mathematical expressions Approach infinity in organized way Utilizes recursion on computers Popularized by Benoit Mandelbrot

More information

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 28 November 8, 2012

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 28 November 8, 2012 CS 4300 Computer Graphics Prof. Harriet Fell Fall 2012 Lecture 28 November 8, 2012 1 Today s Topics Fractals Mandelbrot Set Julia Sets L-Systems 2 Fractals The term fractal was coined in 1975 by Benoît

More information

Computer Graphics 4731 Lecture 5: Fractals. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

Computer Graphics 4731 Lecture 5: Fractals. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI) Computer Graphics 4731 Lecture 5: Fractals Prof Emmanuel Agu Computer Science Dept. Worcester Polytechnic Institute (WPI What are Fractals? Mathematical expressions to generate pretty pictures Evaluate

More information

Fractals and L- Systems

Fractals and L- Systems Fractals and L- Systems Sanyam Gupta January 26, 2018 1 Lindenmayer systems Have you ever wondered, how to formulate a mathematical equation for the plant in your verandah or garden? The nature produces

More information

Computer Graphics (CS 543) Lecture 2c: Fractals. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

Computer Graphics (CS 543) Lecture 2c: Fractals. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI) Computer Graphics (CS 543 Lecture c: Fractals Prof Emmanuel Agu Computer Science Dept. Worcester Polytechnic Institute (WPI What are Fractals? Mathematical expressions to generate pretty pictures Evaluate

More information

Fractals. Moreno Marzolla Dip. di Informatica Scienza e Ingegneria (DISI) Università di Bologna.

Fractals. Moreno Marzolla Dip. di Informatica Scienza e Ingegneria (DISI) Università di Bologna. Fractals Moreno Marzolla Dip. di Informatica Scienza e Ingegneria (DISI) Università di Bologna http://www.moreno.marzolla.name/ 2 Geometric Objects Man-made objects are geometrically simple (e.g., rectangles,

More information

Fractal Coding. CS 6723 Image Processing Fall 2013

Fractal Coding. CS 6723 Image Processing Fall 2013 Fractal Coding CS 6723 Image Processing Fall 2013 Fractals and Image Processing The word Fractal less than 30 years by one of the history s most creative mathematician Benoit Mandelbrot Other contributors:

More information

Mathematics 350 Section 6.3 Introduction to Fractals

Mathematics 350 Section 6.3 Introduction to Fractals Mathematics 350 Section 6.3 Introduction to Fractals A fractal is generally "a rough or fragmented geometric shape that is self-similar, which means it can be split into parts, each of which is (at least

More information

Fractals in Nature and Mathematics: From Simplicity to Complexity

Fractals in Nature and Mathematics: From Simplicity to Complexity Fractals in Nature and Mathematics: From Simplicity to Complexity Dr. R. L. Herman, UNCW Mathematics & Physics Fractals in Nature and Mathematics R. L. Herman OLLI STEM Society, Oct 13, 2017 1/41 Outline

More information

Procedural modeling and shadow mapping. Computer Graphics CSE 167 Lecture 15

Procedural modeling and shadow mapping. Computer Graphics CSE 167 Lecture 15 Procedural modeling and shadow mapping Computer Graphics CSE 167 Lecture 15 CSE 167: Computer graphics Procedural modeling Height fields Fractals L systems Shape grammar Shadow mapping Based on slides

More information

Generation of 3D Fractal Images for Mandelbrot and Julia Sets

Generation of 3D Fractal Images for Mandelbrot and Julia Sets 178 Generation of 3D Fractal Images for Mandelbrot and Julia Sets Bulusu Rama #, Jibitesh Mishra * # Department of Computer Science and Engineering, MLR Institute of Technology Hyderabad, India 1 rama_bulusu@yahoo.com

More information

<The von Koch Snowflake Investigation> properties of fractals is self-similarity. It means that we can magnify them many times and after every

<The von Koch Snowflake Investigation> properties of fractals is self-similarity. It means that we can magnify them many times and after every Jiwon MYP 5 Math Ewa Puzanowska 18th of Oct 2012 About Fractal... In geometry, a fractal is a shape made up of parts that are the same shape as itself and are of

More information

Section 9.5. Tessellations. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

Section 9.5. Tessellations. Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 9.5 Tessellations What You Will Learn Tessellations 9.5-2 Tessellations A tessellation (or tiling) is a pattern consisting of the repeated use of the same geometric figures to entirely cover a

More information

Clouds, biological growth, and coastlines are

Clouds, biological growth, and coastlines are L A B 11 KOCH SNOWFLAKE Fractals Clouds, biological growth, and coastlines are examples of real-life phenomena that seem too complex to be described using typical mathematical functions or relationships.

More information

CSE 167: Lecture #15: Procedural Modeling. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

CSE 167: Lecture #15: Procedural Modeling. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012 CSE 167: Introduction to Computer Graphics Lecture #15: Procedural Modeling Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012 Announcements Monday, Nov 26: Midterm review in

More information

Fun with Fractals and Functions. CHAMP at University of Houston March 2, 2015 Houston, Texas

Fun with Fractals and Functions. CHAMP at University of Houston March 2, 2015 Houston, Texas Fun with Fractals and Functions CHAMP at University of Houston March 2, 2015 Houston, Texas Alice Fisher afisher@rice.edu Director of Technology Applications & Integration at Rice University School Mathematics

More information

An Introduction to Fractals

An Introduction to Fractals An Introduction to Fractals Sarah Hardy December 10, 2018 Abstract Fractals can be defined as an infinitely complex pattern that is self-similar, that is contains replicas of itself of varying sizes, across

More information

L-Systems and Affine Transformations

L-Systems and Affine Transformations L-Systems and Affine Transformations Moreno Marzolla Dip. di Informatica Scienza e Ingegneria (DISI) Università di Bologna http://www.moreno.marzolla.name/ Copyright 2014, Moreno Marzolla, Università di

More information

Koch Snowflake Go Figure The Koch Snowflake is a fractal based on a very simple rule.

Koch Snowflake Go Figure  The Koch Snowflake is a fractal based on a very simple rule. Koch Snowflake The Koch Snowflake is a fractal based on a very simple rule. The Rule: Whenever you see a straight line, like the one on the left, divide it in thirds and build an equilateral triangle (one

More information

Fun with Fractals Saturday Morning Math Group

Fun with Fractals Saturday Morning Math Group Fun with Fractals Saturday Morning Math Group Alistair Windsor Fractals Fractals are amazingly complicated patterns often produced by very simple processes. We will look at two different types of fractals

More information

Outline. Solid models and fractals. Constructive solid geometry. Constructive solid geometry COM3404. Richard Everson

Outline. Solid models and fractals. Constructive solid geometry. Constructive solid geometry COM3404. Richard Everson Outline Solid models and fractals COM School of Engineering, Computer Science and Mathematics University of Exeter Constructive solid geometry Fractals Dimension s Landscape generation L-systems R.M.Everson@exeter.ac.uk

More information

Exploring the Effect of Direction on Vector-Based Fractals

Exploring the Effect of Direction on Vector-Based Fractals BRIDGES Mathematical Connections in Art, Music, and Science Exploring the Effect of Direction on Vector-Based Fractals Magdy Ibrahim and Robert J. Krawczyk College of Architecture Dlinois Institute of

More information

CSE 167: Introduction to Computer Graphics Lecture #16: Procedural Modeling

CSE 167: Introduction to Computer Graphics Lecture #16: Procedural Modeling CSE 167: Introduction to Computer Graphics Lecture #16: Procedural Modeling Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013 Announcements Reduced office hours today and tomorrow

More information

Solid models and fractals

Solid models and fractals Solid models and fractals COM3404 Richard Everson School of Engineering, Computer Science and Mathematics University of Exeter R.M.Everson@exeter.ac.uk http://www.secamlocal.ex.ac.uk/studyres/com304 Richard

More information

Fractals. Materials. Pencil Paper Grid made of triangles

Fractals. Materials. Pencil Paper Grid made of triangles Fractals Overview: Fractals are new on the mathematics scene, however they are in your life every day. Cell phones use fractal antennas, doctors study fractal-based blood flow diagrams to search for cancerous

More information

FRACTAL: A SET WHICH IS LARGER THAN THE UNIVERSE

FRACTAL: A SET WHICH IS LARGER THAN THE UNIVERSE ISSN 2320-9143 40 International Journal of Advance Research, IJOAR.org Volume 1, Issue 3, March 2013, Online: ISSN 2320-9143 FRACTAL: A SET WHICH IS LARGER THAN THE UNIVERSE Soumya Prakash Sahu, Indian

More information

Computer Science 173 Fall, Project 3: Lindenmayer Systems Due in class on Monday, September 28

Computer Science 173 Fall, Project 3: Lindenmayer Systems Due in class on Monday, September 28 Computer Science 173 all, 2015 Project 3: Lindenmayer Systems Due in class on Monday, September 28 Work on this project with a partner. Create a new directory for this project, copy the Makefile from the

More information

Fractals Week 10, Lecture 19

Fractals Week 10, Lecture 19 CS 430/536 Computer Graphics I Fractals Week 0, Lecture 9 David Breen, William Regli and Maim Peysakhov Geometric and Intelligent Computing Laboratory Department of Computer Science Dreel University http://gicl.cs.dreel.edu

More information

CS39N The Beauty and Joy of Computing

CS39N The Beauty and Joy of Computing CS39N The Beauty and Joy of Computing UC Berkeley Computer Science Lecturer SOE Dan Garcia Lecture #11 Recursion III 2009-11-09 It has been a challenge to power electronic components implanted within a

More information

Fractals. Fractals. Beautiful designs of infinite structure and complexity Qualities of Fractals:

Fractals. Fractals. Beautiful designs of infinite structure and complexity Qualities of Fractals: Fractals Fractals Beautiful designs of infinite structure and complexity Qualities of Fractals: Fractional dimension Self similarity Complex structure at all scales Chaotic dynamical behavior Simple generation

More information

Images of some fractals

Images of some fractals Fun with Fractals Dr. Bori Mazzag Redwood Empire Mathematics Tournament March 25, 2006 Images of some fractals What are fractals, anyway? Important aspects of fractals: Self-similarity What are fractals,

More information

CSE 167: Lecture #17: Procedural Modeling. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

CSE 167: Lecture #17: Procedural Modeling. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011 CSE 167: Introduction to Computer Graphics Lecture #17: Procedural Modeling Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011 Announcements Important dates: Final project outline

More information

Session 27: Fractals - Handout

Session 27: Fractals - Handout Session 27: Fractals - Handout Clouds are not spheres, mountains are not cones, coastlines are not circles, and bark is not smooth, nor does lightning travel in a straight line. Benoit Mandelbrot (1924-2010)

More information

Mathematics Numbers: Percentages. Science and Mathematics Education Research Group

Mathematics Numbers: Percentages. Science and Mathematics Education Research Group F FA ACULTY C U L T Y OF O F EDUCATION E D U C A T I O N Department of Curriculum and Pedagogy Mathematics Numbers: Percentages Science and Mathematics Education Research Group Supported by UBC Teaching

More information

Fixed Point Iterative Techniques An Application to Fractals

Fixed Point Iterative Techniques An Application to Fractals Fixed Point Iterative Techniques An Application to Fractals Narayan Partap 1 and Prof. Renu Chugh 2 1 Amity Institute of Applied Sciences, Amity University, Noida, India 2 Department of Mathematics, M.D.

More information

Lecture 3: Some Strange Properties of Fractal Curves

Lecture 3: Some Strange Properties of Fractal Curves Lecture 3: Some Strange Properties of Fractal Curves I have been a stranger in a strange land. Exodus 2:22 1. Fractal Strangeness Fractals have a look and feel that is very different from ordinary curves.

More information

FRACTALS The term fractal was coined by mathematician Benoit Mandelbrot A fractal object, unlike a circle or any regular object, has complexity at all scales Natural Fractal Objects Natural fractals

More information

3/12/2018. Structures. Programming in C++ Sequential Branching Repeating. Loops (Repetition)

3/12/2018. Structures. Programming in C++ Sequential Branching Repeating. Loops (Repetition) Structures Programming in C++ Sequential Branching Repeating Loops (Repetition) 2 1 Loops Repetition is referred to the ability of repeating a statement or a set of statements as many times this is necessary.

More information

Lectures on Challenging Mathematics. Integrated Mathematics 3. Idea Math. Algebra (part 2) Summer Internal Use

Lectures on Challenging Mathematics. Integrated Mathematics 3. Idea Math. Algebra (part 2) Summer Internal Use Lectures on Challenging Mathematics c Copyright 2008 2018 Integrated Mathematics 3 Algebra (part 2) Summer 2018 Zuming Feng Phillips Exeter Academy and IDEA Math zfeng@exeteredu Copyright c 2008 2018 IDEA

More information

Construction of 3D Mandelbrot Set and Julia Set

Construction of 3D Mandelbrot Set and Julia Set Construction of 3D Mandelbrot Set and Julia Set Ankit Garg Assistant Professor Amity University, Haryana Manesar, Gurgaon Akshat Agrawal Assistant Professor Amity University, Haryana Manesar, Gurgaon Ashish

More information

7. Stochastic Fractals

7. Stochastic Fractals Stochastic Fractals Christoph Traxler Fractals-Stochastic 1 Stochastic Fractals Simulation of Brownian motion Modelling of natural phenomena, like terrains, clouds, waves,... Modelling of microstructures,

More information

n! = 1 * 2 * 3 * 4 * * (n-1) * n

n! = 1 * 2 * 3 * 4 * * (n-1) * n The Beauty and Joy of Computing 1 Lab Exercise 9: Problem self-similarity and recursion Objectives By completing this lab exercise, you should learn to Recognize simple self-similar problems which are

More information

Midterm Project: L-systems in Practice and Theory

Midterm Project: L-systems in Practice and Theory Midterm Project: L-systems in Practice and Theory Joey Gonzales-Dones March 28, 2016 1 Introduction Lindenmayer systems, or L-systems, are systems for algorithmically rewriting a string of characters.

More information

Fractals, Fibonacci numbers in Nature 17 mai 2015

Fractals, Fibonacci numbers in Nature 17 mai 2015 1 Sommaire 1 Sommaire... 1 2 Presentation... 1 3 Fractals in nature... 3 3.1 The Von Koch curve... 3 3.2 The Sierpinski triangle... 3 3.3 The Sierpinski carpet... 3 3.4 Hilbert s fractal... 4 3.5 Cantor

More information

Fractals and the Chaos Game

Fractals and the Chaos Game Math: Outside the box! Fractals and the Chaos Game Monday February 23, 2009 3:30-4:20 IRMACS theatre, ASB 10900 Randall Pyke Senior Lecturer Department of Mathematics, SFU A Game. Is this a random walk?

More information

Parametric L-Systems and borderline fractals

Parametric L-Systems and borderline fractals 1 Parametric L-Systems and borderline fractals A preprint version of a Mathematical graphics column from Mathematica in Education and Research. Mark McClure Department of Mathematics University of North

More information

Lecture 6: Fractals from Iterated Function Systems. He draweth also the mighty with his power: Job 24:22

Lecture 6: Fractals from Iterated Function Systems. He draweth also the mighty with his power: Job 24:22 Lecture 6: Fractals from Iterated Function Systems He draweth also the mighty with his power: Job 24:22 1. Fractals by Iteration The Sierpinski gasket and the Koch snowflake can both be generated in LOGO

More information

Unit 5: Recursive Thinking

Unit 5: Recursive Thinking AP Computer Science Mr. Haytock Unit 5: Recursive Thinking Topics: I. Recursion II. Computational limits III. Recursion in graphics Materials: I. Hein ch. 3.2 II. Rawlins: Towers of Hanoi III. Lewis &

More information

Symmetric Fractals. Seeking Sangaku Ramanujan, Hardy, and Ono

Symmetric Fractals. Seeking Sangaku Ramanujan, Hardy, and Ono Symmetric Fractals Seeking Sangaku Ramanujan, Hardy, and Ono Published by the Mathematical Association of America : : November 2016 Figure 1. Clockwise from far left, the Sierpinski triangle, the Koch

More information

Journal of Applied Mathematics and Computation (JAMC), 2018, 2(1), 13-20

Journal of Applied Mathematics and Computation (JAMC), 2018, 2(1), 13-20 Journal of Applied Mathematics and Computation (JAMC), 2018, 2(1), 13-20 http://www.hillpublisher.org/journal/jamc ISSN Online:2576-0645 ISSN Print:2576-0653 Generation of Fractal Vessel Structure Functions

More information

ITERATIVE OPERATIONS IN CONSTRUCTION CIRCULAR AND SQUARE FRACTAL CARPETS

ITERATIVE OPERATIONS IN CONSTRUCTION CIRCULAR AND SQUARE FRACTAL CARPETS ITERATIVE OPERATIONS IN CONSTRUCTION CIRCULAR AND SQUARE FRACTAL CARPETS Dr. Yusra Faisal Al-Irhaim, Marah Mohamed Taha University of Mosul, Iraq ABSTRACT: Carpet designing is not only a fascinating activity

More information

Gentle Introduction to Fractals

Gentle Introduction to Fractals Gentle Introduction to Fractals www.nclab.com Contents 1 Fractals Basics 1 1.1 Concept................................................ 1 1.2 History................................................ 2 1.3

More information

Turtle Graphics and L-systems Informatics 1 Functional Programming: Tutorial 7

Turtle Graphics and L-systems Informatics 1 Functional Programming: Tutorial 7 Turtle Graphics and L-systems Informatics 1 Functional Programming: Tutorial 7 Heijltjes, Wadler Due: The tutorial of week 9 (20/21 Nov.) Reading assignment: Chapters 15 17 (pp. 280 382) Please attempt

More information

Hei nz-ottopeitgen. Hartmut Jürgens Dietmar Sau pe. Chaos and Fractals. New Frontiers of Science

Hei nz-ottopeitgen. Hartmut Jürgens Dietmar Sau pe. Chaos and Fractals. New Frontiers of Science Hei nz-ottopeitgen Hartmut Jürgens Dietmar Sau pe Chaos and Fractals New Frontiers of Science Preface Authors VU X I Foreword 1 Mitchell J. Feigenbaum Introduction: Causality Principle, Deterministic

More information

Procedures: Algorithms and Abstraction

Procedures: Algorithms and Abstraction Procedures: Algorithms and Abstraction 5 5.1 Objectives After completing this module, a student should be able to: Read and understand simple NetLogo models. Make changes to NetLogo procedures and predict

More information

Programming Training kiddo. Main Points: - Python Statements - Problems with selections.

Programming Training kiddo. Main Points: - Python Statements - Problems with selections. Programming Training kiddo Main Points: - Python Statements - Problems with selections. Python Blocks Several lines which are identically indented form a block. A block always starts after : A block is

More information

Study of Fractal Antennas and Characterization

Study of Fractal Antennas and Characterization Study of Fractal Antennas and Characterization Department of Physics M.M.P.G. College, Fatehabad (Haryana) Abstract-Fractal geometry involves a repetitive generating methodology that results in contours

More information

Chapter 12: Fractal Geometry The Koch Snowflake and Self-Similarity

Chapter 12: Fractal Geometry The Koch Snowflake and Self-Similarity Chapter 12: Fractal Geometry 12.1 The Koch Snowflake and Self-Similarity Geometric Fractal Our first example of a geometric fractal is a shape known as the Koch snowflake, named after the Swedish mathematician

More information

Grade 6 Math Circles. Spatial and Visual Thinking

Grade 6 Math Circles. Spatial and Visual Thinking Faculty of Mathematics Waterloo, Ontario N2L 3G1 Introduction Grade 6 Math Circles October 31/November 1, 2017 Spatial and Visual Thinking Centre for Education in Mathematics and Computing One very important

More information

Grade 6 Math Circles. Shapeshifting

Grade 6 Math Circles. Shapeshifting Faculty of Mathematics Waterloo, Ontario N2L 3G1 Plotting Grade 6 Math Circles October 24/25, 2017 Shapeshifting Before we begin today, we are going to quickly go over how to plot points. Centre for Education

More information

AN ALGORITHM TO GENERATE MODELS OF SNOWFLAKES

AN ALGORITHM TO GENERATE MODELS OF SNOWFLAKES AN ALGORITHM TO GENERATE MODELS OF SNOWFLAKES PHILIP CHUNG, COLIN BLOOMFIELD Abstract. In this paper we will describe our method of creating a computer algorithm to generate two-dimensional representations

More information

Computer Graphics. Prof. Feng Liu. Fall /21/2016

Computer Graphics. Prof. Feng Liu. Fall /21/2016 Computer Graphics Prof. Feng Liu Fall 2016 http://www.cs.pdx.edu/~fliu/courses/cs447/ 11/21/2016 Last time Polygon Mesh and Modeling 2 Today Modeling Technologies Final Exam: 12:30-2:00, December 7, 2016

More information

Fractal Image Compression

Fractal Image Compression Ball State University January 24, 2018 We discuss the works of Hutchinson, Vrscay, Kominek, Barnsley, Jacquin. Mandelbrot s Thesis 1977 Traditional geometry with its straight lines and smooth surfaces

More information

Fractal Analysis. By: Mahnaz EtehadTavakol

Fractal Analysis. By: Mahnaz EtehadTavakol Fractal Analysis By: Mahnaz EtehadTavakol A fractal a non-regular geometric shape can be split into parts which posses self similarity Naturally Occurring Fractal A special type of broccoli, this cruciferous

More information

Home Lab 7 Refraction, Ray Tracing, and Snell s Law

Home Lab 7 Refraction, Ray Tracing, and Snell s Law Home Lab Week 7 Refraction, Ray Tracing, and Snell s Law Home Lab 7 Refraction, Ray Tracing, and Snell s Law Activity 7-1: Snell s Law Objective: Verify Snell s law Materials Included: Laser pointer Cylindrical

More information

Fractals: Self-Similarity and Fractal Dimension Math 198, Spring 2013

Fractals: Self-Similarity and Fractal Dimension Math 198, Spring 2013 Fractals: Self-Similarity and Fractal Dimension Math 198, Spring 2013 Background Fractal geometry is one of the most important developments in mathematics in the second half of the 20th century. Fractals

More information

Discovering. Algebra. An Investigative Approach. Condensed Lessons for Make-up Work

Discovering. Algebra. An Investigative Approach. Condensed Lessons for Make-up Work Discovering Algebra An Investigative Approach Condensed Lessons for Make-up Work CONDENSED L E S S O N 0. The Same yet Smaller Previous In this lesson you will apply a recursive rule to create a fractal

More information

2.) From the set {A, B, C, D, E, F, G, H}, produce all of the four character combinations. Be sure that they are in lexicographic order.

2.) From the set {A, B, C, D, E, F, G, H}, produce all of the four character combinations. Be sure that they are in lexicographic order. Discrete Mathematics 2 - Test File - Spring 2013 Exam #1 1.) RSA - Suppose we choose p = 5 and q = 11. You're going to be sending the coded message M = 23. a.) Choose a value for e, satisfying the requirements

More information

Lecture 6: Fractals from Iterated Function Systems. He draweth also the mighty with his power: Job 24:22

Lecture 6: Fractals from Iterated Function Systems. He draweth also the mighty with his power: Job 24:22 Lecture 6: Fractals from Iterated Function Systems He draweth also the mighty with his power: Job 24:22 1. Generating Fractals by Iterating Transformations The Sierpinski gasket and the Koch snowflake

More information

: Intro Programming for Scientists and Engineers Assignment 1: Turtle Graphics

: Intro Programming for Scientists and Engineers Assignment 1: Turtle Graphics Assignment 1: Turtle Graphics Page 1 600.112: Intro Programming for Scientists and Engineers Assignment 1: Turtle Graphics Peter H. Fröhlich phf@cs.jhu.edu Joanne Selinski joanne@cs.jhu.edu Due Date: Wednesdays

More information

A Review of Fractals Properties: Mathematical Approach

A Review of Fractals Properties: Mathematical Approach Science Journal of Applied Mathematics and Statistics 2017; 5(3): 98-105 http://www.sciencepublishinggroup.com/j/sjams doi: 10.11648/j.sjams.20170503.11 ISSN: 2376-9491 (Print); ISSN: 2376-9513 (Online)

More information

Fractals and Multi-Layer Coloring Algorithms

Fractals and Multi-Layer Coloring Algorithms Fractals and Multi-Layer Coloring Algorithms Javier Barrallo and Santiago Sanchez Mathematics, Physics and Computer Science The University of the Basque Country School of Architecture. Plaza Onati, 2.

More information

a function that calls itself It doesn t do anything! Defining a recursive function 1) divide and conquer 2) base case 6/21/2018 chapter 15

a function that calls itself It doesn t do anything! Defining a recursive function 1) divide and conquer 2) base case 6/21/2018 chapter 15 a function that calls itself chapter 15 Recursion: Another Control Mechanism The very basic meaning of a recursive function is a function that calls itself Leads to some funny definitions: Def: recursion.

More information

Logic, Algorithms and Data Structures Recursion and Stacks. By: Jonas Öberg

Logic, Algorithms and Data Structures Recursion and Stacks. By: Jonas Öberg Logic, Algorithms and Data Structures Recursion and Stacks M1 By: Jonas Öberg What is recursion? Quick answer: A recursive function is a function which uses itself Example We define by the use of f( n

More information

A New Vision of Fractal Geometry with Triangulation Algorithm

A New Vision of Fractal Geometry with Triangulation Algorithm A New Vision of Fractal Geometry with Triangulation Algorithm Yasser M. Abd El-Latif, Fatma S.Abousaleh, and Daoud S. S. Abstract L-system is a tool commonly used for modeling and simulating the growth

More information

The Beauty and Joy of Computing 1 Lab Exercise 9: Problem self-similarity and recursion - Python version

The Beauty and Joy of Computing 1 Lab Exercise 9: Problem self-similarity and recursion - Python version The Beauty and Joy of Computing 1 Lab Exercise 9: Problem self-similarity and recursion - Python version Objectives By completing this lab exercise, you should learn to Recognize simple self-similar problems

More information

MAADHYAM. Nurturing Gifted Minds. Printed Under Gifted Education Abhiyaan An Initiative By The Office Of Principal Scientific Advisor To The

MAADHYAM. Nurturing Gifted Minds. Printed Under Gifted Education Abhiyaan An Initiative By The Office Of Principal Scientific Advisor To The MAADHYAM Nurturing Gifted Minds Printed Under Gifted Education Abhiyaan An Initiative By The Office Of Principal Scientific Advisor To The 1 Government Of India INTRODUCTION TO FRACTALS When you see a

More information

Examples of Chaotic Attractors and Their Fractal Dimension

Examples of Chaotic Attractors and Their Fractal Dimension Examples of Chaotic Attractors and Their Fractal Dimension Ulrich A. Hoensch Rocky Mountain College Billings, MT 59102 www.rocky.edu/ hoenschu February 2005 Abstract We present the Sierpinski Triangle

More information

ARi. Amalgamated Research Inc. What are fractals?

ARi. Amalgamated Research Inc. What are fractals? ARi www.arifractal.com What are fractals? Amalgamated Research Inc. A key characteristic of fractals is self-similarity. This means that similar structure is observed at many scales. Figure 1 illustrates

More information

9. Three Dimensional Object Representations

9. Three Dimensional Object Representations 9. Three Dimensional Object Representations Methods: Polygon and Quadric surfaces: For simple Euclidean objects Spline surfaces and construction: For curved surfaces Procedural methods: Eg. Fractals, Particle

More information

Student Outcomes. Classwork. Opening Exercises 1 2 (5 minutes)

Student Outcomes. Classwork. Opening Exercises 1 2 (5 minutes) Student Outcomes Students use the Pythagorean Theorem to determine an unknown dimension of a cone or a sphere. Students know that a pyramid is a special type of cone with triangular faces and a rectangular

More information

biologically-inspired computing lecture 7 Informatics luis rocha 2015 biologically Inspired computing INDIANA UNIVERSITY

biologically-inspired computing lecture 7 Informatics luis rocha 2015 biologically Inspired computing INDIANA UNIVERSITY lecture 7 -inspired Sections I485/H400 course outlook Assignments: 35% Students will complete 4/5 assignments based on algorithms presented in class Lab meets in I1 (West) 109 on Lab Wednesdays Lab 0 :

More information

6. The Mandelbrot Set

6. The Mandelbrot Set 1 The Mandelbrot Set King of mathematical monsters Im 0-1 -2-1 0 Re Christoph Traxler Fractals-Mandelbrot 1 Christoph Traxler Fractals-Mandelbrot 2 6.1 Christoph Traxler Fractals-Mandelbrot 3 Christoph

More information

Closed shapes with straight sides

Closed shapes with straight sides 41 Unit 6 and 7 Properties of 2D shapes Activity 1 Closed shapes with straight sides (polygons). Let s revise the 2D shapes you learnt about in Grade 5 Closed shapes with straight sides triangle quadrilateral

More information

Optics Worksheet. Chapter 12: Optics Worksheet 1

Optics Worksheet. Chapter 12: Optics Worksheet 1 Optics Worksheet Triangle Diagram: This represents a triangular prism. We want to follow the path of a light ray striking one of the surfaces as it passes through the prism and exits one of the other surfaces.

More information

Demonstrating Lorenz Wealth Distribution and Increasing Gini Coefficient with the Iterating (Koch Snowflake) Fractal Attractor.

Demonstrating Lorenz Wealth Distribution and Increasing Gini Coefficient with the Iterating (Koch Snowflake) Fractal Attractor. Demonstrating Lorenz Wealth Distribution and Increasing Gini Coefficient with the Iterating (Koch Snowflake) Fractal Attractor. First published: May 17th, 2015. Updated: October, 13th, 2015. Blair D. Macdonald

More information

Lecture Tessellations, fractals, projection. Amit Zoran. Advanced Topics in Digital Design

Lecture Tessellations, fractals, projection. Amit Zoran. Advanced Topics in Digital Design Lecture Tessellations, fractals, projection Amit Zoran Advanced Topics in Digital Design 67682 The Rachel and Selim Benin School of Computer Science and Engineering The Hebrew University of Jerusalem,

More information

Grade 6 Math Circles October 16 & Non-Euclidean Geometry and the Globe

Grade 6 Math Circles October 16 & Non-Euclidean Geometry and the Globe Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grade 6 Math Circles October 16 & 17 2018 Non-Euclidean Geometry and the Globe (Euclidean) Geometry Review:

More information

Developmental Systems

Developmental Systems Developmental Systems 1 Biological systems Early development of the Drosophila fly http://flybase.bio.indiana.edu dorsal view lateral view 2 Biological systems Early development of Drosophila [Slack 2006]

More information

Fractals: a way to represent natural objects

Fractals: a way to represent natural objects Fractals: a way to represent natural objects In spatial information systems there are two kinds of entity to model: natural earth features like terrain and coastlines; human-made objects like buildings

More information

CGT 581 G Procedural Methods Fractals

CGT 581 G Procedural Methods Fractals CGT 581 G Procedural Methods Fractals Bedrich Benes, Ph.D. Purdue University Department of Computer Graphics Technology Procedural Techniques Model is generated by a piece of code. Model is not represented

More information

Chapel Hill Math Circle: Symmetry and Fractals

Chapel Hill Math Circle: Symmetry and Fractals Chapel Hill Math Circle: Symmetry and Fractals 10/7/17 1 Introduction This worksheet will explore symmetry. To mathematicians, a symmetry of an object is, roughly speaking, a transformation that does not

More information

Exploring Fractals through Geometry and Algebra. Kelly Deckelman Ben Eggleston Laura Mckenzie Patricia Parker-Davis Deanna Voss

Exploring Fractals through Geometry and Algebra. Kelly Deckelman Ben Eggleston Laura Mckenzie Patricia Parker-Davis Deanna Voss Exploring Fractals through Geometry and Algebra Kelly Deckelman Ben Eggleston Laura Mckenzie Patricia Parker-Davis Deanna Voss Learning Objective and skills practiced Students will: Learn the three criteria

More information

4.3 Discovering Fractal Geometry in CAAD

4.3 Discovering Fractal Geometry in CAAD 4.3 Discovering Fractal Geometry in CAAD Francisco Garcia, Angel Fernandez*, Javier Barrallo* Facultad de Informatica. Universidad de Deusto Bilbao. SPAIN E.T.S. de Arquitectura. Universidad del Pais Vasco.

More information

Figure 1 - Refraction

Figure 1 - Refraction Geometrical optics Introduction Refraction When light crosses the interface between two media having different refractive indices (e.g. between water and air) a light ray will appear to change its direction

More information

Constructive Solid Geometry and Procedural Modeling. Stelian Coros

Constructive Solid Geometry and Procedural Modeling. Stelian Coros Constructive Solid Geometry and Procedural Modeling Stelian Coros Somewhat unrelated Schedule for presentations February 3 5 10 12 17 19 24 26 March 3 5 10 12 17 19 24 26 30 April 2 7 9 14 16 21 23 28

More information