{"id":1290,"date":"2009-05-18T11:50:16","date_gmt":"2009-05-18T10:50:16","guid":{"rendered":"http:\/\/www.walkingrandomly.com\/?p=1290"},"modified":"2010-12-21T11:57:51","modified_gmt":"2010-12-21T10:57:51","slug":"plotting-fractals-with-wolfram-alpha","status":"publish","type":"post","link":"https:\/\/walkingrandomly.com\/?p=1290","title":{"rendered":"Plotting Fractals with Wolfram Alpha"},"content":{"rendered":"<p>I saw a tweet from someone this morning which mentioned that you could plot the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Julia_set\">Julia Set<\/a> using Wolfram Alpha.\u00a0 I had to try this for myself as soon as I could and, sure enough, you can plot the Julia set for any complex number Z: <a href=\"http:\/\/www32.wolframalpha.com\/input\/?i=julia+set+-0.765%2B0.003i\">-0.765+0.003 I<\/a> for example.<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter\" src=\"\/images\/walpha\/big\/walpha_julia.png\" alt=\"Julia Set from Wolfram Alpha\" \/><\/p>\n<p>Very nice but what else can it do.\u00a0 If I Walpha\u00a0fractals then I get the following output so I&#8217;d expect Wolfram Alpha to compute at least the <a href=\"http:\/\/www.wolframalpha.com\/input\/?i=koch+snowflake\">Koch snow flake<\/a>, the <a href=\"http:\/\/www.wolframalpha.com\/input\/?i=sierpinsk+gasket\">Sierpinski gasket<\/a>, the <a href=\"http:\/\/www.wolframalpha.com\/input\/?i=Haferman+carpet\">Haferman carpet<\/a> and <a href=\"http:\/\/www19.wolframalpha.com\/input\/?i=curlicue+fractal\">the curlicue fractal<\/a> and, sure enough, it does (click on the links to see for yourself)<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter\" src=\"\/images\/walpha\/big\/walpha_fractals.png\" alt=\"Fractals list from Wolfram Alpha (Mid May 2009)\" \/><\/p>\n<p>Here is a screenshot for the Koch Fractal.<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter\" src=\"\/images\/walpha\/big\/walpha_koch.png\" alt=\"Koch Snowflake from Wolfram Alpha\" \/><\/p>\n<p>These aren&#8217;t the only fractals it knows about though.  If you walpha Pentaflake (a <a href=\"https:\/\/www.walkingrandomly.com\/?p=626\">fractal close to my heart<\/a>) then you get the following.<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter\" src=\"\/images\/walpha\/big\/walpha_pentaflake.png\" alt=\"A Pentaflake from Wolfram Alpha\" \/><\/p>\n<p>Wolfram Alpha can also calculate the <a href=\"http:\/\/mathworld.wolfram.com\/H-Fractal.html\">H-Fractal<\/a>.<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter\" src=\"\/images\/walpha\/big\/walpha_hfractal.png\" alt=\"The H-Fractal from Wolfram Alpha\" \/><\/p>\n<p><a href=\"http:\/\/mathworld.wolfram.com\/CantorDust.html\">Cantor dust<\/a> is in there too<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter\" src=\"\/images\/walpha\/big\/walpha_cantor_dust.png\" alt=\"Cantor Dust from Wolfram Alpha\" \/><\/p>\n<p style=\"text-align: left;\">as is the <a href=\"http:\/\/mathworld.wolfram.com\/BoxFractal.html\">box fractal<\/a><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter\" src=\"\/images\/walpha\/big\/walpha_box_fractal.png\" alt=\"Box Fractal from Wolfram Alpha\" \/><\/p>\n<p style=\"text-align: left;\">\n<p>It also looks like they are in the middle of implementing the <a href=\"http:\/\/mathworld.wolfram.com\/CesaroFractal.html\">Cesaro fractal<\/a>.\u00a0 If you walpha the term then it tries to generate the fractal for a phase angle of pi\/3 radians and 5 iterations.\u00a0 A few seconds later and the calculation times out.\u00a0 If you lower the number of iterations it returns a red box such as the one below.\u00a0 If my memory serves, Mathematica returns such a box if there is a problem with the graphics output.\u00a0 I hope to see this fixed soon.<\/p>\n<p><strong>Update:15th July 2009 &#8211; The Cesaro Fractal has now been fixed)<\/strong><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.wolframalpha.com\/input\/?i=Cesaro+Fractal&amp;f1=pi%2F3+rad&amp;x=0&amp;y=0&amp;f=CesaroFractal.\u03b8_pi%2F3+rad&amp;f2=3&amp;f=CesaroFractal.n_3\"><img decoding=\"async\" class=\"aligncenter\" src=\"\/images\/walpha\/big\/walpha_cesaro.png\" alt=\"An error from Wolfram Alpha while computing the Cesaro Fractal\" \/><\/a><\/p>\n<p>It also seems to know about the following fractals but doesn&#8217;t seem to calculate anything for them (yet).\u00a0 I say that it seems to know about them because it gives you an input field for &#8216;Iterations&#8217; which implies that it knows that a number of iterations makes sense in this context.\u00a0 It&#8217;ll be cool to see all of these implemented in time.<\/p>\n<p>(Note: None of these are implemented yet and may never be &#8211; I&#8217;ll update if that changes)<\/p>\n<ul>\n<li><a href=\"http:\/\/www.wolframalpha.com\/input\/?i=menger+sponge\">Menger Sponge <\/a><strong>Update 21st December 2010 &#8211;<\/strong> <strong> this has now been implemented<\/strong><\/li>\n<li><a href=\"http:\/\/www.wolframalpha.com\/input\/?i=Gosper+Island\">Gosper Island <\/a><strong>Update:15th July 2009 &#8211; this has now been implemented<\/strong><\/li>\n<li><a href=\"http:\/\/www.wolframalpha.com\/input\/?i=Apollonian+gasket\">Apollonian Gasket<\/a> <strong>Update 21st December 2010 &#8211;<\/strong> <strong> this has now been implemented<\/strong><\/li>\n<li><a href=\"http:\/\/www.wolframalpha.com\/input\/?i=dragon+curve\">Dragon Curve<\/a> <strong>Update 21st December 2010 &#8211;<\/strong> <strong> this has now been implemented<\/strong><\/li>\n<li><a href=\"http:\/\/www.wolframalpha.com\/input\/?i=hilbert+curve\">Hilbert Curve<\/a> <strong>Update 21st December 2010 &#8211;<\/strong> <strong> this has now been implemented<\/strong><\/li>\n<li><a href=\"http:\/\/www.wolframalpha.com\/input\/?i=peano+curve\">Peano curve<\/a> <strong>Update 21st December 2010 &#8211;<\/strong> <strong> this has now been implemented<\/strong><\/li>\n<li><a href=\"http:\/\/www.wolframalpha.com\/input\/?i=cantor+set\">Cantor Set <\/a><strong>Update:15th July 2009 &#8211; this has now been implemented<\/strong><\/li>\n<\/ul>\n<p>Some odd omissions (at the time of writing) are the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Mandelbrot_set\">Mandelbrot set<\/a> (<strong>Update: 15th July 2009 &#8211; this has been done now)<\/strong> and the<a href=\"http:\/\/en.wikipedia.org\/wiki\/Lorenz_attractor\"> Lorenz attractor<\/a>.<\/p>\n<p>This is all seriously cool stuff for Fractal fans and shows the power of the Wolfram Alpha idea.\u00a0 Let me know if you discover any more Fractals that it knows about and I&#8217;ll add them here.<\/p>\n<p><strong>Update: <\/strong>I&#8217;ve found a few more computable fractals in Wolfram Alpha.\u00a0 Please forgive me for the lack of screenshots but this is getting to be a rather graphic-intensive post.\u00a0 The links will take you to a Wolfram Alpha query.<\/p>\n<ul>\n<li><a href=\"http:\/\/www.wolframalpha.com\/input\/?i=levy+fractal\">Levy Fractal<\/a><\/li>\n<li><a href=\"http:\/\/www.wolframalpha.com\/input\/?i=levy+tapestry\">Levy Tapestry<\/a><\/li>\n<li><a href=\"http:\/\/www.wolframalpha.com\/input\/?i=pythagoras+tree\">Pythagoras tree<\/a><\/li>\n<li><a href=\"http:\/\/www97.wolframalpha.com\/input\/?i=koch+antisnowflake\">Koch Antisnowflake<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I saw a tweet from someone this morning which mentioned that you could plot the Julia Set using Wolfram Alpha.\u00a0 I had to try this for myself as soon as I could and, sure enough, you can plot the Julia set for any complex number Z: -0.765+0.003 I for example. Very nice but what else [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[46,33],"tags":[],"class_list":["post-1290","post","type-post","status-publish","format-standard","hentry","category-fractals","category-wolfram-alpha"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3swhs-kO","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/1290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1290"}],"version-history":[{"count":17,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/1290\/revisions"}],"predecessor-version":[{"id":1304,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/1290\/revisions\/1304"}],"wp:attachment":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}