<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Math Less Traveled</title>
	<atom:link href="http://mathlesstraveled.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mathlesstraveled.com</link>
	<description>Explorations in mathematical beauty</description>
	<lastBuildDate>Tue, 14 May 2013 12:43:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mathlesstraveled.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Math Less Traveled</title>
		<link>http://mathlesstraveled.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mathlesstraveled.com/osd.xml" title="The Math Less Traveled" />
	<atom:link rel='hub' href='http://mathlesstraveled.com/?pushpress=hub'/>
		<item>
		<title>Workshop on Functional Art, Music, Modeling and Design</title>
		<link>http://mathlesstraveled.com/2013/05/13/workshop-on-functional-art-music-modeling-and-design/</link>
		<comments>http://mathlesstraveled.com/2013/05/13/workshop-on-functional-art-music-modeling-and-design/#comments</comments>
		<pubDate>Mon, 13 May 2013 21:15:34 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[meta]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[beauty]]></category>
		<category><![CDATA[CFP]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[functional]]></category>
		<category><![CDATA[ICFP]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[workshop]]></category>

		<guid isPermaLink="false">http://mathlesstraveled.com/?p=2192</guid>
		<description><![CDATA[Wearing my PhD-student hat, I’m helping organize a workshop, FARM, to be held in Boston this September. I thought it worth mentioning since some readers of this blog—especially those interested in the intersection of math, art, and programming—may find it &#8230; <a href="http://mathlesstraveled.com/2013/05/13/workshop-on-functional-art-music-modeling-and-design/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2192&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Wearing my PhD-student hat, I’m helping organize a workshop, <a href="http://www.cis.upenn.edu/~byorgey/farm13/">FARM</a>, to be held in Boston this September. I thought it worth mentioning since some readers of this blog—especially those interested in the intersection of math, art, and programming—may find it interesting. The focus of the workshop is essentially using <strong>beautiful code to produce beautiful artifacts</strong>—whether art, music, or anything else. If that sounds interesting to you, you should consider submitting a paper, or planning to attend! See <a href="http://www.cis.upenn.edu/~byorgey/farm13/">the website</a> for more details.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathlesstraveled.wordpress.com/2192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathlesstraveled.wordpress.com/2192/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2192&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathlesstraveled.com/2013/05/13/workshop-on-functional-art-music-modeling-and-design/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc113924265dbeb535c8b2fefe4e33ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>
	</item>
		<item>
		<title>Making connections</title>
		<link>http://mathlesstraveled.com/2013/04/20/making-connections/</link>
		<comments>http://mathlesstraveled.com/2013/04/20/making-connections/#comments</comments>
		<pubDate>Sat, 20 Apr 2013 17:15:00 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[challenges]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[challenge]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[points]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://mathlesstraveled.com/?p=2190</guid>
		<description><![CDATA[Here’s something fun I was playing around with today. I generated 100 random points and connected some of them with lines. Can you figure out how I chose which lines to draw? How about these? (Same points, different lines.) Or &#8230; <a href="http://mathlesstraveled.com/2013/04/20/making-connections/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2190&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Here’s something fun I was playing around with today. I generated 100 random points and connected some of them with lines. Can you figure out how I chose which lines to draw?</p>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/f56bd9b1700d23c9acbc002d5425ec13.png?w=640" /></p>
</div>
<p>How about these? (Same points, different lines.)</p>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/3860013e53bf59ceeee7a7eb25cc363f.png?w=640" /></p>
</div>
<p>Or these?</p>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/e801631e1aea237c6e890cbee82d4170.png?w=640" /></p>
</div>
<p>Here are some more. The first three groups in the grid below correspond to the pictures already shown above.</p>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/420670ee62440795e2645aff3781897d.png?w=640" /></p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathlesstraveled.wordpress.com/2190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathlesstraveled.wordpress.com/2190/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2190&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathlesstraveled.com/2013/04/20/making-connections/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc113924265dbeb535c8b2fefe4e33ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/f56bd9b1700d23c9acbc002d5425ec13.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/3860013e53bf59ceeee7a7eb25cc363f.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/e801631e1aea237c6e890cbee82d4170.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/420670ee62440795e2645aff3781897d.png" medium="image" />
	</item>
		<item>
		<title>Animated Sieve of Eratosthenes</title>
		<link>http://mathlesstraveled.com/2013/04/11/animated-sieve-of-eratosthenes/</link>
		<comments>http://mathlesstraveled.com/2013/04/11/animated-sieve-of-eratosthenes/#comments</comments>
		<pubDate>Fri, 12 Apr 2013 03:43:38 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[arithmetic]]></category>
		<category><![CDATA[counting]]></category>
		<category><![CDATA[pattern]]></category>
		<category><![CDATA[pictures]]></category>
		<category><![CDATA[primes]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[diagrams]]></category>
		<category><![CDATA[Eratosthenes]]></category>
		<category><![CDATA[sieve]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://mathlesstraveled.com/?p=2182</guid>
		<description><![CDATA[Here&#8217;s something I made yesterday! (Note, I strongly suggest watching it fullscreen, in HD if you have the bandwidth for it.) Can you figure out what&#8217;s going on? The source code for the animation is here; I was inspired by &#8230; <a href="http://mathlesstraveled.com/2013/04/11/animated-sieve-of-eratosthenes/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2182&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Here&#8217;s something I made yesterday! (Note, I strongly suggest watching it fullscreen, in HD if you have the bandwidth for it.)</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='560' height='315' src='http://www.youtube.com/embed/R8zqqLlrnQM?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p>Can you figure out what&#8217;s going on?  The <a href="https://github.com/byorgey/diagrams-play/blob/master/FactorSquiggles.hs">source code for the animation is here</a>; I was inspired by <a href="http://www.jasondavies.com/primos/">Jason Davies&#8217; visualization</a> which was in turn inspired by <a href="http://www.polprimos.com/">this</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathlesstraveled.wordpress.com/2182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathlesstraveled.wordpress.com/2182/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2182&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathlesstraveled.com/2013/04/11/animated-sieve-of-eratosthenes/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		<georss:point>39.953605 -75.213937</georss:point>
		<geo:lat>39.953605</geo:lat>
		<geo:long>-75.213937</geo:long>
		<media:content url="http://0.gravatar.com/avatar/cc113924265dbeb535c8b2fefe4e33ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>
	</item>
		<item>
		<title>Stars of the Mind&#8217;s Sky with Diagrams</title>
		<link>http://mathlesstraveled.com/2013/04/06/stars-of-the-minds-sky-with-diagrams/</link>
		<comments>http://mathlesstraveled.com/2013/04/06/stars-of-the-minds-sky-with-diagrams/#comments</comments>
		<pubDate>Sat, 06 Apr 2013 21:10:39 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[geometry]]></category>
		<category><![CDATA[group theory]]></category>
		<category><![CDATA[pictures]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[diagrams]]></category>
		<category><![CDATA[Haskell]]></category>
		<category><![CDATA[polygon]]></category>
		<category><![CDATA[star]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://mathlesstraveled.com/?p=2147</guid>
		<description><![CDATA[A few weeks ago, Paul Salomon posted a really beautiful work of mathematical art on his blog, Lost In Recursion: Stars of the Mind’s Sky, by Paul Salomon He included a precise mathematical description of the image, and I naturally &#8230; <a href="http://mathlesstraveled.com/2013/04/06/stars-of-the-minds-sky-with-diagrams/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2147&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><!-- -*- mode: markdown; compile-command: "BlogLiteratelyD -html-only SOTMS.lhs &gt; SOTMS.html" -*- --></p>
<p>A few weeks ago, Paul Salomon posted <a href="http://lostinrecursion.wordpress.com/2013/03/16/stars-of-the-minds-sky/">a really beautiful work of mathematical art</a> on his blog, <a href="http://lostinrecursion.wordpress.com">Lost In Recursion</a>:</p>
<div style="text-align:center;">
<p><img src="http://lostinrecursion.files.wordpress.com/2013/03/300-stars-in-orbit.jpg?w=500&amp;h=499" /><br /> <a href="http://lostinrecursion.wordpress.com/2013/03/16/stars-of-the-minds-sky/">Stars of the Mind’s Sky</a>, by Paul Salomon
</div>
<p>He included a precise mathematical description of the image, and I naturally wondered how difficult it would be to replicate using the <a href="http://projects.haskell.org/diagrams">diagrams framework</a> which I <a href="http://mathlesstraveled.com/2013/03/27/diagrams/">wrote about previously</a>.</p>
<p>The answer: not hard! All told it is only about 30 lines of code, give or take. So I decided to exhibit it here, both as a way of explaining the cool math behind Paul’s image, and as a way of showing off the power of diagrams to do this sort of visualization and mathematical art.</p>
<p>This post is literate Haskell—you should be able to copy and paste the contents of this post into a file with an <code>.lhs</code> extension, and run and play around with it yourself. First, some requisite imports and such:</p>
<pre><code><span>&gt;</span> <span style="color:green;">{-# LANGUAGE NoMonomorphismRestriction #-}</span>
<span>&gt;</span> 
<span>&gt;</span> <span style="color:blue;font-weight:bold;">module</span> <span>SOTMS</span> <span style="color:blue;font-weight:bold;">where</span>
<span>&gt;</span> 
<span>&gt;</span> <span style="color:blue;font-weight:bold;">import</span>           <span>Control</span><span>.</span><span>Arrow</span>                  <span style="color:red;">(</span><span style="color:red;">(</span><span>***</span><span style="color:red;">)</span><span style="color:red;">)</span>
<span>&gt;</span> <span style="color:blue;font-weight:bold;">import</span>           <span>Data</span><span>.</span><span>Colour</span><span>.</span><span>SRGB</span>
<span>&gt;</span> <span style="color:blue;font-weight:bold;">import</span>           <span>Data</span><span>.</span><span>Colour</span><span>.</span><span>RGBSpace</span>
<span>&gt;</span> <span style="color:blue;font-weight:bold;">import</span>           <span>Data</span><span>.</span><span>Colour</span><span>.</span><span>RGBSpace</span><span>.</span><span>HSV</span>
<span>&gt;</span> <span style="color:blue;font-weight:bold;">import</span>           <span>Diagrams</span><span>.</span><span>Backend</span><span>.</span><span>Cairo</span><span>.</span><span>CmdLine</span>
<span>&gt;</span> <span style="color:blue;font-weight:bold;">import</span>           <span>Diagrams</span><span>.</span><span>Prelude</span>
</code></pre>
<h2 id="star-polygons">Star polygons</h2>
<p>The image is primarily composed of a bunch of <a href="http://mathworld.wolfram.com/StarPolygon.html"><em>star polygons</em></a>, the figures you get when you take <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> points evenly spaced around a circle and connect every <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' />th point. For example, here’s what we get when we pick <img src='http://s0.wp.com/latex.php?latex=p+%3D+12&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p = 12' title='p = 12' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=q+%3D+5&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q = 5' title='q = 5' class='latex' />:</p>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/56307bc81eb8a324b5a931a993e7d09e.png?w=640" /></p>
</div>
<p>I’ve numbered the vertices to make it easier to see how vertex <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' /> is always connected to vertex <img src='http://s0.wp.com/latex.php?latex=k%2B5&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k+5' title='k+5' class='latex' /> (modulo 12) by a line segment. Vertex <img src='http://s0.wp.com/latex.php?latex=0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0' title='0' class='latex' /> is connected to <img src='http://s0.wp.com/latex.php?latex=5&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='5' title='5' class='latex' />, which is connected to <img src='http://s0.wp.com/latex.php?latex=10&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='10' title='10' class='latex' />, which is connected to <img src='http://s0.wp.com/latex.php?latex=15+%3D+3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='15 = 3' title='15 = 3' class='latex' />, and so on.</p>
<p>In this example, we get one continuous polygonal path which cycles through all the vertices. But sometimes we get several disjoint paths. For example, below is what we get with <img src='http://s0.wp.com/latex.php?latex=p+%3D+12&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p = 12' title='p = 12' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=q+%3D+3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q = 3' title='q = 3' class='latex' />. I’ve used distinct colors to make it easy to see the three separate squares:</p>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/4d85f2c721e1533822eb38f47c1986a7.png?w=640" /></p>
</div>
<p>If you connect every third point out of twelve, you come back to where you started after hitting only four points, so three separate square paths are needed to connect all the points. Given values for <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' />, can you say in general how many distinct paths result? Here are a few more examples to fuel your investigations:</p>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/655d94716483cd5b00cf5d3baeb2fe7b.png?w=640" /></p>
</div>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/1676580c38a360a7e0dd18b21f45276d.png?w=640" /></p>
</div>
<p>In fact, the number of separate paths needed to draw a given star polygon is how Paul chooses the color: red for star polygons that are one continuous path, yellow for two paths, blue for a lot (that is, 24), and shading gradually from yellow to green to blue for numbers in between. (Now that you know this, you might want to go back and study the image again, looking for patterns!)</p>
<p>There’s one thing left: what about <img src='http://s0.wp.com/latex.php?latex=q+%3D+0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q = 0' title='q = 0' class='latex' />? This is a sort of “degenerate” star polygon where we don’t connect any of the points. Paul chose to draw those using just dots for the vertices, like this:</p>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/b174fcf6ab78ed0ac1f16822e190f9e2.png?w=640" /></p>
</div>
<p>In Paul’s image you can see these going in a straight line from the center to the top, though it’s a little hard to see what’s going on since they all overlap with each other.</p>
<h2 id="drawing-star-polygons">Drawing star polygons</h2>
<p>So, let’s see some code already! First, a simple function to generate the kind of regular polygons we want:</p>
<pre><code><span>&gt;</span> <span style="color:green;">-- Make a regular polygon with n sides and radius r, oriented with</span>
<span>&gt;</span> <span style="color:green;">-- one vertex pointing in the positive y direction.</span>
<span>&gt;</span> <span>regP</span> <span>n</span> <span>r</span> <span style="color:red;">=</span> <span>polygon</span> <span>with</span> <span style="color:red;">{</span> <span>polyType</span>   <span style="color:red;">=</span> <span>PolyRegular</span> <span>n</span> <span>r</span>
<span>&gt;</span>                         <span style="color:red;">,</span> <span>polyOrient</span> <span style="color:red;">=</span> <span>NoOrient</span>
<span>&gt;</span>                         <span style="color:red;">}</span>
<span>&gt;</span>          <span>#</span> <span>rotateBy</span> <span style="color:red;">(</span><span class="hs-num">1</span><span>/</span><span class="hs-num">4</span><span style="color:red;">)</span>
</code></pre>
<p>Now, we define a function <code>mkStar</code> which takes <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> as inputs and draws a <img src='http://s0.wp.com/latex.php?latex=%28p%2Cq%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(p,q)' title='(p,q)' class='latex' />-star polygon, coloring it according to Paul’s color scheme:</p>
<pre><code><span>&gt;</span> <span style="color:green;">-- If q = 0, draw a bunch of dots at the vertices of a regular polygon</span>
<span>&gt;</span> <span>mkStar</span> <span>n</span> <span class="hs-num">0</span>    <span style="color:red;">=</span> <span>decoratePath</span> <span style="color:red;">(</span><span>regP</span> <span>n</span> <span class="hs-num">1</span><span style="color:red;">)</span> <span style="color:red;">(</span><span>repeat</span> <span style="color:red;">(</span><span>circle</span> <span class="hs-num">0.1</span> <span>#</span> <span>lw</span> <span class="hs-num">0</span><span style="color:red;">)</span><span style="color:red;">)</span>
<span>&gt;</span>               <span>#</span> <span>fc</span> <span style="color:red;">(</span><span>colorByNumber</span> <span>n</span><span style="color:red;">)</span>
<span>&gt;</span> 
<span>&gt;</span> <span style="color:green;">-- Otherwise draw a star polygon</span>
<span>&gt;</span> <span>mkStar</span> <span>n</span> <span>skip</span> <span style="color:red;">=</span> <span style="color:blue;font-weight:bold;">let</span> <span>p</span>        <span style="color:red;">=</span> <span>star</span> <span style="color:red;">(</span><span>StarSkip</span> <span>skip</span><span style="color:red;">)</span> <span style="color:red;">(</span><span>regP</span> <span>n</span> <span class="hs-num">1</span><span style="color:red;">)</span>
<span>&gt;</span>                     <span>numPaths</span> <span style="color:red;">=</span> <span>length</span> <span>.</span> <span>pathTrails</span> <span>$</span> <span>p</span>
<span>&gt;</span>                 <span style="color:blue;font-weight:bold;">in</span>
<span>&gt;</span>                     <span>p</span> <span>#</span> <span>stroke</span> <span>#</span> <span>lw</span> <span class="hs-num">0.08</span> <span>#</span> <span>lc</span> <span style="color:red;">(</span><span>colorByNumber</span> <span>numPaths</span><span style="color:red;">)</span>
</code></pre>
<p>Incidentally, the coloring scheme was the only part that wasn’t specified in Paul’s post, so I hacked something together using trial and error and the “eyedropper” tool in GIMP. I also have to go to a bit of trouble to blend from yellow to blue in <a href="http://en.wikipedia.org/wiki/HSL_and_HSV">HSV space</a>, so it looks like this:</p>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/18c9df2a0288828d9d9e8cb28be1861b.png?w=640" /></p>
</div>
<p>and not in RGB space, which looks like this:</p>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/e84af642a2a267998f0d5ea3050c2f6e.png?w=640" /></p>
</div>
<p>You need not pay too much attention to this code, but I’m including it here for completeness. (I plan to soon include some extra tools in diagrams for helping manipulate colors, which would make this a lot easier to accomplish.)</p>
<pre><code><span>&gt;</span> <span>paulRed</span>    <span style="color:red;">=</span> <span>sRGB24</span> <span class="hs-num">0xDA</span> <span class="hs-num">0x22</span> <span class="hs-num">0x22</span>
<span>&gt;</span> <span>paulBlue</span>   <span style="color:red;">=</span> <span>sRGB24</span> <span class="hs-num">0x4C</span> <span class="hs-num">0x89</span> <span class="hs-num">0xC0</span>
<span>&gt;</span> <span>paulYellow</span> <span style="color:red;">=</span> <span>sRGB24</span> <span class="hs-num">0xD1</span> <span class="hs-num">0xB3</span> <span class="hs-num">0x41</span>
<span>&gt;</span> 
<span>&gt;</span> <span>colorByNumber</span> <span class="hs-num">1</span> <span style="color:red;">=</span> <span>paulRed</span>
<span>&gt;</span> <span>colorByNumber</span> <span>c</span> <span style="color:red;">=</span> <span>hsvBlend</span> <span style="color:red;">(</span><span>min</span> <span class="hs-num">1</span> <span style="color:red;">(</span><span style="color:red;">(</span><span>fromIntegral</span> <span>c</span> <span style="color:green;">-</span> <span class="hs-num">2</span><span style="color:red;">)</span><span>/</span><span class="hs-num">10</span><span style="color:red;">)</span><span style="color:red;">)</span>
<span>&gt;</span>                     <span>paulBlue</span> <span>paulYellow</span>
<span>&gt;</span> 
<span>&gt;</span> <span>hsvBlend</span> <span>t</span> <span>c1</span> <span>c2</span> <span style="color:red;">=</span> <span>uncurryRGB</span> <span>sRGB</span> <span>.</span> <span>hsv3</span> <span>$</span> <span>lerp</span> <span>h2</span> <span>h1</span> <span>t</span>
<span>&gt;</span>   <span style="color:blue;font-weight:bold;">where</span>
<span>&gt;</span>     <span style="color:red;">[</span><span>h1</span><span style="color:red;">,</span> <span>h2</span><span style="color:red;">]</span> <span style="color:red;">=</span> <span>map</span> <span style="color:red;">(</span><span>hsvView</span> <span>.</span> <span>toSRGB</span><span style="color:red;">)</span> <span style="color:red;">[</span><span>c1</span><span style="color:red;">,</span><span>c2</span><span style="color:red;">]</span>
<span>&gt;</span>     <span>fst3</span> <span style="color:red;">(</span><span>x</span><span style="color:red;">,</span><span style="color:blue;font-weight:bold;">_</span><span style="color:red;">,</span><span style="color:blue;font-weight:bold;">_</span><span style="color:red;">)</span> <span style="color:red;">=</span> <span>x</span>
<span>&gt;</span>     <span>hsv3</span> <span style="color:red;">(</span><span>h</span><span style="color:red;">,</span><span>s</span><span style="color:red;">,</span><span>v</span><span style="color:red;">)</span> <span style="color:red;">=</span> <span>hsv</span> <span>h</span> <span>s</span> <span>v</span>
</code></pre>
<p>The final colors don’t look exactly like Paul’s original image but they’re close enough.</p>
<h2 id="orbits">Orbits</h2>
<p>Now that we can generate individual star polygons we have to put them together into “orbits”. All the star polygons in a particular “orbit” (that is, at a particular distance from the center) have the same value of <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> (that is, the same number of vertices). The star with <img src='http://s0.wp.com/latex.php?latex=q%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q=0' title='q=0' class='latex' /> is at the top, and then the stars for other values of <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> progress in order around the orbit. (Quick quiz: does the value of <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' /> increase going clockwise, or counterclockwise?)</p>
<p>Making the stars around a particular orbit is easy: we create all the stars (<code>map (mkStar n) [0..]</code> will make one star for each value of <img src='http://s0.wp.com/latex.php?latex=q&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q' title='q' class='latex' />), and then place them at the vertices of a radius-<img src='http://s0.wp.com/latex.php?latex=%28n-1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(n-1)' title='(n-1)' class='latex' /> regular <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' />-gon using <code>decoratePath</code>.</p>
<pre><code><span>&gt;</span> <span>stars</span> <span>n</span> <span style="color:red;">=</span> <span>decoratePath</span>
<span>&gt;</span>             <span style="color:red;">(</span><span>regP</span> <span>n</span> <span style="color:red;">(</span><span>fromIntegral</span> <span>n</span> <span style="color:green;">-</span> <span class="hs-num">1</span><span style="color:red;">)</span><span style="color:red;">)</span>
<span>&gt;</span>             <span style="color:red;">(</span><span>map</span> <span style="color:red;">(</span><span>mkStar</span> <span>n</span><span style="color:red;">)</span> <span style="color:red;">[</span><span class="hs-num">0</span><span style="color:red;">..</span><span style="color:red;">]</span><span style="color:red;">)</span>
</code></pre>
<p>For example, here are the outputs for <code>stars 6</code> and <code>stars 7</code>:</p>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/8749517f166e0e33983ef96a78eaa5ae.png?w=640" /></p>
</div>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/7c85ddf2cb786839e5f6649f90a59811.png?w=640" /></p>
</div>
<p>Finally, each orbit is shown with a faint circle, so we make an <code>orbit</code> function which returns the stars and associated circle together:</p>
<pre><code><span>&gt;</span> <span>orbit</span> <span>n</span> <span style="color:red;">=</span> <span style="color:red;">(</span> <span>stars</span> <span>n</span>
<span>&gt;</span>           <span style="color:red;">,</span> <span>circle</span> <span style="color:red;">(</span><span>fromIntegral</span> <span>n</span> <span style="color:green;">-</span> <span class="hs-num">1</span><span style="color:red;">)</span>
<span>&gt;</span>             <span>#</span> <span>lc</span> <span style="color:red;">(</span><span>blend</span> <span class="hs-num">0.95</span> <span>white</span> <span>black</span><span style="color:red;">)</span>
<span>&gt;</span>             <span>#</span> <span>lw</span> <span class="hs-num">0.08</span>
<span>&gt;</span>           <span style="color:red;">)</span>
</code></pre>
<h2 id="putting-it-all-together">Putting it all together</h2>
<p>Finally, we generate the orbits from <img src='http://s0.wp.com/latex.php?latex=2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='2' title='2' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=24&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='24' title='24' class='latex' /> and draw them all! Note that we have to draw all the orbit circles first and <em>then</em> the stars, because we don’t want any of the orbit circles getting drawn on top of the stars. This is what the funny business with <code>unzip</code>, <code>uncurry atop</code>, etc. is doing.</p>
<pre><code><span>&gt;</span> <span>starsOfTheMindsSky</span> <span style="color:red;">=</span> <span>uncurry</span> <span>atop</span>
<span>&gt;</span>                    <span>.</span> <span style="color:red;">(</span><span>mconcat</span><span>***</span><span>mconcat</span><span style="color:red;">)</span>
<span>&gt;</span>                    <span>.</span> <span>unzip</span>
<span>&gt;</span>                    <span>.</span> <span>reverse</span>
<span>&gt;</span>                    <span>.</span> <span>map</span> <span>orbit</span>
<span>&gt;</span>                    <span>$</span> <span style="color:red;">[</span><span class="hs-num">2</span><span style="color:red;">..</span><span class="hs-num">24</span><span style="color:red;">]</span>
<span>&gt;</span> 
<span>&gt;</span> <span>main</span> <span style="color:red;">=</span> <span>defaultMain</span> <span style="color:red;">(</span><span>starsOfTheMindsSky</span> <span>#</span> <span>centerXY</span> <span>#</span> <span>pad</span> <span class="hs-num">1.1</span><span style="color:red;">)</span>
</code></pre>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/04/7881f3f8efdc109e123eb1930f4ce5f0.png?w=640" /></p>
</div>
<p>And here’s Paul’s original version for comparison. Pretty close!</p>
<div style="text-align:center;">
<p><img src="http://lostinrecursion.files.wordpress.com/2013/03/300-stars-in-orbit.jpg?w=500&amp;h=499" />
</div>
<p>I love all the different patterns you can see in this work of art—close inspection and thinking really pays off as you discover more and more interesting structure. For example, this could really make a wonderful activity for a class—you could <a href="http://lostinrecursion.wordpress.com/2013/03/16/stars-of-the-minds-sky/">buy a print from Paul</a>, put it up, and see what the students find!</p>
<p>Incidentally, I have also really been enjoying Paul’s “imbalance problems”, <a href="http://lostinrecursion.wordpress.com/2013/03/21/imbalance-problems/">here</a>, <a href="http://lostinrecursion.wordpress.com/2013/03/23/more-imbalance-problems-3/">here</a>, and <a href="http://lostinrecursion.wordpress.com/2013/03/30/imbalance-abundance/">here</a>—go check them out!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathlesstraveled.wordpress.com/2147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathlesstraveled.wordpress.com/2147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2147&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathlesstraveled.com/2013/04/06/stars-of-the-minds-sky-with-diagrams/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc113924265dbeb535c8b2fefe4e33ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>

		<media:content url="http://lostinrecursion.files.wordpress.com/2013/03/300-stars-in-orbit.jpg?w=500&#38;h=499" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/56307bc81eb8a324b5a931a993e7d09e.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/4d85f2c721e1533822eb38f47c1986a7.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/655d94716483cd5b00cf5d3baeb2fe7b.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/1676580c38a360a7e0dd18b21f45276d.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/b174fcf6ab78ed0ac1f16822e190f9e2.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/18c9df2a0288828d9d9e8cb28be1861b.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/e84af642a2a267998f0d5ea3050c2f6e.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/8749517f166e0e33983ef96a78eaa5ae.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/7c85ddf2cb786839e5f6649f90a59811.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/04/7881f3f8efdc109e123eb1930f4ce5f0.png" medium="image" />

		<media:content url="http://lostinrecursion.files.wordpress.com/2013/03/300-stars-in-orbit.jpg?w=500&#38;h=499" medium="image" />
	</item>
		<item>
		<title>Book review: Guesstimation 2.0</title>
		<link>http://mathlesstraveled.com/2013/03/30/book-review-guesstimation-2-0/</link>
		<comments>http://mathlesstraveled.com/2013/03/30/book-review-guesstimation-2-0/#comments</comments>
		<pubDate>Sat, 30 Mar 2013 16:00:02 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[books]]></category>
		<category><![CDATA[computation]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[estimation]]></category>
		<category><![CDATA[guessing]]></category>

		<guid isPermaLink="false">http://mathlesstraveled.com/?p=2079</guid>
		<description><![CDATA[Guesstimation 2.0: Solving Today’s Problems on the Back of a NapkinLawrence Weinstein I got a review copy of this book, and initially decided I wasn’t going to review it—I hate those sorts of consulting-company-interview estimation problems, you know, like “what &#8230; <a href="http://mathlesstraveled.com/2013/03/30/book-review-guesstimation-2-0/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2079&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><!-- -*- compile-command: "BlogLiterately -html-only guesstimation-2.0.markdown &gt; guesstimation-2.0.html" -*- --></p>
<div style="float:right;margin-left:20px;">
<p><a href="http://press.princeton.edu/titles/9820.html"> <img src="http://press.princeton.edu/images/j9820.gif" /> </a>
</div>
<p><strong><a href="http://press.princeton.edu/titles/9820.html">Guesstimation 2.0: Solving Today’s Problems on the Back of a Napkin</a></strong><br /><em>Lawrence Weinstein</em></p>
<p>I got a review copy of this book, and initially decided I wasn’t going to review it—I hate those sorts of consulting-company-interview estimation problems, you know, like “what percentage of all the shampoo bottles in the world are in an airplane at this moment” or “how much poop does the San Diego Zoo produce per year” or whatever.</p>
<p>But I picked it up in an idle moment and found myself spending far longer reading it than I had intended. Weinstein is clearly a master estimator, and anyone actually interested in estimation will find a wealth of information here. In addition to working out the solutions to many estimation problems, it also includes lots of advice about estimation in general. But what I enjoyed most is his fun writing style and his quirky choice of questions, like “how much fuel would airlines save if they required all passengers to urinate before boarding?” (as, apparently, Nippon Airways began doing in 2009, though I imagine not actually for fuel efficiency reasons), or “how many bullets does it take to cut down a tree?”, or “which has more mass, the air or the brains in a movie theater?” (Answers: not much, about ten thousand, and the air by a factor of ten.) He is also able to leverage physics to estimate answers to lots of interesting questions that would never show up in an interview, because they’re so difficult to get a handle on otherwise, like “how far away can you detect a candle on a clear, dark night?” So even though I probably won’t end up using any of the techniques myself, it ended up being a fun book nonetheless.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathlesstraveled.wordpress.com/2079/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathlesstraveled.wordpress.com/2079/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2079&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathlesstraveled.com/2013/03/30/book-review-guesstimation-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>39.953605 -75.213937</georss:point>
		<geo:lat>39.953605</geo:lat>
		<geo:long>-75.213937</geo:long>
		<media:content url="http://0.gravatar.com/avatar/cc113924265dbeb535c8b2fefe4e33ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>

		<media:content url="http://press.princeton.edu/images/j9820.gif" medium="image" />
	</item>
		<item>
		<title>Diagrams!</title>
		<link>http://mathlesstraveled.com/2013/03/27/diagrams/</link>
		<comments>http://mathlesstraveled.com/2013/03/27/diagrams/#comments</comments>
		<pubDate>Wed, 27 Mar 2013 21:04:37 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[links]]></category>
		<category><![CDATA[pictures]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[diagrams]]></category>
		<category><![CDATA[Haskell]]></category>

		<guid isPermaLink="false">http://mathlesstraveled.com/?p=2076</guid>
		<description><![CDATA[Over the past few years I’ve written quite a few posts with images generated by a library I (now along with many others) wrote. Most famously, this is how I created those factorization diagrams. But I’ve used it in many &#8230; <a href="http://mathlesstraveled.com/2013/03/27/diagrams/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2076&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Over the past few years I’ve written quite a few posts with images generated by <a href="http://projects.haskell.org/diagrams/">a library I (now along with many others) wrote</a>. Most famously, this is how I created those <a href="http://mathlesstraveled.com/2012/10/05/factorization-diagrams/">factorization</a> <a href="http://mathlesstraveled.com/2012/11/05/more-factorization-diagrams/">diagrams</a>. But I’ve used it in many other posts as well (<a href="http://mathlesstraveled.com/2012/10/20/visualizing-pascals-triangle-remainders/">1</a> <a href="http://mathlesstraveled.com/2012/08/16/visualizing-nim-like-games/">2</a> <a href="http://mathlesstraveled.com/2013/01/03/the-steinhaus-johnson-trotter-algorithm/">3</a> <a href="http://mathlesstraveled.com/2012/12/18/permuting-permutations/">4</a> <a href="http://mathlesstraveled.com/2012/06/09/fibonacci-multiples-solution-1/">5</a> <a href="http://mathlesstraveled.com/2012/03/03/making-our-equation-count/">6</a> <a href="http://mathlesstraveled.com/2012/02/17/combinatorial-proofs/">7</a> <a href="http://mathlesstraveled.com/2012/02/09/17x17-4-coloring-with-no-monochromatic-rectangles/">8</a> <a href="http://mathlesstraveled.com/2011/10/29/post-without-words-3/">9</a> <a href="http://mathlesstraveled.com/2011/09/11/some-words-about-post-without-words-2/">10</a> <a href="http://mathlesstraveled.com/2011/09/06/post-without-words-2/">11</a> <a href="http://mathlesstraveled.com/2011/05/24/post-without-words-1/">12</a> <a href="http://mathlesstraveled.com/2011/05/08/area-paradox-unmasked/">13</a> <a href="http://mathlesstraveled.com/2011/05/02/an-area-paradox/">14</a> <a href="http://mathlesstraveled.com/2011/04/14/triangular-number-equations-via-pictures-solutions/">15</a> <a href="http://mathlesstraveled.com/2010/11/02/penn-alexander-subset-counting-and-gray-codes/">16</a>). I promised to write a post explaining how it works and (more importantly) how you can use it too—and here it is!</p>
<h2 id="about-diagrams">About diagrams</h2>
<p>My library is called <a href="http://projects.haskell.org/diagrams/">diagrams</a> (a rather generic but nicely descriptive name). As I hope to show you—and as I hope you can see from the above list of posts—it’s really nice for doing all sorts of visualization, for mathematical exploration, and even for creating art with a mathematical bent. It’s not a <em>program</em> for creating images (like Illustrator or Inkscape), but actually a <a href="http://mathlesstraveled.com/2012/11/28/what-i-do-part-1-programming-languages/"><em>language</em></a> for describing what you want your images to look like. What makes it really powerful is that it is actually “embedded” in the <a href="http://haskell.org">Haskell programming language</a>—that is, diagrams programs <em>are</em> Haskell programs, written using stuff provided by the diagrams library. To do simple things with diagrams doesn’t actually require knowing much (if any) Haskell, but the full power of Haskell is available to do more sophisticated things.</p>
<p>So, what can it do? Of course, you can make simple shapes like circles, squares, triangles, pentagons, and so on:</p>
<pre><code><span>&gt;</span> <span>dia</span> <span style="color:red;">=</span> <span>circle</span> <span class="hs-num">1</span>
</code></pre>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/03/5b2a69ce7e9066b39f6fac81a99ef28c.png?w=640" /></p>
</div>
<p>You can also make crazier shapes like stars:</p>
<pre><code><span>&gt;</span> <span>dia</span> <span style="color:red;">=</span> <span>stroke</span> <span>$</span> <span>star</span> <span style="color:red;">(</span><span>StarSkip</span> <span class="hs-num">2</span><span style="color:red;">)</span> <span style="color:red;">(</span><span>pentagon</span> <span class="hs-num">1</span><span style="color:red;">)</span>
</code></pre>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/03/1084845ee7baf9a20932c477fd9b33ee.png?w=640" /></p>
</div>
<p>You can specify attributes like fill and line color, line width, or line dashing:</p>
<pre><code><span>&gt;</span> <span>dia</span> <span style="color:red;">=</span> <span>myStar</span> <span>#</span> <span>lw</span> <span class="hs-num">0.05</span> <span>#</span> <span>lc</span> <span>purple</span> <span>#</span> <span>fc</span> <span>yellow</span> <span>#</span> <span>dashing</span> <span style="color:red;">[</span><span class="hs-num">0.1</span><span style="color:red;">,</span><span class="hs-num">0.05</span><span style="color:red;">]</span> <span class="hs-num">0</span>
<span>&gt;</span> 
<span>&gt;</span> <span>myStar</span> <span style="color:red;">=</span> <span>stroke</span> <span>$</span> <span>star</span> <span style="color:red;">(</span><span>StarSkip</span> <span class="hs-num">2</span><span style="color:red;">)</span> <span style="color:red;">(</span><span>pentagon</span> <span class="hs-num">1</span><span style="color:red;">)</span>
</code></pre>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/03/fb572d6460d1c8d4adb0259af0b2ad05.png?w=640" /></p>
</div>
<p>Note in the above example how you can make arbitrary definitions and then reuse them.</p>
<p>You can apply transformations like translation, rotation, scaling, and reflection:</p>
<pre><code><span>&gt;</span> <span>dia</span> <span style="color:red;">=</span> <span>myStar</span> <span>#</span> <span>scale</span> <span class="hs-num">2</span>
<span>&gt;</span>   <span>|||</span> <span>myStar</span> <span>#</span> <span>rotateBy</span> <span style="color:red;">(</span><span class="hs-num">1</span><span>/</span><span class="hs-num">19</span><span style="color:red;">)</span>
<span>&gt;</span>   <span>|||</span> <span>myStar</span> <span>#</span> <span>reflectY</span> <span>#</span> <span>translateY</span> <span class="hs-num">0.5</span>
<span>&gt;</span> 
<span>&gt;</span> <span>myStar</span> <span style="color:red;">=</span> <span>stroke</span> <span>$</span> <span>star</span> <span style="color:red;">(</span><span>StarSkip</span> <span class="hs-num">2</span><span style="color:red;">)</span> <span style="color:red;">(</span><span>pentagon</span> <span class="hs-num">1</span><span style="color:red;">)</span>
</code></pre>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/03/e9df54ae7a05b35e8da1bddc95838b26.png?w=640" /></p>
</div>
<p>You can <em>compose</em> multiple diagrams into one by putting them on top of each other or next to each other:</p>
<pre><code><span>&gt;</span> <span>dia</span> <span style="color:red;">=</span> <span style="color:red;">(</span><span>circle</span> <span class="hs-num">1</span> <span>&lt;&gt;</span> <span>circle</span> <span class="hs-num">2</span> <span>&lt;&gt;</span> <span>circle</span> <span class="hs-num">3</span><span style="color:red;">)</span> <span>|||</span> <span style="color:red;">(</span><span>square</span> <span class="hs-num">2</span> <span>===</span> <span>triangle</span> <span class="hs-num">2</span><span style="color:red;">)</span>
</code></pre>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/03/b9e82b989be6e5bfec04b470c519348c.png?w=640" /></p>
</div>
<p>You can already create some cool pictures just using the above features—and you don’t really have to know any Haskell! But bringing the power of Haskell into the picture lets us accomplish much more. I’ve <a href="http://mathlesstraveled.com/tag/haskell/">written about Haskell several times before</a>; if you want to learn more about it, check out <a href="http://learnyouahaskell.com/">Learn You a Haskell</a>. To whet your appetite, here are a few simple examples.</p>
<p>Haskell has a built-in notion of <em>lists</em>. We can create lists of diagrams and lay them out using operations like <code>hcat</code>:</p>
<pre><code><span>&gt;</span> <span>dia</span> <span style="color:red;">=</span> <span>hcat</span> <span style="color:red;">[</span> <span>circle</span> <span>n</span> <span>#</span> <span>fc</span> <span>blue</span> <span style="color:red;">|</span> <span>n</span> <span style="color:red;">&lt;-</span> <span style="color:red;">[</span><span class="hs-num">1</span> <span style="color:red;">..</span> <span class="hs-num">5</span><span style="color:red;">]</span> <span style="color:red;">]</span>
</code></pre>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/03/9e116b453dc73980d0af0144a7352328.png?w=640" /></p>
</div>
<p>We can also create shapes from arbitrary <em>paths</em> described using lists of points or vectors, or use paths to position other diagrams:</p>
<pre><code><span>&gt;</span> <span>myPath</span> <span style="color:red;">=</span> <span>fromVertices</span> <span style="color:red;">[</span> <span class="hs-num">0</span> <span>&amp;</span> <span class="hs-num">0</span><span style="color:red;">,</span> <span class="hs-num">0</span> <span>&amp;</span> <span class="hs-num">2</span><span style="color:red;">,</span> <span class="hs-num">0.5</span> <span>&amp;</span> <span class="hs-num">0.5</span><span style="color:red;">,</span> <span class="hs-num">2</span> <span>&amp;</span> <span class="hs-num">0</span> <span style="color:red;">]</span>
<span>&gt;</span> 
<span>&gt;</span> <span>dart</span> <span style="color:red;">=</span> <span>myPath</span> <span>#</span> <span>close</span> <span>#</span> <span>stroke</span> <span>#</span> <span>rotateBy</span> <span style="color:red;">(</span><span style="color:green;">-</span><span class="hs-num">1</span><span>/</span><span class="hs-num">6</span><span style="color:red;">)</span>
<span>&gt;</span> 
<span>&gt;</span> <span>circles</span> <span style="color:red;">=</span> <span>decoratePath</span> <span>myPath</span> <span style="color:red;">(</span><span>repeat</span> <span style="color:red;">(</span><span>circle</span> <span class="hs-num">0.2</span><span style="color:red;">)</span><span style="color:red;">)</span>
<span>&gt;</span> 
<span>&gt;</span> <span>dia</span> <span style="color:red;">=</span> <span>dart</span> <span>|||</span> <span>strutX</span> <span class="hs-num">2</span> <span>|||</span> <span>circles</span> <span>#</span> <span>centerXY</span>
</code></pre>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/03/7a7011ca6bd902c6c0159b7ee91b5c9b.png?w=640" /></p>
</div>
<p>We can write recursive functions to generate diagrams:</p>
<pre><code><span>&gt;</span> <span>sierpinski</span> <span class="hs-num">1</span> <span style="color:red;">=</span> <span>triangle</span> <span class="hs-num">1</span> <span>#</span> <span>fc</span> <span>black</span>
<span>&gt;</span> <span>sierpinski</span> <span>n</span> <span style="color:red;">=</span> <span>s</span> <span>===</span> <span style="color:red;">(</span><span>centerX</span> <span style="color:red;">(</span><span>s</span> <span>|||</span> <span>s</span><span style="color:red;">)</span><span style="color:red;">)</span>
<span>&gt;</span>   <span style="color:blue;font-weight:bold;">where</span> <span>s</span> <span style="color:red;">=</span> <span>sierpinski</span> <span style="color:red;">(</span><span>n</span><span style="color:green;">-</span><span class="hs-num">1</span><span style="color:red;">)</span>
<span>&gt;</span> 
<span>&gt;</span> <span>dia</span> <span style="color:red;">=</span> <span>sierpinski</span> <span class="hs-num">6</span>
</code></pre>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/03/a1d29e80da5fc39d14b91069804538b2.png?w=640" /></p>
</div>
<p>There are also a ton of existing Haskell libraries available on <a href="Hackage">http://hackage.haskell.org/</a>, and we can seamlessly integrate any of them with diagrams—though I don’t have a good example off the top of my head.</p>
<h2 id="installing-diagrams">Installing diagrams</h2>
<p>If you’d like to play around with it, here’s what to do. The first step is to install the <a href="http://www.haskell.org/platform">Haskell Platform</a>. Once you have that installed, open a terminal/command line, and type</p>
<pre><code>cabal install diagrams</code></pre>
<p>then go get a snack because you might have to wait for a while. But after it finishes you should have diagrams installed! Now take a look at the <a href="http://projects.haskell.org/diagrams/tutorial/DiagramsTutorial.html">tutorial</a> and the <a href="http://projects.haskell.org/diagrams/gallery.html">gallery of examples</a>, and start playing!</p>
<h2 id="learning-more">Learning more</h2>
<p>After you have finished the tutorial (which really only scratches the surface), there is also an extensive <a href="http://projects.haskell.org/diagrams/manual/diagrams-manual.html">user manual</a> which covers (almost) everything you could want to know about diagrams. If you have questions, there is a <a href="http://groups.google.com/group/diagrams-discuss">mailing list</a> and an <a href="http://webchat.freenode.net/?channels=diagrams">IRC channel</a> (<code>#diagrams</code> on freenode). You’re also welcome to leave questions as comments on this post.</p>
<p>Last but not least, if you’re interested in seeing how it’s all implemented, or even contributing to the project, the source code is all <a href="http://github.com/diagrams">available on github</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathlesstraveled.wordpress.com/2076/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathlesstraveled.wordpress.com/2076/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2076&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathlesstraveled.com/2013/03/27/diagrams/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc113924265dbeb535c8b2fefe4e33ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/03/5b2a69ce7e9066b39f6fac81a99ef28c.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/03/1084845ee7baf9a20932c477fd9b33ee.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/03/fb572d6460d1c8d4adb0259af0b2ad05.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/03/e9df54ae7a05b35e8da1bddc95838b26.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/03/b9e82b989be6e5bfec04b470c519348c.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/03/9e116b453dc73980d0af0144a7352328.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/03/7a7011ca6bd902c6c0159b7ee91b5c9b.png" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/03/a1d29e80da5fc39d14b91069804538b2.png" medium="image" />
	</item>
		<item>
		<title>Penrose tiles on my refrigerator!</title>
		<link>http://mathlesstraveled.com/2013/03/08/penrose-tiles-on-my-refrigerator-3/</link>
		<comments>http://mathlesstraveled.com/2013/03/08/penrose-tiles-on-my-refrigerator-3/#comments</comments>
		<pubDate>Fri, 08 Mar 2013 22:40:40 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[geometry]]></category>
		<category><![CDATA[pattern]]></category>
		<category><![CDATA[pictures]]></category>
		<category><![CDATA[Kickstarter]]></category>
		<category><![CDATA[magnet]]></category>
		<category><![CDATA[penrose]]></category>
		<category><![CDATA[refrigerator]]></category>
		<category><![CDATA[tile]]></category>

		<guid isPermaLink="false">http://mathlesstraveled.com/?p=2043</guid>
		<description><![CDATA[I got some Penrose refrigerator magnets in the mail the other day! They look nice on my fridge, don’t you think? Here’s a close-up: (Unfortunately, since this was just a Kickstarter project there’s no way to order more at this &#8230; <a href="http://mathlesstraveled.com/2013/03/08/penrose-tiles-on-my-refrigerator-3/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2043&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I got some <a href="http://penrosemagnets.com/#Penrose">Penrose refrigerator magnets</a> in the mail the other day! They look nice on my fridge, don’t you think?</p>
<div style="text-align:center;">
<div class="figure">
<img src="http://mathlesstraveled.files.wordpress.com/2013/03/penrose-wide-small.jpg?w=640" />
</div>
</div>
<p>Here’s a close-up:</p>
<div style="text-align:center;">
<div class="figure">
<img src="http://mathlesstraveled.files.wordpress.com/2013/03/penrose-small.jpg?w=640" />
</div>
</div>
<p>(Unfortunately, since this was just a Kickstarter project there’s no way to order more at this point.)</p>
<p>There are just two types of tile (ignoring the colors), both quadrilaterals, one a “kite” shape with three angles of 72 degrees and a fourth angle of 144 degrees, and the other a “dart” shape with angles of 36, 72, 36, and 216 degrees. You can use them to completely tile the (infinite) plane with no gaps or overlaps—and in a way that is <em>aperiodic</em>. By that we mean that the tiling has no <em>translational symmetry</em>, that is, there is no way to translate the tiling so that it matches up with itself. In fact, if you follow a couple simple rules in the way that you are allowed to put the tiles together, it <em>forces</em> the resulting tiling to be aperiodic. Pretty cool! Though as I learned from playing with the tiles, you can’t just put the tiles together any way you like, even following the rules—sometimes you get stuck and have to backtrack to find an arrangement that works, which makes it a rather engaging little game. (In fact, now that I look at it more closely I think I made a mistake in the picture above—can you spot where the tiling is going to go wrong?) Though you can no longer get them as refrigerator magnets for now, you could certainly cut your own tiles out of card stock or something like that.</p>
<p>The <a href="http://en.wikipedia.org/wiki/Penrose_tiling">Wikipedia article on Penrose tilings</a> has a lot more information about this and related tilings.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathlesstraveled.wordpress.com/2043/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathlesstraveled.wordpress.com/2043/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2043&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathlesstraveled.com/2013/03/08/penrose-tiles-on-my-refrigerator-3/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc113924265dbeb535c8b2fefe4e33ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/03/penrose-wide-small.jpg" medium="image" />

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/03/penrose-small.jpg" medium="image" />
	</item>
		<item>
		<title>Book review: Lauren Ipsum</title>
		<link>http://mathlesstraveled.com/2013/02/09/book-review-lauren-ipsum/</link>
		<comments>http://mathlesstraveled.com/2013/02/09/book-review-lauren-ipsum/#comments</comments>
		<pubDate>Sat, 09 Feb 2013 19:53:41 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[books]]></category>
		<category><![CDATA[computation]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[teaching]]></category>
		<category><![CDATA[Alice in Wonderland]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[ideas]]></category>
		<category><![CDATA[Ipsum]]></category>
		<category><![CDATA[Lauren]]></category>

		<guid isPermaLink="false">http://mathlesstraveled.com/?p=2036</guid>
		<description><![CDATA[Lauren Ipsumstory by Carlos Bueno; illustrations by Ytaelena López I don’t quite remember how I first stumbled across the website for this little gem of a book, billing itself as “a story about computer science and other improbable things”. But &#8230; <a href="http://mathlesstraveled.com/2013/02/09/book-review-lauren-ipsum/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2036&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><!-- -*- compile-command: "BlogLiterately lauren-ipsum.markdown &gt; lauren-ipsum.html" -*- --></p>
<div style="float:right;margin-left:20px;">
<p><a href="http://www.laurenipsum.org/"> <img src="http://ecx.images-amazon.com/images/I/41U8rPb%2BhKL._SS500_.jpg" width="200" /> </a>
</div>
<p><strong><a href="http://www.laurenipsum.org/">Lauren Ipsum</a></strong><br /><em>story by Carlos Bueno; illustrations by Ytaelena López</em></p>
<p>I don’t quite remember how I first stumbled across <a href="http://www.laurenipsum.org/">the website for this little gem of a book</a>, billing itself as “a story about computer science and other improbable things”. But I’m very glad I did. I was so intrigued by the pedagogical approach, and the <a href="http://www.laurenipsum.org/sample">sample chapters</a> seemed so much fun, that I ordered one (even though I am not exactly the target audience).</p>
<p>I wasn’t disappointed! <em>Lauren Ipsum</em> follows the adventures of Laurie as she gets lost in a strange place called Userland and then tries to find her way home. It’s quite reminiscent of Alice in Wonderland (intentionally so, I think)—but with the goal of enlightenment rather than confusion.</p>
<p>Along the way, the reader is gently introduced to a lot of important ideas in computer science, each boiled down to its essence and presented through the experiences and conversations of the characters. There are no definitions, no theorems, no exercises, just a fun story that happens to involve some interesting ideas.</p>
<p>I think Bueno hits it right on the head—the story really is a lot of fun, and the ideas are presented in creative, lucid, and curiosity-inspiring ways. It would make a great gift for any ten-year-old girl you know—indeed, I think I might buy a copy for one or two that I know!</p>
<p>I’ll leave you with this quote from the preface, which perfectly sums up the philosophy and tone of the book:</p>
<blockquote>
<p><em>The truth is that computer science is not really about the computer. It is just a tool to help you see ideas more clearly. You can see the moon and stars without a telescope, smell the flowers without a fluoroscope, have fun without a funoscope, and be silly sans oscilloscope.</em></p>
<p><em>You can also play with computer science without… you-know-what. Ideas are the real stuff of computer science. This book is about those ideas, and how to find them.</em>
</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathlesstraveled.wordpress.com/2036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathlesstraveled.wordpress.com/2036/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2036&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathlesstraveled.com/2013/02/09/book-review-lauren-ipsum/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc113924265dbeb535c8b2fefe4e33ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>

		<media:content url="http://ecx.images-amazon.com/images/I/41U8rPb%2BhKL._SS500_.jpg" medium="image" />
	</item>
		<item>
		<title>Factorization diagram cards: help?</title>
		<link>http://mathlesstraveled.com/2013/02/05/factorization-diagram-cards-help/</link>
		<comments>http://mathlesstraveled.com/2013/02/05/factorization-diagram-cards-help/#comments</comments>
		<pubDate>Wed, 06 Feb 2013 02:05:23 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[arithmetic]]></category>
		<category><![CDATA[pictures]]></category>
		<category><![CDATA[primes]]></category>
		<category><![CDATA[cards]]></category>
		<category><![CDATA[diagrams]]></category>
		<category><![CDATA[factorization]]></category>
		<category><![CDATA[printing]]></category>

		<guid isPermaLink="false">http://mathlesstraveled.com/?p=2029</guid>
		<description><![CDATA[The other day I got a lovely email from Malke Rosenfeld thanking me for creating factorization diagrams and linking me to her blog post about “factor dominoes”: she printed out some factorization diagrams, glued them to cardstock, and used the &#8230; <a href="http://mathlesstraveled.com/2013/02/05/factorization-diagram-cards-help/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2029&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><!-- -*- mode: markdown; compile-command: "BlogLiteratelyD factorization-cards.markdown &gt; factorization-cards.html" -*- --></p>
<p>The other day I got a lovely email from <a href="http://mathinyourfeet.blogspot.com/">Malke Rosenfeld</a> thanking me for creating <a href="http://mathlesstraveled.com/2012/10/05/factorization-diagrams/">factorization</a> <a href="http://mathlesstraveled.com/2012/11/05/more-factorization-diagrams/">diagrams</a> and linking me to her <a href="http://mathinyourfeet.blogspot.com/2012/11/new-math-game-factor-dominoes.html">blog post</a> about “factor dominoes”: she printed out some factorization diagrams, glued them to cardstock, and used the resulting cards to play some games with her seven-year-old.</p>
<p>I think this is absolutely brilliant, and it’s actually not the first time I’ve heard about someone printing out factorization diagrams and making cards out of them. So I thought—wouldn’t it be awesome to be able to buy a set of beautiful, professional-quality factorization diagram cards? (The answer: yes, yes it would!)</p>
<div style="text-align:center;">
<p><img src="http://mathlesstraveled.files.wordpress.com/2013/02/c38caef2b3c50426da39aecbe3f8af68.png?w=640" /></p>
</div>
<p>There’s only one problem: I don’t know the first thing about creating physical objects! <strong>Are you a publisher/printer, or are you able to put me in contact with one, who would be interested in working with me to produce a high-quality set of factorization diagram cards?</strong> I could easily create a Kickstarter for it if that would help.</p>
<p>(And yes, I still plan to make some posters and T-shirts and such as well, but the cards are what has really caught my fancy—not to mention that I’m deep in the midst of writing a dissertation proposal and don’t have a lot of extra time at the moment.)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathlesstraveled.wordpress.com/2029/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathlesstraveled.wordpress.com/2029/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2029&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathlesstraveled.com/2013/02/05/factorization-diagram-cards-help/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc113924265dbeb535c8b2fefe4e33ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>

		<media:content url="http://mathlesstraveled.files.wordpress.com/2013/02/c38caef2b3c50426da39aecbe3f8af68.png" medium="image" />
	</item>
		<item>
		<title>New &#8220;Chaos&#8221; videos from the makers of &#8220;Dimensions&#8221;</title>
		<link>http://mathlesstraveled.com/2013/01/28/new-chaos-videos-from-the-makers-of-dimensions/</link>
		<comments>http://mathlesstraveled.com/2013/01/28/new-chaos-videos-from-the-makers-of-dimensions/#comments</comments>
		<pubDate>Mon, 28 Jan 2013 18:53:10 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[links]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[chaos]]></category>

		<guid isPermaLink="false">http://mathlesstraveled.com/?p=2022</guid>
		<description><![CDATA[I just got an email from Jos Leys, one of the creators of the Dimensions video series (which I wrote about previously), announcing that they have released another video series, this time about Chaos, at http://www.chaos-math.org/en. I haven&#8217;t had a &#8230; <a href="http://mathlesstraveled.com/2013/01/28/new-chaos-videos-from-the-makers-of-dimensions/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2022&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I just got an email from <a href="http://www.josleys.com/">Jos Leys</a>, one of the creators of the <i><a href="http://www.dimensions-math.org/">Dimensions</a></i> video series (which I <a href="http://mathlesstraveled.com/2011/11/21/dimensions-go-watch-now/" title="Dimensions: go watch! now!">wrote about previously</a>), announcing that they have released another video series, this time about Chaos, at <a href="http://www.chaos-math.org/en">http://www.chaos-math.org/en</a>.  I haven&#8217;t had a chance to watch yet, but if it&#8217;s anything like Dimensions then you&#8217;re in for a real treat!</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='560' height='315' src='http://www.youtube.com/embed/pWXQ0n0Sq2A?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mathlesstraveled.wordpress.com/2022/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mathlesstraveled.wordpress.com/2022/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mathlesstraveled.com&#038;blog=21246689&#038;post=2022&#038;subd=mathlesstraveled&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mathlesstraveled.com/2013/01/28/new-chaos-videos-from-the-makers-of-dimensions/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<georss:point>39.953605 -75.213937</georss:point>
		<geo:lat>39.953605</geo:lat>
		<geo:long>-75.213937</geo:long>
		<media:content url="http://0.gravatar.com/avatar/cc113924265dbeb535c8b2fefe4e33ee?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Brent</media:title>
		</media:content>
	</item>
	</channel>
</rss>
