<?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/"
	>

<channel>
	<title>American in Spain &#187; Math</title>
	<atom:link href="http://erikras.com/category/math/feed/" rel="self" type="application/rss+xml" />
	<link>http://erikras.com</link>
	<description>Thoughts and photos from an American living in Spain.</description>
	<lastBuildDate>Thu, 24 May 2012 17:04:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Friday the 13th is most common 13th</title>
		<link>http://erikras.com/2012/01/13/friday-the-13th-calculator/</link>
		<comments>http://erikras.com/2012/01/13/friday-the-13th-calculator/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 23:43:36 +0000</pubDate>
		<dc:creator>erik</dc:creator>
				<category><![CDATA[Fighting Stupidity]]></category>
		<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Musings]]></category>
		<category><![CDATA[friday]]></category>
		<category><![CDATA[friday the 13th]]></category>
		<category><![CDATA[geeky]]></category>
		<category><![CDATA[histogram]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[superstition]]></category>

		<guid isPermaLink="false">http://erikras.com/?p=5642</guid>
		<description><![CDATA[I&#8217;ve always been fascinated by superstition, and friggatriskaidekaphobia – or, to be more clear, paraskevidekatriaphobia – strikes me as a particularly interesting one. The origin can only be traced back into the 19th century. I am disappointed to discover that experts find little reason to associate it with the slaughter of the Knights Templar on [...]<div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2008/03/28/lottery-year-first-quarter-results/' rel='bookmark' title='Lottery Year &#8211; First Quarter Results'>Lottery Year &#8211; First Quarter Results</a></li>
<dt><a href='http://erikras.com/2010/07/16/fun-with-arithmetic/' rel='bookmark' title='Fun With Arithmetic'>Fun With Arithmetic</a></li>
<dt><a href='http://erikras.com/2011/11/09/how-fast-drive-rain-dry-rear-window/' rel='bookmark' title='How fast do you need to drive in the rain to keep your rear window dry?'>How fast do you need to drive in the rain to keep your rear window dry?</a></li>
</dl></div>]]></description>
			<content:encoded><![CDATA[<p><a class="post-thumb" href="http://www.flickr.com/photos/kire/801295398/" title="Friday the 13th Facts and Theories by kire, on Flickr"><img style="border:none;" src="http://farm2.staticflickr.com/1051/801295398_48eb229a19_t.jpg" width="100" height="100" alt="Friday the 13th Facts and Theories"></a>I&#8217;ve always been fascinated by superstition, and <em>friggatriskaidekaphobia</em> – or, to be more clear, <em>paraskevidekatriaphobia</em> – strikes me as a particularly interesting one. The origin can only be traced back into the 19th century. I am disappointed to discover that experts find little reason to associate it with the slaughter of the Knights Templar on October 13, 1307, exactly seven hundred years before my wedding day. Oh well, something else <a href="http://erikras.com/2009/10/05/dan-browns-the-lost-symbol-is-anti-science/">Dan Brown got wrong</a>. As if to show just how arbitrary the choice of Friday is, the Spanish speaking world fears <em>Tuesday</em> the 13th, and they even have their own tongue-twisting phobia word: <em>trezidavomartiofobia</em>.<br />
<span id="more-5642"></span><br />
Several months ago, one of my journeys down the rabbit hole of Wikipedia found me reading more about Friday the 13th, and I was fascinated to discover that, of all the days of the week, the thirteenth day of any given month is statistically more likely to be a Friday.</p>
<p>How was this discovered? The Gregorian calendar – the one we use in modern 21st century western society – repeats itself every 400 years. Therefore, to calculate how many times the thirteenth falls on each day of the week, we only have to examine 400 years, or 4800 months. A bloke by the name of B.H. Brown did this by hand in 1933, but now we have computers. The program to do this is completely trivial once you have a calendar algorithm to follow the Gregorian calendar like all modern computer languages have built-in. Trivial or not, I couldn&#8217;t resist&#8230;let&#8217;s calculate how many times the 13th falls on each day of the week, shall we?</p>
<h2>13th Histogram Calculator</h2>
<p>When you click &#8220;GO!&#8221;, the calculator will start from today, <span id="friday_start">January 13, 2012</span>, and count which weekdays fall on the thirteenth of the month over the next 400 years until <span id="friday_end">January 13, 2412</span>. Here&#8217;s a hint: it goes up to 688.</p>
<p><button id="friday_go" style="padding:10px;">GO!</button><button id="friday_reset" style="padding:10px;margin-left:50px;">Reset</button></p>
<div id="friday_status"> </div>
<table style="clear:both;margin:10px;">
<tr>
<th>Sunday</th>
<td id="friday_0" style="padding-left:20px;text-align:right;">0</td>
</tr>
<tr>
<th>Monday</th>
<td id="friday_1" style="padding-left:20px;text-align:right;">0</td>
</tr>
<tr>
<th>Tuesday</th>
<td id="friday_2" style="padding-left:20px;text-align:right;">0</td>
</tr>
<tr>
<th>Wednesday</th>
<td id="friday_3" style="padding-left:20px;text-align:right;">0</td>
</tr>
<tr>
<th>Thursday</th>
<td id="friday_4" style="padding-left:20px;text-align:right;">0</td>
</tr>
<tr>
<th>Friday</th>
<td id="friday_5" style="padding-left:20px;text-align:right;">0</td>
</tr>
<tr>
<th>Saturday</th>
<td id="friday_6" style="padding-left:20px;text-align:right;">0</td>
</tr>
</table>
<p><script type="text/javascript">
  document.observe("dom:loaded", function ()
  {
    var formatDate = function (date)
    {
      return ['January',
        'February',
        'March',
        'April',
        'May',
        'June',
        'July',
        'August',
        'September',
        'October',
        'November',
        'December'][date.getMonth()] + ' ' + date.getDate() + ', ' + date.getFullYear();
    };
    var weekdays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
    var next13th = function (date)
    {
      if (date.getDate() < 13)
        return new Date(date.getFullYear(), date.getMonth(), 13);
      else if (date.getMonth() == 11)
        return new Date(date.getFullYear() + 1, 0, 13);
      else
        return new Date(date.getFullYear(), date.getMonth() + 1, 13);
    };
    var reset = function ()
    {
      for (var i = 0; i < 7; i++)
        $('friday_' + i).update('0');
      status.update(' ');
    };
    var start = new Date(2012,0,13);
    var end = new Date(start.getFullYear() + 400, start.getMonth(), start.getDate());
    var status = $('friday_status');
 var disp = function (date)
    {
      status.update('<span style="width:110px;float:left;">' + formatDate(date) + '</span> is a ' + weekdays[date.getDay()]);
      var cell = $('friday_' + date.getDay());
      cell.update(new Number(cell.innerHTML) + 1);
    }
 var calc = function (date)
    {
      for(var i=0;i<72;i++) {
        if (date.getTime() < end.getTime())
        {
          disp(date);
          date = next13th(date);
        }
      }
      if (date.getTime() < end.getTime())
        window.setTimeout(function () { calc(date); }, 0);
    };
    $('friday_start').update(formatDate(start));
    $('friday_end').update(formatDate(end));
    $('friday_go').observe('click', function ()
    {
      reset();
      calc(start.getDate() == 13 ? start : next13th(start));
    });
    $('friday_reset').observe('click', reset);
  });
</script></p>
<p>Exciting, huh? There was only one Friday the 13th in 2011, in May, so I've been waiting months to post this.</p>
<div class="promote"><div class="tweet-button"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://erikras.com?utm_source=Twitter&utm_medium=Social&utm_campaign=Tweet%2BButton" data-via="erikras" data-count="horizontal" data-related="noraras" data-text="American in Spain: Thoughts and photos from an American living in Spain.">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook-like"><iframe src="http://www.facebook.com/plugins/like.php?href=http://erikras.com%3Futm_source%3DFacebook%26utm_medium%3DSocial%26utm_campaign%3DLike%252BButton&amp;layout=button_count&amp;show_faces=false&amp;width=250&amp;action=recommend&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:35px;" allowTransparency="true"></iframe></div><div class="google-plus-one"><g:plusone></g:plusone></div></div><span style="clear:both;">&nbsp;</span><div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2008/03/28/lottery-year-first-quarter-results/' rel='bookmark' title='Lottery Year &#8211; First Quarter Results'>Lottery Year &#8211; First Quarter Results</a></li>
<dt><a href='http://erikras.com/2010/07/16/fun-with-arithmetic/' rel='bookmark' title='Fun With Arithmetic'>Fun With Arithmetic</a></li>
<dt><a href='http://erikras.com/2011/11/09/how-fast-drive-rain-dry-rear-window/' rel='bookmark' title='How fast do you need to drive in the rain to keep your rear window dry?'>How fast do you need to drive in the rain to keep your rear window dry?</a></li>
</dl></div>]]></content:encoded>
			<wfw:commentRss>http://erikras.com/2012/01/13/friday-the-13th-calculator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How big is the Earth&#8217;s shadow on the Moon?</title>
		<link>http://erikras.com/2011/12/16/how-big-is-the-earths-shadow-on-the-moon/</link>
		<comments>http://erikras.com/2011/12/16/how-big-is-the-earths-shadow-on-the-moon/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 20:23:08 +0000</pubDate>
		<dc:creator>erik</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Musings]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[astronomy]]></category>
		<category><![CDATA[geeky]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[moon]]></category>
		<category><![CDATA[shadow]]></category>
		<category><![CDATA[trigonometry]]></category>

		<guid isPermaLink="false">http://erikras.com/?p=5835</guid>
		<description><![CDATA[When I saw yesterday&#8217;s Astronomy Picture of the Day, I was fascinated by just how big the Earth&#8217;s shadow is on the Moon. When I made a comment to this effect on Facebook, my friend, Josh Grady, said, &#8220;It&#8217;d depend on the distance between the two, no?&#8221; Of course the size of a shadow depends [...]<div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2010/01/11/drop-shadow-fail/' rel='bookmark' title='Drop Shadow Fail'>Drop Shadow Fail</a></li>
<dt><a href='http://erikras.com/2006/09/07/shadow-parts/' rel='bookmark' title='Shadow Parts'>Shadow Parts</a></li>
<dt><a href='http://erikras.com/2008/05/21/scorpion-moon/' rel='bookmark' title='Scorpion Moon'>Scorpion Moon</a></li>
</dl></div>]]></description>
			<content:encoded><![CDATA[<p><img class="post-thumb" title="Earth's Umbra" alt="Earth's Umbra" width="100" src="http://farm8.staticflickr.com/7008/6521623101_61991d8453_t.jpg" height="93"/>When I saw <a href="http://apod.nasa.gov/apod/ap111215.html">yesterday&#8217;s Astronomy Picture of the Day</a>, I was fascinated by just how big the Earth&#8217;s shadow is on the Moon. When I made a comment to this effect on Facebook, my friend, Josh Grady, said, &#8220;It&#8217;d depend on the distance between the two, no?&#8221; Of course the size of a shadow depends on the distance to the object its cast upon, but I hadn&#8217;t considered that the distance from the Earth to the Moon varies, due to its slightly elliptical orbit around the <a href="http://en.wikipedia.org/wiki/Center_of_mass#Barycenter_in_astrophysics_and_astronomy">Earth-Moon barycenter</a>, by 42,840 km, causing it to <a href="http://en.wikipedia.org/wiki/File:Lunar_perigee_apogee.png">appear 12% smaller</a> at its apogee than at its perigee. This raised the question: <strong>What are the minimum and maximum sizes of the Earth&#8217;s shadow on the Moon?</strong></p>
<p><em>To the geometrymobile!</em><br />
<span id="more-5835"></span><br />
<a href="http://apod.nasa.gov/apod/ap111215.html" title="Earth's Umbra"><img src="http://farm8.staticflickr.com/7167/6522298451_5db309b8f6.jpg" width="500" height="150" alt="Earth's Umbra"></a></p>
<p>This is the composite photo, taken by Letian Wang in Beijing, China, on December 10, 2011, that originally sparked my interest. You can see that the radius of the Earth&#8217;s shadow is slightly greater than the Moon&#8217;s diameter.</p>
<p>First of all we need to define what we mean by &#8220;shadow&#8221;.</p>
<p><a href="http://en.wikipedia.org/wiki/Umbra"><img style="border:none;" src="http://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Umbra01.svg/500px-Umbra01.svg.png" width="500" height="223" alt="Umbra"/></a></p>
<p>For the purposes of this post and subsequent calculations, we will only be dealing with the <strong>umbra</strong>, the dark bit where no direct sunlight hits the moon. We will be ignoring the indirect sunlight that is refracted through the Earth&#8217;s atmosphere during an eclipse, bathing the lunar surface in reddish hue.</p>
<p>Okay, let&#8217;s do some math!</p>
<p><img style="border:none;" src="http://farm8.staticflickr.com/7008/6521597187_972a78d1b1_o.png" width="500" height="284" alt="Earth Shadow Diagram"></p>
<p>Here we can see the relationship between the radius of the umbra to all the distances involved. Do I even have to mention that the diagram is not to scale?</p>
<p>If we draw two more lines, we get two congruent right triangles.</p>
<p><img style="border:none;" src="http://farm8.staticflickr.com/7144/6521597283_bcedfd1730_o.png" width="500" height="284" alt="Earth Shadow Diagram (with dotted lines)"></p>
<p>Since we know they are congruent, we know their sides are proportional and can write the following equation:</p>
<p><img style="border:none;margin:10px 0 10px 150px;" src="http://farm8.staticflickr.com/7164/6521794009_1613ab7040_o.gif" width="229" height="35" alt="Earth Shadow Equation"></p>
<p>…which we can solve for the radius of the umbra:</p>
<p><img style="border:none;margin:10px 0 10px 130px;" src="http://farm8.staticflickr.com/7018/6521809809_09d64a5749_o.gif" width="284" height="42" alt="Earth Moon Shadow Equation"></p>
<p>When we plug in the values for the radii of the sun and Earth, we get:</p>
<p><img style="border:none;margin:10px 0 10px 140px;" src="http://farm8.staticflickr.com/7173/6521836725_4ae010de71_o.gif" width="268" height="41" alt="Radius of the Earth's shadow on the Moon"></p>
<p>Over time, with the two elliptical orbits involved, both the numerator and the denominator of our distance ratio vary. The ratio of the distance from the Earth to the Moon (d<sub>moon</sub>) to the distance from the sun to the Earth (d<sub>earth</sub>) is at its maximum when the Moon is at its apogee and the Earth is at its perigee (we are ignoring the likelihood of these two extremes coinciding, of course).</p>
<p><img style="border:none;margin:10px 0 10px 25px;" src="http://farm8.staticflickr.com/7153/6521913651_88260be08f_o.gif" width="456" height="42" alt="Maximum orbital ratio of the moon to the earth"></p>
<p>The ratio is at its minimum when the Moon is at its perigee and the Earth is at its apogee.</p>
<p><img style="border:none;margin:10px 0 10px 30px;" src="http://farm8.staticflickr.com/7171/6521933371_6230dc49b4_o.gif" width="452" height="42" alt="Minimum orbital ratio of the moon to the earth"></p>
<p>When we plug these back into our bigger equation, we discover that <strong>the radius of the Earth&#8217;s shadow at the distance of the moon varies from 4479 km to 4735 km</strong>, or from 2.578 to 2.725 moon radii.</p>
<p>To visualize this, let&#8217;s look at the minimum and maximum shadow sizes compared to the Moon.</p>
<p><a href="http://www.flickr.com/photos/erikrasmussen/6522077767/" title="Minimum and Maximum Earth Shadows On The Moon by erikrasmussen, on Flickr"><img style="border:none;" src="http://farm8.staticflickr.com/7155/6522077767_f5e6a6637a.jpg" width="500" height="243" alt="Minimum and Maximum Earth Shadows On The Moon"></a></p>
<p>Not a very big difference, I think you&#8217;ll agree. We did, however, answer our question.</p>
<p>At least now astrophotographer and artist <a href="http://www.pixheaven.net/galerie_us.php?id=22">Laurent Laveder</a> will know the range of sizes for his hoops for his incredible lunar eclipse photography.</p>
<p><a href="http://www.pixheaven.net/photo_us.php?nom=060907_1890_labeled" title="View 'Earth's Umbra' on Flickr.com"><img title="Earth's Umbra" alt="Earth's Umbra" width="500" src="http://farm8.staticflickr.com/7029/6521622671_15240ac2b4.jpg" height="375"/></a></p>
<div class="promote"><div class="tweet-button"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://erikras.com?utm_source=Twitter&utm_medium=Social&utm_campaign=Tweet%2BButton" data-via="erikras" data-count="horizontal" data-related="noraras" data-text="American in Spain: Thoughts and photos from an American living in Spain.">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook-like"><iframe src="http://www.facebook.com/plugins/like.php?href=http://erikras.com%3Futm_source%3DFacebook%26utm_medium%3DSocial%26utm_campaign%3DLike%252BButton&amp;layout=button_count&amp;show_faces=false&amp;width=250&amp;action=recommend&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:35px;" allowTransparency="true"></iframe></div><div class="google-plus-one"><g:plusone></g:plusone></div></div><span style="clear:both;">&nbsp;</span><div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2010/01/11/drop-shadow-fail/' rel='bookmark' title='Drop Shadow Fail'>Drop Shadow Fail</a></li>
<dt><a href='http://erikras.com/2006/09/07/shadow-parts/' rel='bookmark' title='Shadow Parts'>Shadow Parts</a></li>
<dt><a href='http://erikras.com/2008/05/21/scorpion-moon/' rel='bookmark' title='Scorpion Moon'>Scorpion Moon</a></li>
</dl></div>]]></content:encoded>
			<wfw:commentRss>http://erikras.com/2011/12/16/how-big-is-the-earths-shadow-on-the-moon/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How fast do you need to drive in the rain to keep your rear window dry?</title>
		<link>http://erikras.com/2011/11/09/how-fast-drive-rain-dry-rear-window/</link>
		<comments>http://erikras.com/2011/11/09/how-fast-drive-rain-dry-rear-window/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 21:51:47 +0000</pubDate>
		<dc:creator>erik</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[driving]]></category>
		<category><![CDATA[geeky]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[rain]]></category>
		<category><![CDATA[trigonometry]]></category>

		<guid isPermaLink="false">http://erikras.com/?p=5759</guid>
		<description><![CDATA[Last week, we had quite the deluge, which coincided, unfortunately, with me having to drive 120 km. I noticed that whenever I slowed down, the rear window would get wet and hard to see out of. Once I sped up again, one wiper pass dried it off and it stayed dry until I slowed down [...]<div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2009/01/23/horizontal-rain/' rel='bookmark' title='Horizontal Rain'>Horizontal Rain</a></li>
<dt><a href='http://erikras.com/2007/02/27/overton-window/' rel='bookmark' title='Overton Window'>Overton Window</a></li>
<dt><a href='http://erikras.com/2007/06/15/bedroom-window-panorama/' rel='bookmark' title='Bedroom Window Panorama'>Bedroom Window Panorama</a></li>
</dl></div>]]></description>
			<content:encoded><![CDATA[<p><img class="post-thumb" style="border:none;" title="Car Sketch - Rear Window Angle" alt="Car Sketch - Rear Window Angle" width="100" src="http://farm7.static.flickr.com/6225/6329070629_39e331ca56_t.jpg" height="43"/>Last week, we had quite the deluge, which coincided, unfortunately, with me having to drive 120 km. I noticed that whenever I slowed down, the rear window would get wet and hard to see out of. Once I sped up again, one wiper pass dried it off and it stayed dry until I slowed down again. This is an obvious scenario for anyone who has ever driven, or anyone who thinks briefly about the physics involved: when you&#8217;re driving fast, the rain doesn&#8217;t hit your rear window. Out of the blue (or gray, in this case), my mouth spoke the words, &#8220;I wonder what&#8217;s the minimum speed I have to drive to keep the back window dry?&#8221; My wife immediately intuited that &#8220;it depends on the shape of the car&#8221;, by which she meant the angle of the rear window. This insight made the original question all the more interesting to me, because it gave me an equation to plot! Are you getting excited yet?<br />
<span id="more-5759"></span><br />
Let&#8217;s define the angle of the rear window as being the angle, going down, from horizontal, like so:</p>
<p><img style="border:none;" title="Car Sketch - Rear Window Angle" alt="Car Sketch - Rear Window Angle" width="500" src="http://farm7.static.flickr.com/6225/6329070629_39e331ca56.jpg" height="216"/></p>
<p>I did not draw this car, <a href="http://www.flickr.com/photos/aaipodpics/4054686525/">René van Belzen did</a>.</p>
<p>If we stop to think about it – and we should, as it&#8217;s good practice – two features of the plot of our &#8220;minimum speed to keep the rear window dry given the angle, Ɵ&#8221; equation can be deduced.  Firstly, when Ɵ is 90º, the minimum speed will be zero, since the rain – which we are assuming, for simplicity, is falling straight down – won&#8217;t hit it even if we are stopped. Secondly, as Ɵ approaches 0º, the minimum speed to keep the rear window dry will shoot off to infinity. Note that we shall also be ignoring near-speed-of-light Einsteinian physics, as the Newtonian model is more than sufficient for the speeds I drive. So we can picture our graph dropping down from infinity and then making its way down to the x-axis, maintaining a negative slope the entire time, until it hits 90º on the x-axis.</p>
<p>The time it takes the rain to fall the vertical height of our window is going to be the height divided by the terminal velocity of the rain. And the time it takes the car to move the horizontal length of our window is going to be the length divided by the velocity of the car. When those two times are equal, the car is traveling at the minimum velocity to keep the window dry.</p>
<p><img style="border:none;margin-left:200px;" src="http://farm7.static.flickr.com/6042/6329872456_1b21755769_o.gif" width="91" height="41" alt="Rain - Car Equation"></p>
<p>Okay, so we have our equation, but we have too many variables. We need to find a way to write <em>h</em> in terms of <em>l</em>, and we need a rain velocity.</p>
<p>Simple trigonometry tells us that the tangent of the angle in a right triangle is equal to the opposite side divided by the adjacent side, so…</p>
<p><img style="border:none;margin-left:208px" src="http://farm7.static.flickr.com/6226/6330109572_2dd0b76d94_o.gif" width="80" height="38" alt="Tangent of Theta"></p>
<p>Thus we can replace <em>h</em> in our previous equation, giving us:</p>
<p><img style="border:none;margin-left:200px;" src="http://farm7.static.flickr.com/6218/6330120306_b2549dccc0_o.gif" width="108" height="41" alt="Car Rain Equation"></p>
<p>The length cancels out, and we get our final equation:</p>
<p><img style="border:none;margin-left:205px;" src="http://farm7.static.flickr.com/6108/6329378943_1da47f9485_o.gif" width="97" height="34" alt="Car Rain Equation"></p>
<p>There are two things that I like about this. Neither the height nor length of the window really matter, just as my wife&#8217;s brain intuited instantly. The second is that <em>of course</em> the tangent operation is involved, since it zips off to infinity, yet calms down near the x-axis.  Since we need it to zip off to positive infinity near the y-axis, it must be inverted. What I love about math and physics is just how intuitive it can become. My mathematician readers were probably already thinking about the inverse tangent function when I discussed the general shape of the data, particularly given that an angle – and thus trigonometry – was involved. Let&#8217;s continue!</p>
<p>Wait, before we continue, let me go off on a bit of a tangent (oh dear, trigonometry jokes are a bad sine)&#8230; After I finished writing this post and was lying in bed trying not to think about angles and hypotenuses, it occurred to me that the tangent only has to be inverted because of my arbitrary definition of where we start measuring the angle. If we define 0º as being the vector pointing straight down, the direction the rain is falling, and measure the angle away from the movement of the car, then we get a plot that starts at 0 mph at 0º and goes up to ∞ mph at 90º, just like the <a href="http://mathworld.wolfram.com/Tangent.html">normal, unmodified tangent function</a> does! But wait, this mathematical model gets even better! What happens if you increase the angle past 90º (sort of like a spoiler)? The tangent function flips back to negative infinity and comes up to 0 mph at 180º, <strong><em>which still accurately models the speed the car would have to travel to keep the rear window dry</em></strong>, since it would have to be going very fast in reverse, and then less fast as the angle approaches the vertical 180º! This is exactly the kind of real world application of a mathematical principle that is so often lacking in our education system. Anyway, I thought that was cool. Back to our regularly scheduled post&#8230;</p>
<p>We need a velocity for the rain. What is the terminal velocity for a rain drop? I asked the internet, and <a href="http://www.shorstmeyer.com/wxfaqs/float/rdtable.html">the internet said</a> that a small drop of light stratisform rain falls at about 4.6 mph, and the largest possible drop – they can&#8217;t be bigger than 5 mm or <a href="http://news.sciencemag.org/sciencenow/2009/07/20-02.html">they break up</a> (awesome high speed video!) – from a huge thunderhead falls at up to 20 mph. We&#8217;re going for a minimum speed to guarantee a dry rear window, so we&#8217;ll use the 20 mph figure.</p>
<p>When we substitute 20 mph for our rain velocity and convert from radians to degrees, our final equation looks like this:</p>
<p><img style="border:none;margin-left:200px;" src="http://farm7.static.flickr.com/6055/6330179348_f11c2b745f_o.gif" width="107" height="45" alt="Rain Car Equation"></p>
<p>And now we&#8217;re ready to plot it! Drumroll please…</p>
<p><img style="border:none;" src="http://farm7.static.flickr.com/6226/6329501166_59f98f9588_o.jpg" width="500" height="350" alt="Minimum Driving Speed to Keep Rain Off Rear Window"></p>
<p><em>Exactly</em> what we expected, isn&#8217;t it?</p>
<h3>Examples</h3>
<p><a href="http://www.flickr.com/photos/23585397@N00/6328843257" title="View '57º Rear Window Angle' on Flickr.com"><img title="57º Rear Window Angle" alt="57º Rear Window Angle" width="500" src="http://farm7.static.flickr.com/6231/6328843257_5d7afd9b95.jpg" height="239"/></a></p>
<p>This Wolsely Hornet has a rear window angle of 57º. That means that, if it goes more than 13 mph in even the harshest thunderstorm (of absolutely vertical rain), no rain will hit its rear window. Isn&#8217;t that incredible? It seems slow to my internal physics engine.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6328843187" title="View '35º Rear Window Angle' on Flickr.com"><img title="35º Rear Window Angle" alt="35º Rear Window Angle" width="500" src="http://farm7.static.flickr.com/6217/6328843187_582a5d8095.jpg" height="231"/></a></p>
<p>This Peugeot 203 Limousine has a 35º rear window, so it will need to accelerate up to 28.5 mph in order to keep it dry. As you would expect, if you have a 45º window, the velocity you need to travel is 20 mph, exactly equal to the rain&#8217;s velocity.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6328843345" title="View '16º Rear Window Angle' on Flickr.com"><img title="16º Rear Window Angle" alt="16º Rear Window Angle" width="500" src="http://farm7.static.flickr.com/6223/6328843345_93484444d4.jpg" height="181"/></a></p>
<p>And lastly, this Porsche has a 16º rear window, and thus it will need to zip up to 70 mph to keep dry. Obviously this will be no problem for the Porsche, but you can see how the velocities are increasing very rapidly as we approach the horizontal, due to the very nature of the tangent function.</p>
<p>My curiosity is satisfactorily quenched on this topic, and I hope you learned something. Math is all around us and lets us know things about the world through mere thought and some pen and paper. Isn&#8217;t that fascinating?</p>
<div class="promote"><div class="tweet-button"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://erikras.com?utm_source=Twitter&utm_medium=Social&utm_campaign=Tweet%2BButton" data-via="erikras" data-count="horizontal" data-related="noraras" data-text="American in Spain: Thoughts and photos from an American living in Spain.">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook-like"><iframe src="http://www.facebook.com/plugins/like.php?href=http://erikras.com%3Futm_source%3DFacebook%26utm_medium%3DSocial%26utm_campaign%3DLike%252BButton&amp;layout=button_count&amp;show_faces=false&amp;width=250&amp;action=recommend&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:35px;" allowTransparency="true"></iframe></div><div class="google-plus-one"><g:plusone></g:plusone></div></div><span style="clear:both;">&nbsp;</span><div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2009/01/23/horizontal-rain/' rel='bookmark' title='Horizontal Rain'>Horizontal Rain</a></li>
<dt><a href='http://erikras.com/2007/02/27/overton-window/' rel='bookmark' title='Overton Window'>Overton Window</a></li>
<dt><a href='http://erikras.com/2007/06/15/bedroom-window-panorama/' rel='bookmark' title='Bedroom Window Panorama'>Bedroom Window Panorama</a></li>
</dl></div>]]></content:encoded>
			<wfw:commentRss>http://erikras.com/2011/11/09/how-fast-drive-rain-dry-rear-window/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Country Roads</title>
		<link>http://erikras.com/2011/10/21/country-roads/</link>
		<comments>http://erikras.com/2011/10/21/country-roads/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 16:44:21 +0000</pubDate>
		<dc:creator>erik</dc:creator>
				<category><![CDATA[Beach]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Colindres]]></category>

		<guid isPermaLink="false">http://erikras.com/?p=5661</guid>
		<description><![CDATA[My photography walk last Saturday that first went by the fishing harbor then turned inland. My camera and I admired autumn&#8217;s fanfare and the sunset&#8217;s long shadows. Some may search for the exotic with expensive holidays to Sharm el Sheikh, but with the right eye and attitude, a simple walk around the place where you [...]<div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2011/03/02/golden-gate-at-golden-hour/' rel='bookmark' title='Golden Gate At Golden Hour'>Golden Gate At Golden Hour</a></li>
<dt><a href='http://erikras.com/2008/11/25/how-not-to-renew-your-driver-license-in-your-home-country-if-you-are-an-expat/' rel='bookmark' title='How Not To Renew Your Driver License In Your Home Country If You Are An Expat'>How Not To Renew Your Driver License In Your Home Country If You Are An Expat</a></li>
</dl></div>]]></description>
			<content:encoded><![CDATA[<p><a class="post-thumb" href="http://www.flickr.com/photos/erikrasmussen/6254452284/" title="Flower at Sunset by erikrasmussen, on Flickr"><img src="http://farm7.static.flickr.com/6039/6254452284_35554648a3_t.jpg" width="100" height="67" alt="Flower at Sunset"></a>My photography walk last Saturday that first went <a href="http://erikras.com/2011/10/19/sunset-at-the-docks/">by the fishing harbor</a> then turned inland. My camera and I admired autumn&#8217;s fanfare and the sunset&#8217;s long shadows. Some may search for the exotic with expensive <a href='http://www.cheapholidays.com/sharm-el-sheikh/'>holidays to Sharm el Sheikh</a>, but with the right eye and attitude, a simple walk around the place where you live can be an exotic adventure.<br />
<span id="more-5661"></span><br />
<a href="http://www.flickr.com/photos/23585397@N00/6254374332" title="View 'Sunset in the trees' on Flickr.com"><img title="Sunset in the trees" alt="Sunset in the trees" width="500" src="http://farm7.static.flickr.com/6223/6254374332_d5d1be37c4.jpg" height="333"/></a></p>
<p>Leaves in the park.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6254380478" title="View 'Sunset in the trees' on Flickr.com"><img title="Sunset in the trees" alt="Sunset in the trees" width="500" src="http://farm7.static.flickr.com/6040/6254380478_c6b3b6c6bc.jpg" height="333"/></a></p>
<p>The solar photons with longer wavelengths add a romance to sunset photography.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6254389262" title="View 'Stoney Path' on Flickr.com"><img title="Stoney Path" alt="Stoney Path" width="500" src="http://farm7.static.flickr.com/6176/6254389262_12f343864f.jpg" height="333"/></a></p>
<p>A stone path.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6254403858" title="View 'Gate with Flowers' on Flickr.com"><img title="Gate with Flowers" alt="Gate with Flowers" width="500" src="http://farm7.static.flickr.com/6044/6254403858_e9247941ee.jpg" height="333"/></a></p>
<p>A flowery gate.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6254406406" title="View 'No Bull' on Flickr.com"><img title="No Bull" alt="No Bull" width="500" src="http://farm7.static.flickr.com/6111/6254406406_06217d1b97.jpg" height="303"/></a></p>
<p>A cow posing for a silhouette.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6254414768" title="View 'Path into Colindres' on Flickr.com"><img title="Path into Colindres" alt="Path into Colindres" width="500" src="http://farm7.static.flickr.com/6161/6254414768_a5948f95f0.jpg" height="333"/></a></p>
<p>A country path leading into the town of Colindres.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6254415738" title="View 'Flower Pot' on Flickr.com"><img title="Flower Pot" alt="Flower Pot" width="500" src="http://farm7.static.flickr.com/6159/6254415738_ac4c3309b7.jpg" height="350"/></a></p>
<p>Striped flower pot.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6253885991" title="View 'Fuchsia Flowers' on Flickr.com"><img title="Fuchsia Flowers" alt="Fucsia Flowers" width="500" src="http://farm7.static.flickr.com/6214/6253885991_5257bd8b04.jpg" height="333"/></a></p>
<p>Some gorgeously colored flowers…or are they leaves?</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6253887055" title="View 'Lit Slats' on Flickr.com"><img title="Lit Slats" alt="Lit Slats" width="500" src="http://farm7.static.flickr.com/6055/6253887055_8bc994ddcc.jpg" height="491"/></a></p>
<p>A long gate.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6253889871" title="View 'Shadow from Lit Slats' on Flickr.com"><img title="Shadow from Lit Slats" alt="Shadow from Lit Slats" width="500" src="http://farm7.static.flickr.com/6032/6253889871_31d4b5886f.jpg" height="333"/></a></p>
<p>The pattern on the ground from the gate in the previous photo.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6254426524" title="View 'Fence Pattern' on Flickr.com"><img title="Fence Pattern" alt="Fence Pattern" width="483" src="http://farm7.static.flickr.com/6222/6254426524_04b1bb9a60.jpg" height="500"/></a></p>
<p>Cinderblocks.</p>
<p><a href="http://www.flickr.com/photos/erikrasmussen/6253902725/" title="Sunset on Bark with Horse by erikrasmussen, on Flickr"><img src="http://farm7.static.flickr.com/6162/6253902725_edfe7e7df8_z.jpg" width="427" height="640" alt="Sunset on Bark with Horse"></a></p>
<p>Sunshine on tree bark, with a distant horse.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6254445912" title="View 'Three Horses' on Flickr.com"><img title="Three Horses" alt="Three Horses" width="500" src="http://farm7.static.flickr.com/6151/6254445912_00a3bc9ac1.jpg" height="333"/></a></p>
<p>Three horses.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6254452284" title="View 'Flower at Sunset' on Flickr.com"><img title="Flower at Sunset" alt="Flower at Sunset" width="500" src="http://farm7.static.flickr.com/6039/6254452284_35554648a3.jpg" height="333"/></a></p>
<p>A lone flower.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/6254455166" title="View 'Two Similar Houses (and a cow)' on Flickr.com"><img title="Two Similar Houses (and a cow)" alt="Two Similar Houses (and a cow)" width="500" src="http://farm7.static.flickr.com/6107/6254455166_d07ee5a937.jpg" height="333"/></a></p>
<p>Two old houses, one in the foreground and one in the background.</p>
<p><a href="http://www.flickr.com/photos/erikrasmussen/6254469066/" title="Colindres Church by erikrasmussen, on Flickr"><img src="http://farm7.static.flickr.com/6152/6254469066_2001202125_z.jpg" width="427" height="640" alt="Colindres Church"></a></p>
<p>Time to head back into town, past Nora&#8217;s daycare and the town church.</p>
<div class="promote"><div class="tweet-button"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://erikras.com?utm_source=Twitter&utm_medium=Social&utm_campaign=Tweet%2BButton" data-via="erikras" data-count="horizontal" data-related="noraras" data-text="American in Spain: Thoughts and photos from an American living in Spain.">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook-like"><iframe src="http://www.facebook.com/plugins/like.php?href=http://erikras.com%3Futm_source%3DFacebook%26utm_medium%3DSocial%26utm_campaign%3DLike%252BButton&amp;layout=button_count&amp;show_faces=false&amp;width=250&amp;action=recommend&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:35px;" allowTransparency="true"></iframe></div><div class="google-plus-one"><g:plusone></g:plusone></div></div><span style="clear:both;">&nbsp;</span><div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2011/03/02/golden-gate-at-golden-hour/' rel='bookmark' title='Golden Gate At Golden Hour'>Golden Gate At Golden Hour</a></li>
<dt><a href='http://erikras.com/2008/11/25/how-not-to-renew-your-driver-license-in-your-home-country-if-you-are-an-expat/' rel='bookmark' title='How Not To Renew Your Driver License In Your Home Country If You Are An Expat'>How Not To Renew Your Driver License In Your Home Country If You Are An Expat</a></li>
</dl></div>]]></content:encoded>
			<wfw:commentRss>http://erikras.com/2011/10/21/country-roads/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Photographing Positive Integers</title>
		<link>http://erikras.com/2011/02/22/photographing-positive-integers/</link>
		<comments>http://erikras.com/2011/02/22/photographing-positive-integers/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 11:44:47 +0000</pubDate>
		<dc:creator>erik</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[numbers]]></category>

		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/?p=4887</guid>
		<description><![CDATA[While they are still only fun to her as colored objects and not the mathematical concepts they represent, Nora very much enjoys playing with these foam numbers we bought for a few pennies at the local chinos. The other day I was goofing around with them as she was popping them out of their placemat-sized [...]<div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2010/07/16/fun-with-arithmetic/' rel='bookmark' title='Fun With Arithmetic'>Fun With Arithmetic</a></li>
<dt><a href='http://erikras.com/2010/06/04/bubble-photography/' rel='bookmark' title='Bubble Photography'>Bubble Photography</a></li>
<dt><a href='http://erikras.com/2008/06/07/flickr-group-list-search/' rel='bookmark' title='Flickr Group List Search'>Flickr Group List Search</a></li>
</dl></div>]]></description>
			<content:encoded><![CDATA[<p><a class="post-thumb" href="http://www.flickr.com/photos/23585397@N00/5468145076" title="View 'Five Positive Integers' on Flickr.com"><img title="Five Positive Integers" alt="Five Positive Integers" width="92" src="http://farm6.static.flickr.com/5093/5468145076_7449fd59be_t.jpg" height="100"/></a>While they are still only fun to her as colored objects and not the mathematical concepts they represent, Nora very much enjoys playing with these foam numbers we bought for a few pennies at <a href="http://erikras.com/2010/10/21/chinese-capitalism-in-spain/">the local <em>chinos</em></a>. The other day I was goofing around with them as she was popping them out of their placemat-sized sheet and handing them to me, and I noticed that they could be interlocked in sequence. It was then that I thought they might make an interesting subject for photography, so I waited until Nora&#8217;s interest moved to another toy and went to get my camera.<br />
<span id="more-4887"></span><br />
I guess you could call this <strong><em>digital</em></strong> photography, eh? Ha!</p>
<p><a href="http://www.flickr.com/photos/erikrasmussen/5468143304/" title="One Through Seven by erikrasmussen, on Flickr"><img src="http://farm6.static.flickr.com/5018/5468143304_8ddfd435f2_z.jpg" width="427" height="640" alt="One Through Seven" /></a></p>
<p>One through seven.</p>
<p><a href="http://www.flickr.com/photos/23585397@N00/5467547535" title="View 'One Through Seven' on Flickr.com"><img title="One Through Seven" alt="One Through Seven" width="500" src="http://farm6.static.flickr.com/5139/5467547535_064a92e82c.jpg" height="333"/></a></p>
<p>Another angle.</p>
<p><a href="http://www.flickr.com/photos/erikrasmussen/5467548603/" title="Five Positive Integers by erikrasmussen, on Flickr"><img src="http://farm6.static.flickr.com/5137/5467548603_4f2c862dbc_z.jpg" width="500" height="546" alt="Five Positive Integers" /></a></p>
<p>One through five, stacked.</p>
<p><a href="http://www.flickr.com/photos/erikrasmussen/5468145076/" title="Five Positive Integers by erikrasmussen, on Flickr"><img src="http://farm6.static.flickr.com/5093/5468145076_7449fd59be_z.jpg" width="500" height="546" alt="Five Positive Integers" /></a></p>
<p>This is my favorite one. I got the depth of field I wanted very well, but it&#8217;s a shame I was too careless and lazy to remove the clutter from the background.</p>
<div class="promote"><div class="tweet-button"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://erikras.com?utm_source=Twitter&utm_medium=Social&utm_campaign=Tweet%2BButton" data-via="erikras" data-count="horizontal" data-related="noraras" data-text="American in Spain: Thoughts and photos from an American living in Spain.">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook-like"><iframe src="http://www.facebook.com/plugins/like.php?href=http://erikras.com%3Futm_source%3DFacebook%26utm_medium%3DSocial%26utm_campaign%3DLike%252BButton&amp;layout=button_count&amp;show_faces=false&amp;width=250&amp;action=recommend&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:35px;" allowTransparency="true"></iframe></div><div class="google-plus-one"><g:plusone></g:plusone></div></div><span style="clear:both;">&nbsp;</span><div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2010/07/16/fun-with-arithmetic/' rel='bookmark' title='Fun With Arithmetic'>Fun With Arithmetic</a></li>
<dt><a href='http://erikras.com/2010/06/04/bubble-photography/' rel='bookmark' title='Bubble Photography'>Bubble Photography</a></li>
<dt><a href='http://erikras.com/2008/06/07/flickr-group-list-search/' rel='bookmark' title='Flickr Group List Search'>Flickr Group List Search</a></li>
</dl></div>]]></content:encoded>
			<wfw:commentRss>http://erikras.com/2011/02/22/photographing-positive-integers/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Fun With Arithmetic</title>
		<link>http://erikras.com/2010/07/16/fun-with-arithmetic/</link>
		<comments>http://erikras.com/2010/07/16/fun-with-arithmetic/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 10:13:38 +0000</pubDate>
		<dc:creator>erik</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/?p=4354</guid>
		<description><![CDATA[I&#8217;m an avid reader of Richard Wiseman&#8217;s blog, and I find his Friday Puzzles to be particularly fun. Today&#8217;s puzzle is as follows: How can you place the arithmetical signs ‘+’ and ‘-’ between the consecutive numbers 123456789 so that the end result is 100? So, for example, you could go….. 12+34+56-7-89 , but that [...]<div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2010/01/07/optimizing-picture-to-border-ratio/' rel='bookmark' title='Optimizing Picture To Border Ratio With Phi'>Optimizing Picture To Border Ratio With Phi</a></li>
<dt><a href='http://erikras.com/2006/12/04/the-shadower-realistic-drop-shadows-in-javascript/' rel='bookmark' title='The Shadower &#8211; Realistic Drop Shadows in Javascript'>The Shadower &#8211; Realistic Drop Shadows in Javascript</a></li>
<dt><a href='http://erikras.com/2008/03/25/distance-to-the-horizon/' rel='bookmark' title='Distance to the Horizon'>Distance to the Horizon</a></li>
</dl></div>]]></description>
			<content:encoded><![CDATA[<p><a class="post-thumb" href="http://www.flickr.com/photos/erikrasmussen/4798391913/" title="Solutions to Friday Puzzle by Goal Value by erikrasmussen, on Flickr"><img src="http://farm5.static.flickr.com/4075/4798391913_37885ec88e_t.jpg" width="100" height="27" alt="Solutions to Friday Puzzle by Goal Value" /></a>I&#8217;m an avid reader of <a href="http://richardwiseman.wordpress.com/">Richard Wiseman&#8217;s blog</a>, and I find his Friday Puzzles to be particularly fun. <a href="http://richardwiseman.wordpress.com/2010/07/16/its-the-friday-puzzle-68/">Today&#8217;s puzzle</a> is as follows:</p>
<blockquote><p>How can you place the arithmetical signs ‘+’ and ‘-’ between the consecutive numbers 123456789 so that the end result is 100?  So, for example, you could go…..</p>
<p>12+34+56-7-89 , but that would make 6, so that doesn’t work.</p>
<p>Try to come up with the method that uses the least number of symbols.</p></blockquote>
<p><span id="more-4354"></span><br />
My first thought was, &#8220;It would be <em>so</em> easy to write a program to try all the possibilities!&#8221; So I did. Thirty minutes and 41 lines of javascript code later, I had this:</p>
<style type="text/css">
.test-button {
text-decoration:none !important;
padding: 5px;
font-size: 1.2em;
background-color: #cfc;
color: black !important;
border:1px outset #999 !important;
}
.test-button:hover {
background-color: #9f9;
border:1px outset #999 !important;
}
.test-button:active {
border-style: inset !important;
}
.inputs-table {
border: 1px solid #ccc;
margin-left: 150px;
margin-bottom: 20px;
}
.inputs-table td, .inputs-table th {
padding: 5px;
}
.inputs-table th {
text-align:right;
}
#results {
text-align:center;
}
#results ol li {
text-align:left;
}
#calculationStatus {
text-align:center;
margin-top:15px;
}
</style>
<p><script type="text/javascript">
function test() {
	function next(slots, operations) {
		for (var i = 0; i < slots.length; i++) {
			if (!slots[i]) {
				slots[i] = operations[0];
				return slots;
			}
			else {
				var index = operations.indexOf(slots[i]);
				if(index+1<operations.length) {
					slots[i] = operations[index+1];
					return slots;
				}
				else
					delete slots[i];
			}
		}
		return null;
	}
	function makeEquation(slots) {
		equation = ['1'];
		for(var i=0;i<slots.length;i++) {
			if(slots[i])
				equation.push(' '+slots[i]+' ');
			equation.push(i+2);
		}
		return equation.join('');
	}
	var resultsList = document.getElementById('resultsList');
	if(resultsList)
		resultsList.parentNode.removeChild(resultsList);
	function printResult(equation) {
		var resultsList = document.getElementById('resultsList');
		if(!resultsList) {
			resultsList = document.createElement('ol');
			resultsList.id = 'resultsList';
			document.getElementById('results').appendChild(resultsList);
		}
		var result = document.createElement('li');
		result.appendChild(document.createTextNode(equation));
		resultsList.appendChild(result);
	}
	var operations = ['+', '-'];
      var numDigitsSelect = document.getElementById('numDigits');
	var slots = new Array(numDigitsSelect.options[numDigitsSelect.selectedIndex].value-1);
	var goalValue = document.getElementById('goalValue').value;
 var calculationStatus = document.getElementById('calculationStatus');
calculationStatus.innerHTML = 'Calculating...';
var numResults = 0;
	while(slots != null) {
		var equation = makeEquation(slots);
		if(eval(equation) == goalValue) {
numResults++;
			printResult(equation + ' = ' + goalValue);
}
		slots = next(slots, operations);
	}
calculationStatus.innerHTML = 'Found ' + numResults + ' results.'
}
</script></p>
<table class="inputs-table">
<tr>
<th>How many digits?</th>
<td>
<select id="numDigits">
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option selected="selected">9</option>
</select>
</td>
</tr>
<tr>
<th>Goal Value</th>
<td>
<input type="text" style="width:50px;text-align:right;" id="goalValue" value="100"/></td>
</tr>
</table>
<div style="text-align:center;">
<a href="javascript:test();" class="test-button">Generate Equations</a>
</div>
<div id="calculationStatus">
</div>
<div id="results"></div>
<h2>Charting Number of Solutions</h2>
<p>Once I had the code to quickly generate the solutions for any arbitrary goal value, I decided to see if there was a pattern in the number of solutions between the goal values from 1 to 100. There isn't.</p>
<p><a href="http://www.flickr.com/photos/erikrasmussen/4798391913/sizes/o/" title="Solutions to Friday Puzzle by Goal Value by erikrasmussen, on Flickr"><img src="http://farm5.static.flickr.com/4075/4798391913_37885ec88e.jpg" width="500" height="136" alt="Solutions to Friday Puzzle by Goal Value" /></a></p>
<p>Click to see large.</p>
<h2>The Code</h2>
<p>It's just a matter of changing the operation in each slot between nothing, + and -, and when you roll back to nothing, you increment the next slot. Javascript's built in eval() function came in very handy to calculate the value of each equation.</p>
<pre class="prettyprint code">function test() {
  function next(slots, operations) {
    for (var i = 0; i &lt; slots.length; i++) {
      if (!slots[i]) {
        slots[i] = operations[0];
        return slots;
      }
      else {
        var index = operations.indexOf(slots[i]);
        if (index + 1 &lt; operations.length) {
          slots[i] = operations[index + 1];
          return slots;
        }
        else
          delete slots[i];
      }
    }
    return null;
  }
  function makeEquation(slots) {
    equation = ['1'];
    for (var i = 0; i &lt; slots.length; i++) {
      if (slots[i])
        equation.push(' ' + slots[i] + ' ');
      equation.push(i + 2);
    }
    return equation.join('');
  }
  var resultsList = document.getElementById('resultsList');
  if (resultsList)
    resultsList.remove();
  var operations = ['+', '-'];
  var slots = new Array(document.getElementById('numDigits').value - 1);
  var goalValue = document.getElementById('goalValue').value;
  while (slots != null) {
    var equation = makeEquation(slots);
    if (eval(equation) == goalValue)
      printResult(equation + ' = ' + goalValue);
    slots = next(slots, operations);
  }
}</pre>
<p></script></p>
<div class="promote"><div class="tweet-button"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://erikras.com?utm_source=Twitter&utm_medium=Social&utm_campaign=Tweet%2BButton" data-via="erikras" data-count="horizontal" data-related="noraras" data-text="American in Spain: Thoughts and photos from an American living in Spain.">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook-like"><iframe src="http://www.facebook.com/plugins/like.php?href=http://erikras.com%3Futm_source%3DFacebook%26utm_medium%3DSocial%26utm_campaign%3DLike%252BButton&amp;layout=button_count&amp;show_faces=false&amp;width=250&amp;action=recommend&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:35px;" allowTransparency="true"></iframe></div><div class="google-plus-one"><g:plusone></g:plusone></div></div><span style="clear:both;">&nbsp;</span><div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2010/01/07/optimizing-picture-to-border-ratio/' rel='bookmark' title='Optimizing Picture To Border Ratio With Phi'>Optimizing Picture To Border Ratio With Phi</a></li>
<dt><a href='http://erikras.com/2006/12/04/the-shadower-realistic-drop-shadows-in-javascript/' rel='bookmark' title='The Shadower &#8211; Realistic Drop Shadows in Javascript'>The Shadower &#8211; Realistic Drop Shadows in Javascript</a></li>
<dt><a href='http://erikras.com/2008/03/25/distance-to-the-horizon/' rel='bookmark' title='Distance to the Horizon'>Distance to the Horizon</a></li>
</dl></div>]]></content:encoded>
			<wfw:commentRss>http://erikras.com/2010/07/16/fun-with-arithmetic/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Optimizing Picture To Border Ratio With Phi</title>
		<link>http://erikras.com/2010/01/07/optimizing-picture-to-border-ratio/</link>
		<comments>http://erikras.com/2010/01/07/optimizing-picture-to-border-ratio/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 19:59:36 +0000</pubDate>
		<dc:creator>erik</dc:creator>
				<category><![CDATA[Art]]></category>
		<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/?p=3641</guid>
		<description><![CDATA[The other day I was looking at a framed photo in my house and wondering how the area of the border around the picture (called a mat board in the framing industry) compared to the area of the picture itself. Immediately I remembered the master of all aesthetic ratios, the golden ratio, Phi! 1.61803398874989&#8230; I [...]<div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2008/03/25/distance-to-the-horizon/' rel='bookmark' title='Distance to the Horizon'>Distance to the Horizon</a></li>
</dl></div>]]></description>
			<content:encoded><![CDATA[<p><a class="post-thumb" href="http://www.flickr.com/photos/erikrasmussen/4254123232/" title="Frame Geometry Diagram by erikrasmussen, on Flickr"><img src="http://farm5.static.flickr.com/4049/4254123232_eec618941b_t.jpg" style="border:none;" width="100" height="59" alt="Frame Geometry Diagram" /></a>The other day I was looking at a framed photo in my house and wondering how the area of the border around the picture (called a mat board in the framing industry) compared to the area of the picture itself.  Immediately I remembered the master of all aesthetic ratios, the golden ratio, Phi! 1.61803398874989&#8230; I thought, &#8220;I bet if the ratio of the area of the picture to the border was Phi, it would look good!&#8221; So I set off on an algebraic quest to find the answer&#8230;<br />
<span id="more-3641"></span><br />
The geometry is simple enough. You&#8217;ve got whatever the length and width of your picture is, plus a border around it with a width of x/2.</p>
<p><img style="border:none;" src="http://farm5.static.flickr.com/4049/4254123232_8764dbe503_o.jpg" width="500" height="297" alt="Frame Geometry Diagram" /></p>
<p>If we write down the equation for the ratio of the picture area to the border area (the full frame size &#8211; the picture&#8217;s area), we get this:</p>
<div style="text-align:center;"><img style="border:none;" src="http://farm3.static.flickr.com/2773/4253356937_d1f4dc3c5d_o.gif" width="344" height="44" alt="Ratio Equation" /></div>
<p>If we set our ratio to Phi and solve the equation, using the quadratic formula, we get that our doubled border width, x, is:</p>
<div style="text-align:center;"><img style="border:none;" src="http://farm3.static.flickr.com/2715/4254122982_605cf2f0bf_o.gif" width="228" height="54" alt="Border Equation" /></div>
<p>What does this give us? Now, for any length and width of picture, we can calculate how wide to make the border around it such that the ratio of the area of the picture to the area of the border is Phi&#8230;or any number for that matter!</p>
<h2>Picture Border Ratio Calculator</h2>
<p>Using the calculator below, if you input the length and width of your picture, and the area ratio (picture / border), it will tell you how large to make your border. And below the calculator is a rendering of the values you enter.  Note that the default values in the calculator are for a <a href="http://en.wikipedia.org/wiki/Golden_rectangle">golden rectangle</a> and an area ratio of Phi. Looks pretty nice, doesn&#8217;t it? Go ahead, try out other picture sizes!</p>
<style type="text/css">
#picInputs {
margin-left:auto;
margin-right:auto;
margin-bottom:15px;
width:450px;
padding:10px;
}
#picInputs table {
margin-left:auto;
margin-right:auto;
}
#picInputs th {
text-align:right;
}
#picInputs input {
margin-left:10px;
width:120px;
text-align:right;
}
#picLoadImage {
background-color: #ccc;
border: 1px outset #333;
cursor: pointer;
padding:5px;
}
#picLoadImage:hover {
background-color: #eee;
}
#picLoadImage:active {
border: 1px inset #333;
}
</style>
<div id="picInputs">
<table>
<tr>
<th>Picture Length</th>
<td>
<input id="picLength" type="text"/></td>
</tr>
<tr>
<th>Picture Width</th>
<td>
<input id="picWidth" type="text"/></td>
</tr>
<tr>
<th>Area Ratio</th>
<td>
<input id="picRatio" type="text"/></td>
</tr>
<tr>
<th>Border Width</th>
<td>
<input id="picBorder" type="text"/></td>
</tr>
</table>
<div style="text-align:center;margin-top:5px;margin-bottom:5px;">Or you can use an image from the internet!</div>
<table style="width:415px;">
<tr>
<th>Image URL</th>
<td>
<input id="picUrl" type="text" style="text-align:left;width:250px;"/></td>
<td><span id="picLoadImage">Use Image</span></td>
</tr>
</table>
</div>
<div style="width:505px;height:505px;">
<div id="picFrame" style="border:1px solid #000;background-color:#fff;position:relative;">
<div id="picPicture" style="background-color:#ccc;position:absolute;">&nbsp;</div>
</div>
</div>
<p><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"></script><br />
<script type="text/javascript">
document.observe('dom:loaded', function()
{
	var phi = 1.61803398874989;
	var max = 503;
	var elements =
	{
		length: $('picLength'),
		width: $('picWidth'),
		ratio: $('picRatio'),
		border: $('picBorder'),
		frame: $('picFrame'),
		picture: $('picPicture'),
		url: $('picUrl'),
		loadImage: $('picLoadImage')
	};
	elements.length.value = 161;
	elements.width.value = 100;
	elements.ratio.value = phi;
	var f = function(l, w, r)
	{
		return (Math.sqrt(((l + w) * (l + w)) + (4 * l * w) / r) - l - w) / 2;
	};
	var getVal = function(name)
	{
		var v = elements[name].value;
		if (!v)
			throw name + ' is required';
		if (isNaN(v))
			throw name + ' is not a number';
		if (v > 0)
			return new Number(v);
		else
			throw name + ' must be greater than zero';
	};
	var calculate = function(event, img)
	{
		try
		{
			var l = getVal('length');
			var w = getVal('width');
			var r = getVal('ratio');
			var x = f(l, w, r);
			elements.border.value = x / 2;
			var landscape = l > w;
			var frameL = landscape ? max : max / (w + x) * (l + x);
			var frameW = landscape ? max / (l + x) * (w + x) : max;
			var actualX = x / (l+x) * frameL;
			Element.setStyle(elements.frame, {
				width:Math.round(frameL) + 'px',
				height:Math.round(frameW) + 'px'});
			Element.setStyle(elements.picture, {
				width:Math.round(frameL - actualX) + 'px',
				height:Math.round(frameW - actualX) + 'px',
				left:Math.round(actualX/2) + 'px',
				top:Math.round(actualX/2) + 'px'});
			elements.picture.innerHTML = '';
			if(img)
			{
				img.width = Math.round(frameL - actualX);
				img.height = Math.round(frameW - actualX);
				Element.setStyle(img, {
					width: Math.round(frameL - actualX) + 'px',
					height: Math.round(frameW - actualX) + 'px',
					padding: 0,
					border:'none' });
				elements.picture.appendChild(img);
			}
		}
		catch(e)
		{
			elements.border.value = 'ERROR: ' + e;
		}
	};
	elements.length.observe('keyup', calculate);
	elements.width.observe('keyup', calculate);
	elements.ratio.observe('keyup', calculate);
	calculate();
	elements.loadImage.observe('click', function()
	{
		var img = new Image();
		img.observe('load', function()
		{
			elements.length.value = img.width;
			elements.width.value = img.height;
			calculate(null, img);
			elements.loadImage.innerHTML = 'Use Image';
		});
		elements.loadImage.innerHTML = 'Loading...';
		img.src = elements.url.value;
	});
});
</script></p>
<div class="promote"><div class="tweet-button"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://erikras.com?utm_source=Twitter&utm_medium=Social&utm_campaign=Tweet%2BButton" data-via="erikras" data-count="horizontal" data-related="noraras" data-text="American in Spain: Thoughts and photos from an American living in Spain.">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook-like"><iframe src="http://www.facebook.com/plugins/like.php?href=http://erikras.com%3Futm_source%3DFacebook%26utm_medium%3DSocial%26utm_campaign%3DLike%252BButton&amp;layout=button_count&amp;show_faces=false&amp;width=250&amp;action=recommend&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:35px;" allowTransparency="true"></iframe></div><div class="google-plus-one"><g:plusone></g:plusone></div></div><span style="clear:both;">&nbsp;</span><div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2008/03/25/distance-to-the-horizon/' rel='bookmark' title='Distance to the Horizon'>Distance to the Horizon</a></li>
</dl></div>]]></content:encoded>
			<wfw:commentRss>http://erikras.com/2010/01/07/optimizing-picture-to-border-ratio/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Can Sarah Palin really see Russia from her house?</title>
		<link>http://erikras.com/2008/09/25/can-sarah-palin-really-see-russia-from-her-house/</link>
		<comments>http://erikras.com/2008/09/25/can-sarah-palin-really-see-russia-from-her-house/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 08:32:26 +0000</pubDate>
		<dc:creator>erik</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[USA]]></category>

		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/?p=940</guid>
		<description><![CDATA[Any intelligent person knows that Sarah Palin was joking when she said that she could see Russia from her house. It&#8217;s pure hyperbole. But everyone in the media keeps repeating it over and over, and I&#8217;m certain that some people probably actually believe it to be true. I bet that even the people that understand [...]<div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2008/09/15/palin-rhymes/' rel='bookmark' title='Palin Rhymes'>Palin Rhymes</a></li>
<dt><a href='http://erikras.com/2008/09/18/mccain-palin-morph/' rel='bookmark' title='McCain Palin Morph'>McCain Palin Morph</a></li>
</dl></div>]]></description>
			<content:encoded><![CDATA[<p><a class="post-thumb erpic" title="Alaska Governor's Mansion, by jamieroush" href="http://www.flickr.com/photos/jamieroush/129291198/"><img src="http://farm1.static.flickr.com/55/129291198_a0d0873b59_t.jpg" width="100" height="75"/></a>Any intelligent person knows that Sarah Palin was joking when she said that she could see Russia from her house.  It&#8217;s pure hyperbole.  But everyone in the media keeps repeating it over and over, and I&#8217;m certain that some people probably actually believe it to be true.  I bet that even the people that understand the hyperbole probably don&#8217;t realize just how <em>much</em> of an exaggeration it really is.  So I decided to use my <a href="http://erikras.com/2008/03/25/distance-to-the-horizon/">Distance To Horizon Calculator</a> to see just how tall Governor Palin&#8217;s house would have to be in order to see the Russian coast.<br />
<span id="more-940"></span><br />
First we need to measure how far it is from Sarah Palin&#8217;s house to the Russian coast.  To do this, I have used the <a href="http://www.daftlogic.com/projects-google-maps-distance-calculator.htm">Google Maps Distance Calculator</a>.  Since Mrs. Palin has two houses, we&#8217;ll start with the closest one first.</p>
<h3>Wasilla</h3>
<p><a class="erpic" title="Distance from Wasilla, Alaska, to Russia by erikrasmussen, on Flickr" href="http://www.flickr.com/photos/erikrasmussen/2885104182/"><img alt="Distance from Wasilla, Alaska, to Russia" src="http://farm4.static.flickr.com/3054/2885104182_52b43ebd59.jpg" width="500" height="299"/></a>
<p class="caption">
Wasilla, Alaska, is 1130 km from Russia.
</p>
<p>How high above the Earth&#8217;s surface do you have to be to see a point 1130 km away along the Earth&#8217;s surface?  If we start plugging numbers into my <a href="http://erikras.com/2008/03/25/distance-to-the-horizon/">Distance To Horizon Calculator</a>, we see that the answer is <strong>101425.88 meters</strong>.  You have to go 101 km (<em><a href="http://www.google.com/search?q=101425.88+meters+in+miles">63 miles</a>!</em>) above Wasilla before you can see Russia.  You can knock 104 meters off of that if you like to account for Wasilla&#8217;s elevation above sea level.</p>
<p><a class="erpic" style="float:right;" href="http://en.wikipedia.org/wiki/Image:Atmosphere_layers-en.svg"><img style="height:240px;width:32px;" src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f9/Atmosphere_layers-en.svg/102px-Atmosphere_layers-en.svg.png" width="102" height="600"/></a>Just how high is 101 km?  <a href="http://en.wikipedia.org/wiki/Image:Atmosphere_layers-en.svg">This graphic</a> from Wikipedia puts it in perspective very well.</p>
<p>0.381 km – The top of the Empire State Building<br />
8.848 km – The top of Mount Everest<br />
10.668 km – Jet airliner cruising altitude<br />
100 km – The <a href="http://en.wikipedia.org/wiki/K%C3%A1rm%C3%A1n_line">Kármán Line</a> that marks the border of &#8220;outer space&#8221;<br />
101 km – Sarah Palin&#8217;s house<br />
185 km &#8211; Space Shuttle operation</p>
<p>So an astronaut in the Space Shuttle passing directly over Wasilla could definitely see Russia as well, but no one down in the atmosphere that allows aeronautical flight could.<br />
<h3>Juneau</h3>
<p><a class="erpic" title="Distance from Juneau, Alaska, to Russia by erikrasmussen, on Flickr" href="http://www.flickr.com/photos/erikrasmussen/2885622788/"><img alt="Distance from Juneau, Alaska, to Russia" src="http://farm4.static.flickr.com/3083/2885622788_13fe0efa71.jpg" width="500" height="299"/></a>
<p class="caption">
Juneau, Alaska, is 2011 km from Russia.
</p>
<p>To see Russia from Juneau, you&#8217;d have to go up 330,715.1 meters.  That&#8217;s almost the 350 km altitude of the International Space Station.</p>
<p>My point is that, by necessity of both map folding and general human cognitive orientation, we all generally reason about the ground we live on as if it were two dimensional.  When discussing line of sight, however, the curvature of the Earth comes into play even at very short distances.  The millions of US voters that &#8220;sort of know that Alaska is up there to the &#8216;left&#8217; of Canada&#8221; might actually believe that Palin waves goodnight to the Russians across the water every night.  If you know someone like that, send them to this web page.
<p class="footnote">
Disclaimer: these calculations have disregarded topography and the curvature of space-time, both of which would have a negligible effect.</p>
<div class="promote"><div class="tweet-button"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://erikras.com?utm_source=Twitter&utm_medium=Social&utm_campaign=Tweet%2BButton" data-via="erikras" data-count="horizontal" data-related="noraras" data-text="American in Spain: Thoughts and photos from an American living in Spain.">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook-like"><iframe src="http://www.facebook.com/plugins/like.php?href=http://erikras.com%3Futm_source%3DFacebook%26utm_medium%3DSocial%26utm_campaign%3DLike%252BButton&amp;layout=button_count&amp;show_faces=false&amp;width=250&amp;action=recommend&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:35px;" allowTransparency="true"></iframe></div><div class="google-plus-one"><g:plusone></g:plusone></div></div><span style="clear:both;">&nbsp;</span><div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2008/09/15/palin-rhymes/' rel='bookmark' title='Palin Rhymes'>Palin Rhymes</a></li>
<dt><a href='http://erikras.com/2008/09/18/mccain-palin-morph/' rel='bookmark' title='McCain Palin Morph'>McCain Palin Morph</a></li>
</dl></div>]]></content:encoded>
			<wfw:commentRss>http://erikras.com/2008/09/25/can-sarah-palin-really-see-russia-from-her-house/feed/</wfw:commentRss>
		<slash:comments>84</slash:comments>
		</item>
		<item>
		<title>My Favorite Flower</title>
		<link>http://erikras.com/2008/06/19/my-favorite-flower/</link>
		<comments>http://erikras.com/2008/06/19/my-favorite-flower/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 10:20:09 +0000</pubDate>
		<dc:creator>erik</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[Religion]]></category>

		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/?p=645</guid>
		<description><![CDATA[The flowers of Passiflora edulis are gorgeous. I particularly like the Fibonacci numbers of stamens, three of one kind, and five of another. Fibonacci numbers are, of course, related to the Golden Ratio, which is pretty much the mathematical definition of beauty. At this time of year, these passion flowers are blooming vigorously here. Later, [...]<div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2007/06/20/into-a-cactus-flower/' rel='bookmark' title='Into a Cactus Flower'>Into a Cactus Flower</a></li>
<dt><a href='http://erikras.com/2006/11/25/origami-flower/' rel='bookmark' title='Origami Flower'>Origami Flower</a></li>
<dt><a href='http://erikras.com/2007/05/14/first-flower/' rel='bookmark' title='First Flower'>First Flower</a></li>
</dl></div>]]></description>
			<content:encoded><![CDATA[<p><a class="post-thumb tt-flickr-Thumbnail erpic" href="http://www.flickr.com/photos/erikrasmussen/2590409878/"><img alt="Passionfruit Flower" src="http://farm4.static.flickr.com/3238/2590409878_b9635cfb84_t.jpg" border="0" width="100" height="71"/></a>The flowers of <a href="http://en.wikipedia.org/wiki/Passiflora_edulis"><i>Passiflora edulis</i></a> are gorgeous.  I particularly like the <a href="http://en.wikipedia.org/wiki/Fibonacci_number">Fibonacci numbers</a> of <a href="http://en.wikipedia.org/wiki/Stamen">stamens</a>, three of one kind, and five of another.  Fibonacci numbers are, of course, <a href="http://en.wikipedia.org/wiki/Fibonacci_number#Relation_to_the_Golden_Ratio">related</a> to the <a href="http://en.wikipedia.org/wiki/Golden_Ratio">Golden Ratio</a>, which is pretty much the mathematical definition of beauty.</p>
<p>At this time of year, these passion flowers are blooming vigorously here.  Later, they will turn into passion fruit.<span id="more-645"></span><a class="tt-flickr-Medium erpic" href="http://www.flickr.com/photos/erikrasmussen/2590402726/"><img alt="Passion fruit Flower" src="http://farm4.static.flickr.com/3125/2590402726_a75378fc96.jpg" border="0" width="472" height="500"/></a>
<p class="caption"/><a class="tt-flickr-Medium erpic" href="http://www.flickr.com/photos/erikrasmussen/2590409878/"><img alt="Passion fruit Flower" src="http://farm4.static.flickr.com/3238/2590409878_b9635cfb84.jpg" border="0" width="500" height="354"/></a>
<p class="caption"/>
<p>The name of the fruit <a href="http://en.wikipedia.org/wiki/Passion_flower#The_name">comes from</a> Christians seeing something so beautiful and being unable to appreciate it without relating it to Jesus somehow.  I have to wonder if their interpretation of this flower had anything to do with the word stigmata referring to both the pollen receptors on a flower and the crucifixion wounds.  From what I can tell the word comes from the ancient Greek word for <em>tattoo</em>!  Go figure&#8230;</p>
<p class="footnote">
Thanks to sgazzetti for <a href="http://erikras.com/2007/08/02/walking-with-a-camera/#comment-955">helping me</a> identify this flower last year.</p>
<div class="promote"><div class="tweet-button"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://erikras.com?utm_source=Twitter&utm_medium=Social&utm_campaign=Tweet%2BButton" data-via="erikras" data-count="horizontal" data-related="noraras" data-text="American in Spain: Thoughts and photos from an American living in Spain.">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook-like"><iframe src="http://www.facebook.com/plugins/like.php?href=http://erikras.com%3Futm_source%3DFacebook%26utm_medium%3DSocial%26utm_campaign%3DLike%252BButton&amp;layout=button_count&amp;show_faces=false&amp;width=250&amp;action=recommend&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:35px;" allowTransparency="true"></iframe></div><div class="google-plus-one"><g:plusone></g:plusone></div></div><span style="clear:both;">&nbsp;</span><div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2007/06/20/into-a-cactus-flower/' rel='bookmark' title='Into a Cactus Flower'>Into a Cactus Flower</a></li>
<dt><a href='http://erikras.com/2006/11/25/origami-flower/' rel='bookmark' title='Origami Flower'>Origami Flower</a></li>
<dt><a href='http://erikras.com/2007/05/14/first-flower/' rel='bookmark' title='First Flower'>First Flower</a></li>
</dl></div>]]></content:encoded>
			<wfw:commentRss>http://erikras.com/2008/06/19/my-favorite-flower/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Too much Phun</title>
		<link>http://erikras.com/2008/05/18/too-much-phun/</link>
		<comments>http://erikras.com/2008/05/18/too-much-phun/#comments</comments>
		<pubDate>Sun, 18 May 2008 11:09:44 +0000</pubDate>
		<dc:creator>erik</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://www.erik-rasmussen.com/blog/?p=616</guid>
		<description><![CDATA[It might not be possible to have too much fun, but it&#8217;s definitely possible to have to much Phun. Phun is a &#8220;2D physics sandbox&#8221;. What that means is that it allows you to draw shapes (circles, squares, or arbitrary freehand shapes) and then lets you bang them together using simulated physics laws. Check out [...]<div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2008/04/22/dizzying-night-sky/' rel='bookmark' title='Dizzying Night Sky'>Dizzying Night Sky</a></li>
<dt><a href='http://erikras.com/2008/03/30/arcturus-rising/' rel='bookmark' title='Arcturus Rising'>Arcturus Rising</a></li>
</dl></div>]]></description>
			<content:encoded><![CDATA[<p><a class="post-thumb erpic" href="http://frame.revver.com/frame/170x128/871717.jpg"><img alt="Choppy Seas" src="http://frame.revver.com/frame/170x128/871717.jpg" width="170" height="128"/></a>It might not be possible to have too much fun, but it&#8217;s definitely possible to have to much Phun.  <a href="http://phun.cs.umu.se/wiki">Phun</a> is a &#8220;2D physics sandbox&#8221;.  What that means is that it allows you to draw shapes (circles, squares, or arbitrary freehand shapes) and then lets you bang them together using simulated physics laws.  Check out the video at the link above for a demonstration.</p>
<p>Phun is exactly the kind of computer &#8220;game&#8221; that my brain adores.  I used to play hours and hours of <a href="http://en.wikipedia.org/wiki/The_Incredible_Machine">The Incredible Machine</a>, which is a very similar concept.  For me, at least, Phun is <em>seriously</em> addictive.  It&#8217;s like crack for Newtonian physics lovers.<br />
<span id="more-616"></span><br />
The windows version has been out for a while, but they just released the Mac version about week ago, and I&#8217;ve been like a kitten in a tub full of catnip ever since.</p>
<p>Oh, and it also lets you play with particles that mimic liquid water.  Here are two of the more interesting creations I&#8217;ve made.  The first video had to be sped up a lot because my computer couldn&#8217;t render all those water particles very fast.  For the second video, I added some sound effects.  It&#8217;d be cool if Phun did sounds by itself.</p>
<p><!-- wp-revver: http://www.erik-rasmussen.com/blog/2006/10/24/revver-wordpress-plugin/ --><br />
The above video is also available on <a href="http://www.youtube.com/watch?v=_jyYsnb5lk4">YouTube</a>, <a href="http://video.yahoo.com/watch/2631581/7726734">Yahoo</a>, <a href="http://www.metacafe.com/watch/1301412/">Metacafe</a>, <a href="http://video.google.com/videoplay?docid=-3257915345065121585">Google</a>, <a href="http://one.revver.com/watch/871717">Revver</a>, <a href="http://www.dailymotion.com/video/x5cj7w">DailyMotion</a>, <a href="http://www.blip.tv/file/888176">Blip.tv</a>, <a href="http://www.veoh.com/videos/v9121121npMjAHB5">Veoh</a>, <a href="http://www.crackle.com/#id=2275452">Crackle</a>, <a href="http://www.stupidvideos.com/video/just_plain_stupid/Choppy_Seas_in_Phunland/">Stupid Videos</a>, <a href="http://sclipo.com/video/choppy-seas-in-phunland">Sclipo</a> and <a href="http://www.viddler.com/explore/rasman1978/videos/13/">Viddler</a>.</p>
<p><!-- wp-revver: http://www.erik-rasmussen.com/blog/2006/10/24/revver-wordpress-plugin/ --><br />
The above video is also available on <a href="http://www.youtube.com/watch?v=Yg_RnBQte9I">YouTube</a>, <a href="http://www.metacafe.com/watch/1319962/">Metacafe</a>, <a href="http://video.google.com/videoplay?docid=66673400368422102">Google</a>, <a href="http://one.revver.com/watch/891354">Revver</a>, <a href="http://www.dailymotion.com/video/x5g0io">DailyMotion</a>, <a href="http://www.blip.tv/file/912501">Blip.tv</a>, <a href="http://www.crackle.com/#id=2284338">Crackle</a>, <a href="http://www.stupidvideos.com/video/just_plain_stupid/Phun_Splasher/">Stupid Videos</a>, <a href="http://sclipo.com/video/phun-splasher">Sclipo</a> and <a href="http://www.viddler.com/explore/rasman1978/videos/14/">Viddler</a>.</p>
<p>And, of course, there are thousands more videos like this on <a href="http://youtube.com/results?search_query=phun">you know what site</a>.</p>
<div class="promote"><div class="tweet-button"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://erikras.com?utm_source=Twitter&utm_medium=Social&utm_campaign=Tweet%2BButton" data-via="erikras" data-count="horizontal" data-related="noraras" data-text="American in Spain: Thoughts and photos from an American living in Spain.">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook-like"><iframe src="http://www.facebook.com/plugins/like.php?href=http://erikras.com%3Futm_source%3DFacebook%26utm_medium%3DSocial%26utm_campaign%3DLike%252BButton&amp;layout=button_count&amp;show_faces=false&amp;width=250&amp;action=recommend&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:35px;" allowTransparency="true"></iframe></div><div class="google-plus-one"><g:plusone></g:plusone></div></div><span style="clear:both;">&nbsp;</span><div class="related-posts"><h4>Related Posts</h4><dl>
<dt><a href='http://erikras.com/2008/04/22/dizzying-night-sky/' rel='bookmark' title='Dizzying Night Sky'>Dizzying Night Sky</a></li>
<dt><a href='http://erikras.com/2008/03/30/arcturus-rising/' rel='bookmark' title='Arcturus Rising'>Arcturus Rising</a></li>
</dl></div>]]></content:encoded>
			<wfw:commentRss>http://erikras.com/2008/05/18/too-much-phun/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

