Musings of a Recovering Lutheran: Stumbling through mathematics: the Chaos Game revisted
O LORD, God of my salvation,
         I have cried out day and night before You.
Let my prayer come before You;
         Incline Your ear to my cry. 

Psalm 88:1-2 (NKJV)

Thursday, March 17, 2016

Stumbling through mathematics: the Chaos Game revisted

Some time ago I wrote a few Matlab programs to investigate the Chaos Game.

For this set of plots I used Scilab, a free math program that immitates Matlab. Below is a plot of the SierpiƄski Sieve with verices (0,0), (1,0), and (0.5, sqrt(3)/2), and r = 1/2 (2500 points):

The following is a plot of a square with vertices (1,0), (0,1), (-1,0), and (0,-1), and r = 2/5 (2500 points):

No comments: