{"id":61,"date":"2015-03-20T22:43:42","date_gmt":"2015-03-21T02:43:42","guid":{"rendered":"http:\/\/aelservices.ca\/?p=61"},"modified":"2015-03-20T22:45:38","modified_gmt":"2015-03-21T02:45:38","slug":"random-values-to-strange-attractors","status":"publish","type":"post","link":"https:\/\/aelservices.ca\/?p=61","title":{"rendered":"Random Values to Strange Attractors"},"content":{"rendered":"<p>Let&#8217;s say I have a function that takes in a real number, adds the negative of one half that real number to itself and returns this new number. \u00a0Now, take that new number and feed it in to the function. \u00a0Repeat this as many times as you please and you can see that the output is tending towards zero. \u00a0Here, zero is an attractor, and zero&#8217;s basin of attraction is the entire real number line, not including zero itself (for zero the value is fixed and that&#8217;s just boring). \u00a0An attractor doesn&#8217;t have to be a single point, it can be a curve, or a set of a few discrete points, or whatever. \u00a0A strange attractor is an attractor that is a fractal.<\/p>\n<p>Well, that is at least the cartoon version, as we say.<\/p>\n<p>So, on to that neat result. \u00a0Let&#8217;s say that on the real plane you pick 3 distinct points. \u00a0Here we will pick them such that they mark the corners of an equilateral triangle, but this is not necessary. \u00a0Now, place a point at any finite value at all on the real plane. \u00a0It doesn&#8217;t matter where, inside the three points, outside the three points, directly between two points, it doesn&#8217;t matter. \u00a0Now, choose any one of those three points at random (we will call those special points corners). \u00a0Draw a new point one half of the distance between that first random point and the chosen corner. \u00a0Now, pick a corner at random, draw a new point half way between that last point and the new chosen corner. \u00a0Repeat this as many times as you please. \u00a0We are picking corners at random but a very regular shape starts to emerge.<\/p>\n<p><a href=\"http:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/big_anim.gif\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-65 size-full alignleft\" src=\"http:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/big_anim.gif\" alt=\"\" width=\"320\" height=\"240\" \/><\/a>The shape is this function&#8217;s strange attractor, which just happens to be <a title=\"Sierpinski's Triangle\" href=\"https:\/\/en.wikipedia.org\/wiki\/Sierpinski_triangle\" target=\"_blank\">Sierpinski&#8217;s Triangle<\/a>. \u00a0Sierpinski&#8217;s Triangle is classically made by taking an equilateral triangle, finding the midpoint of each side and removing the triangle described from those points from the triangle&#8217;s centre. \u00a0Then do the same with all three new triangles you have. \u00a0Then with all nine new triangles etc, an infinite number of times. \u00a0 Yet we can approach that same strictly defined shape using a process that is in fact dependent on randomness.<\/p>\n<p><!--more--><br \/>\nBelow are two images of this from some software I whipped up (still in progress as it&#8217;s a bit clunky). \u00a0The larger of the two is what this process looks like after 40,000 iterations (sort of, I&#8217;m rounding off to the nearest pixel right now with it). \u00a0The smaller one is a blow up of one region of the image.<\/p>\n<p><a href=\"http:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/detail.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-62 alignleft\" src=\"http:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/detail-300x147.png\" alt=\"detail\" width=\"300\" height=\"147\" srcset=\"https:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/detail-300x147.png 300w, https:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/detail-150x73.png 150w, https:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/detail.png 650w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"http:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/fullview.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-63 alignright\" src=\"http:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/fullview-300x223.png\" alt=\"fullview\" width=\"300\" height=\"223\" srcset=\"https:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/fullview-300x223.png 300w, https:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/fullview-150x111.png 150w, https:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/fullview-1024x761.png 1024w, https:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/fullview.png 1074w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>You can see the initial point which was clearly outside the attractor altogether. \u00a0It starts nearish one of the corners, and it seems the same corner was picked a few times in a row so there is another point halfway between it and the same corner, and another point halfway between that one and the same corner again. \u00a0A different corner was chosen after that and the points start to be drawn exclusively inside the outer boundaries of the triangle, and once in, it never escapes again. \u00a0The new points just wanders around inside drawing out this fractal.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-64 alignleft\" src=\"http:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/CantorCube-300x300.png\" alt=\"CantorCube\" width=\"300\" height=\"300\" srcset=\"https:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/CantorCube-300x300.png 300w, https:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/CantorCube-150x150.png 150w, https:\/\/aelservices.ca\/wp-content\/uploads\/2015\/03\/CantorCube.png 728w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>If you pick four corners in a square and preform similar transforms you can get a different fractal, in this case a 2 dimensional version of the <a title=\"Cantor Set\" href=\"https:\/\/en.wikipedia.org\/wiki\/Cantor_set\" target=\"_blank\">Cantor Set<\/a>. \u00a0I hesitate to call the result Cantor Dust or Sierpinski&#8217;s Carpet as the method to produce these points is so different, but like the above, either do describe the shape of the strange attractor.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s say I have a function that takes in a real number, adds the negative of one half that real number to itself and returns this new number. \u00a0Now, take that new number and feed it in to the function. \u00a0Repeat this as many times as you please and you can see that the output [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[3,7,4],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-fractals","tag-fractals","tag-mathematics","tag-python"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5UQlH-Z","_links":{"self":[{"href":"https:\/\/aelservices.ca\/index.php?rest_route=\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aelservices.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aelservices.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aelservices.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aelservices.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=61"}],"version-history":[{"count":2,"href":"https:\/\/aelservices.ca\/index.php?rest_route=\/wp\/v2\/posts\/61\/revisions"}],"predecessor-version":[{"id":67,"href":"https:\/\/aelservices.ca\/index.php?rest_route=\/wp\/v2\/posts\/61\/revisions\/67"}],"wp:attachment":[{"href":"https:\/\/aelservices.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aelservices.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aelservices.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}