<?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>PianoWow &#187; Math</title>
	<atom:link href="http://pianowow.net/category/math/feed/" rel="self" type="application/rss+xml" />
	<link>http://pianowow.net</link>
	<description></description>
	<lastBuildDate>Tue, 12 Jul 2011 13:59:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pianowow.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/77138101530ade91bf6e740a014e488b?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>PianoWow &#187; Math</title>
		<link>http://pianowow.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pianowow.net/osd.xml" title="PianoWow" />
	<atom:link rel='hub' href='http://pianowow.net/?pushpress=hub'/>
		<item>
		<title>Project Euler</title>
		<link>http://pianowow.net/2008/12/19/project-euler/</link>
		<comments>http://pianowow.net/2008/12/19/project-euler/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 04:00:49 +0000</pubDate>
		<dc:creator>pianowow</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://pianowow.net/?p=174</guid>
		<description><![CDATA[The first rule of Project Euler is you don&#8217;t talk about Project Euler.  Ha, ha! just kidding. I haven&#8217;t been blogging much lately.  My apologies.  I&#8217;ve found a great new hobby, which has occupied most of my time.  I&#8217;ve been solving problems on Project Euler.  Here is a link to my profile there.  Tonight, I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pianowow.net&amp;blog=3115159&amp;post=174&amp;subd=pianowow&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The first rule of Project Euler is you don&#8217;t talk about Project Euler.  Ha, ha! just kidding.</p>
<p>I haven&#8217;t been blogging much lately.  My apologies.  I&#8217;ve found a great new hobby, which has occupied most of my time.  I&#8217;ve been solving <a href="http://projecteuler.net/index.php?section=problems">problems</a> on <a href="http://projecteuler.net/">Project Euler</a>.  Here is a link to my <a href="http://projecteuler.net/index.php?section=profile&amp;profile=pianowow">profile</a> there.  Tonight, I just solved my 106th problem, of 222.</p>
<blockquote><p>&#8220;Project Euler exists to encourage, challenge, and develop the skills and enjoyment of anyone with an interest in the fascinating world of mathematics.&#8221;</p></blockquote>
<p>These problems are very interesting and seem tailor-made to someone of my interests.  My major in college was computer science, with a concentration in mathematics.  Actually for Project Euler, a major in math and some comp sci work would probably serve a would-be solver somewhat better.</p>
<p>Most of the problems require some type of computer program.  You&#8217;re usually searching for a number with a peculiar property, or adding a bunch of numbers with a similar property.  Many involve prime numbers, which can really stretch a programmer&#8217;s technique.  Some are quite unique.  One asks you to evaluate a bunch of poker hands played by two players, asking how many times the first player wins.  Another asks you to programmatically solve a bunch of sudoku puzzles.  One even asks which squares on the monopoly board game are the most popular, statistically.</p>
<p>A new problem has been posted every week since I joined.  I hope they keep this up.  I could be solving these problems for quite a while.  My progress was very quick (several solutions per day) at the beginning.  A couple of weeks ago I had slowed to one solution per day.  Now I have to think about a problem for a day or two before a good solution occurs to me.  I have quite a few I&#8217;m thinking about now.</p>
<p>What makes the site so great is that the problems build upon each other.  Knowing how to solve an earlier problem will help solve a later problem.  Efficiency is king, so if your solution takes a few seconds, perhaps the forum for the problem will have a faster algorithm.  This is where the real learning takes place. Some times I&#8217;ll wait a few seconds, or even a few minutes for my program to run, only to find that a technique I hadn&#8217;t considered gets the answer in a few milliseconds.</p>
<p>Last week I was proud to have solved my 100th problem, which is somewhat of an achievement.  Of <a href="http://projecteuler.net/index.php?section=statistics">all the users</a> that have signed up at project euler, I&#8217;m within the <a href="http://projecteuler.net/index.php?section=scores">top 3%</a>.  My preferred language is python.  Which is good, because while it is one of the most popular languages on Project Euler, it is also one of the most successful.  Soon I&#8217;ll write a blog entry about how much I love python.  I just started learning it a few weeks before I started Project Euler.</p>
<p>Users are allowed to submit problem suggestions.  I just sent my first one.  I hope it will be approved, but I understand the approval process is quite long.</p>
<br />Posted in Computer, Math, Website  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pianowow.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pianowow.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pianowow.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pianowow.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pianowow.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pianowow.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pianowow.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pianowow.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pianowow.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pianowow.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pianowow.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pianowow.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pianowow.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pianowow.wordpress.com/174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pianowow.net&amp;blog=3115159&amp;post=174&amp;subd=pianowow&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pianowow.net/2008/12/19/project-euler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae331403845901d9e5a506d8334ecc5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pianowow</media:title>
		</media:content>
	</item>
		<item>
		<title>The Girl Called Polly Nomial</title>
		<link>http://pianowow.net/2008/06/06/the-girl-called-polly-nomial/</link>
		<comments>http://pianowow.net/2008/06/06/the-girl-called-polly-nomial/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 14:35:19 +0000</pubDate>
		<dc:creator>pianowow</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://pianowow.wordpress.com/?p=125</guid>
		<description><![CDATA[This is too funny not to share, originally written and posted here, on Math Art. Here’s a sad story of a girl called Polly Nomial Once upon a time (1/t) pretty little Polly Nomial was strolling across a field of vectors when she came to the boundary of a singularly large matrix. Now Polly was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pianowow.net&amp;blog=3115159&amp;post=125&amp;subd=pianowow&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is too funny not to share, originally written and posted <a href="http://math-art.net/2008/05/19/the-girl-called-polly-nomial/">here</a>, on Math Art.</p>
<blockquote><p>Here’s a sad story of a girl called Polly Nomial</p>
<p class="MsoNormal">Once upon a time (1/t) pretty little Polly Nomial was strolling across a field of vectors when she came to the boundary of a singularly large matrix. Now Polly was convergent, and her mother had made it an absolute condition that she must never enter such an array without her brackets on. Polly, however, who had changed her variables that morning and was feeling particularly badly behaved, ignored this condition on the basis that it was insufficient and made her way in amongst the complex elements. Rows and columns closed in on her from all sides. Tangents approached her surface. She became tensor and tensor.</p>
<p class="MsoNormal">Quite suddendly two branches of a hyperbola touched her at a single point. She oscillated violently,  lost all sense of directrix, and went completely divergent. As she tripped over a square root that was  protruding from the erf and plunged headlong down a steep gradient. When she rounded off once more, she found herself inverted, apparently alone, in a non-Euclidean space.</p>
<p class="MsoNormal">She was being watched, however. That smooth operator, Curly Pi, was lurking inner product. As his eyes devoured her curvilinear coordinates, a singular expression crossed his face. He wondered, “Was she still convergent?” He decided to integrate properly at once. Hearing a common fraction behind her, Polly rotated and saw Curly Pi approaching with his power series extrapolated. She could see at once by his degenerate conic and dissipative that he was bent on no good.</p>
<p class="MsoNormal">“Arcsinh,” she gasped.</p>
<p class="MsoNormal">“Ho, ho,” he said, “What a symmetric little asymptote you have I can see you angles have lots of secs.”</p>
<p class="MsoNormal">“Oh sir,” she protested,  “keep away from me I haven’t got my brackets on.”</p>
<p class="MsoNormal">“Calm yourself, my dear,” said our suave operator, “your fears are purely imaginary.”</p>
<p class="MsoNormal">“I, I,” she thought, “perhaps he’s not normal but homologous.”</p>
<p class="MsoNormal">“What order are you?” the brute demanded.</p>
<p class="MsoNormal">“Seventeen,” replied Polly.</p>
<p class="MsoNormal">Curly leered “I suppose you’ve never been operated on.”</p>
<p class="MsoNormal">“Of course not,” Polly replied quite properly, “I’m absolutely convergent.”</p>
<p class="MsoNormal">“Come, come,” said Curly, “let’s off to a decimal place I know and I’ll take you to the limit.”</p>
<p class="MsoNormal">“Never,” gasped Polly.</p>
<p class="MsoNormal">“Abscissa,” he swore, using the vilest oath he knew.</p>
<p class="MsoNormal">His patience was gone. Coshing her over the coefficient with a log until she was powerless, Curly removed her discontinuities. He stared at her significant places, and began smoothing out her points of inflection. Poor Polly. The algorithmic method was now her only hope. She felt his digits tending to her asymptotic limit. Her convergence would soon be gone forever.</p>
<p class="MsoNormal">There was no mercy, for Curly was a heavyside operator. Curly’s radius squared itself; Polly’s loci quivered. He integrated by parts. He integrated by partial fractions. After he cofactored, he performed runge &#8211; kutta on her. The complex beast even went all the way around and did a contour integration. What an indignity &#8211; to be multiply connected on her first integration. Curly went on operating until he completely satisfied her hypothesis, then he exponentiated and became completely orthogonal.</p>
<p class="MsoNormal">When Polly got home that night, her mother noticed that she was no longer piecewise continuous, but had been truncated in several places But it was to late to differentiate now. As the months went by, Polly’s denominator increased monotonically. Finally she went to L’Hopital and generated a small but pathological function which left surds all over the place and drove Polly to deviation.</p>
<p class="MsoNormal">The moral of our sad story is this: “If you want to keep your expressions convergent, never allow them a single degree of freedom.&#8221;</p>
</blockquote>
<p class="MsoNormal">So true!  I laughed so hard at this.  The innuendo, the mathematical accuracy, the genius, the humanity!  I&#8217;ll never look at a polynomial the same way again.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pianowow.wordpress.com/125/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pianowow.wordpress.com/125/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pianowow.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pianowow.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pianowow.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pianowow.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pianowow.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pianowow.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pianowow.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pianowow.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pianowow.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pianowow.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pianowow.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pianowow.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pianowow.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pianowow.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pianowow.net&amp;blog=3115159&amp;post=125&amp;subd=pianowow&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pianowow.net/2008/06/06/the-girl-called-polly-nomial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae331403845901d9e5a506d8334ecc5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pianowow</media:title>
		</media:content>
	</item>
		<item>
		<title>Simulation</title>
		<link>http://pianowow.net/2008/05/25/simulation/</link>
		<comments>http://pianowow.net/2008/05/25/simulation/#comments</comments>
		<pubDate>Sun, 25 May 2008 18:02:11 +0000</pubDate>
		<dc:creator>pianowow</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Video Games]]></category>

		<guid isPermaLink="false">http://pianowow.wordpress.com/?p=116</guid>
		<description><![CDATA[Note: I cannot take full credit for this short story. I read it about a year ago on some web page and forgot where it was. I&#8217;m attempting to reproduce the story here, from memory. It&#8217;s the year 2118, and I walk to work like any other day. The computer simulation research facility at the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pianowow.net&amp;blog=3115159&amp;post=116&amp;subd=pianowow&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em>Note:  I cannot take full credit for this short story.  I read it about a year ago on some web page and forgot where it was.  I&#8217;m attempting to reproduce the story here, from memory.</em></p>
<p>It&#8217;s the year 2118, and I walk to work like any other day.  The computer simulation research facility at the university is an interesting place to work.  Mostly, we try to show what would happen in experiments that are too expensive otherwise.  The computer systems have learned to simulate reality to such a high degree of accuracy that the value of real-world experimentation has diminished greatly.</p>
<p>I had taken Friday off, so first on my agenda was to discover what had been done while I was absent.</p>
<p>&#8220;Hey Jim,&#8221;  Barbara said.</p>
<p>&#8220;Hello,&#8221;  I replied.</p>
<p>&#8220;You&#8217;re going to want to look at this.&#8221;</p>
<p>&#8220;What&#8217;s up?&#8221;  I ask.</p>
<p>&#8220;Well, we were thinking about the 20th century research of physicists such as Stephen Hawking about what happened in the first moments of the Big Bang.  We did some digging, and there is actually enough data and math out there on the subject to start the simulation.  We spent the majority of Friday collecting the data and setting up the sim.&#8221;</p>
<p>&#8220;Okay&#8230; what happened?&#8221;</p>
<p>&#8220;Take a look.&#8221;</p>
<p>The computer displayed what appeared to be clusters of galaxies, and zooming in, individual stars within the galaxies.  &#8220;How long has the sim been running?&#8221;</p>
<p>&#8220;Oh, we&#8217;ve been here all weekend.  As you know, time is a variable here, so we advanced the clock about 8 billion years, and you have this.  5 billion years later, check out what happens.&#8221;  She started to advance the clock and individual stars began to form planetary satellites.  &#8220;Out of curiosity, we cataloged the stars with 8 planets, and came up with a surprisingly short list&#8230; only 350 million or so.  Of these, maybe 10 million or so had planets with masses similar to our own solar system.  And after some more digging, we found this planet.&#8221;</p>
<p>A blue-green globe appeared that looked shockingly familiar.  &#8220;Is that&#8230;?&#8221; I asked, taking a closer look.</p>
<p>&#8220;It gets better.  I zoomed in further, and the continental shelfs appeared very similar to our own.  We&#8217;d have to get some geologists in here to date it, but we figured we could just advance the clock until we began to recognize our own planet more and more.  It turns out it wasn&#8217;t as hard as you think.  Civilization really changes a planet.&#8221;</p>
<p>&#8220;You&#8217;re not saying you can see us, I mean, humans, can you?&#8221;</p>
<p>&#8220;Yes.&#8221;  Giggling, she advanced the clock further.  The clock was now using the Gregorian calendar, today&#8217;s date, only an hour or so ago.</p>
<p>I saw myself taking a shower.  &#8220;What is this, some kind of joke?&#8221;</p>
<p>&#8220;Sorry, but no, It&#8217;s not a joke.  In fact, we&#8217;ve discovered we can&#8217;t advance the clock past the current time.  Let me show you.&#8221;  She changed view and pushed the clock as far as it could go.  There was an image of the two of us, huddling over the computer monitor.</p>
<p>I jumped around, looking for the camera.</p>
<p>&#8220;There&#8217;s no camera.  We can change the angle, if you want proof.&#8221;  She rotated the view again, and the angle of the view of ourselves changed back and forth, so we could see ourselves from all angles.</p>
<p>Looking around, I saw no movement in the room.  Nothing was recording us.  I was dumbfounded, because  there I was, looking at the computer.  &#8220;How is this possible?&#8221;  I finally managed to blurt out.</p>
<p>&#8220;We&#8217;re not sure.  But it gives rise to some really interesting questions,&#8221; she said mysteriously.</p>
<p>&#8220;I&#8217;ll say.  Turn it off&#8230; this is starting to freak me out.&#8221;</p>
<p>&#8220;I&#8217;m not sure we want to do that, actually.&#8221;</p>
<p>&#8220;Why not?&#8221;</p>
<p>&#8220;Well, think about it.  In this simulation is a simulation of us, looking at another simulation of us, and so on, ad infinitum.&#8221;  She explained.</p>
<p>&#8220;Right, the chain of simulations continues on forever.&#8221;</p>
<p>&#8220;Exactly.  Now ask yourself, what is the probability that we are at the top of this chain of infinite simulations, and we are the real people and everyone below us is the simulation.&#8221;</p>
<p>&#8220;Huh? But you built this simulation yourself.&#8221;</p>
<p>&#8220;Well, I might be a simulation of the real me, in another universe above us.  There is no way to tell.  The fact that we can&#8217;t advance the date beyond the current time seems to indicate something.  If we turn this computer off, we destroy the simulations, the universes below us. And if we&#8217;re just a simulation, we do it because the universes above us will also turn their computer off, destroying us, and everything we know.  So we can&#8217;t ethically shut down the simulation.&#8221;</p>
<p>&#8220;Yeah&#8230; I agree.  Don&#8217;t turn it off.&#8221;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pianowow.wordpress.com/116/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pianowow.wordpress.com/116/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pianowow.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pianowow.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pianowow.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pianowow.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pianowow.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pianowow.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pianowow.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pianowow.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pianowow.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pianowow.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pianowow.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pianowow.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pianowow.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pianowow.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pianowow.net&amp;blog=3115159&amp;post=116&amp;subd=pianowow&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pianowow.net/2008/05/25/simulation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae331403845901d9e5a506d8334ecc5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pianowow</media:title>
		</media:content>
	</item>
		<item>
		<title>Fun Internet Math</title>
		<link>http://pianowow.net/2007/10/09/fun-internet-math/</link>
		<comments>http://pianowow.net/2007/10/09/fun-internet-math/#comments</comments>
		<pubDate>Tue, 09 Oct 2007 18:37:00 +0000</pubDate>
		<dc:creator>pianowow</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://pianowow.wordpress.com/2007/10/09/fun-internet-math/</guid>
		<description><![CDATA[I was downloading a file at work today, and observed an interesting phenomenon. The file was located on my home computer, and my ISP has a throttle on my upload bandwidth. However, this throttle is changed throughout the length of the upload. For the first minute (or however long), an extra burst of speed is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pianowow.net&amp;blog=3115159&amp;post=81&amp;subd=pianowow&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was downloading a file at work today, and observed an interesting phenomenon. The file was located on my home computer, and my ISP has a throttle on my upload bandwidth. However, this throttle is changed throughout the length of the upload. For the first minute (or however long), an extra burst of speed is allowed, but then the standard upload rate is used for the rest of the upload.</p>
<p>I noticed that this severely crippled Internet Explorer&#8217;s estimation algorithm for the length of the download, which works in a very specific way, and was thrown off given the circumstances of the download as described above. It would give a very fast estimated time to completion, then gradually go up as it realizes the rest of the download will not go as fast as the beginning. At some point, the download time will start to give a more realistic estimate, and will start to count down almost as if the download speed had been constant the whole time.</p>
<p>So I came up with an interesting set of math problems: some basic, some not so basic. I&#8217;ll present the answers to each question after I state the problems.</p>
<p>A download of a 50MB (51200KB) file starts at a constant 120KB/S transfer rate for the first minute. After this, it continues at 40KB/S for the duration of the download.</p>
<p>1) Calculate the time needed to complete the download.</p>
<p>A program computes the estimated time remaining for the completion of the download by taking the average past download speed (total amount downloaded divided so far by total time taken so far) and projecting this speed forward, to the end of the download.</p>
<p>2) Give the value of the estimation after 1 minute.</p>
<p>3) Give the value of the estimation after 5 minutes.</p>
<p>4) Give the value of the estimation after 10 minutes.</p>
<p>5) Give a function f(t) whose input is the number of seconds from the start of the download and whose output is the value of the estimation algorithm, described above.</p>
<p>6) Give the maximum value for this estimation throughout the length of the download.</p>
<p>7) How much time into the download is the estimation clock running backward exactly half as slow as real time?</p>
<p>Answers:</p>
<p>1) The answer to the first few questions are easy, and require only simple arithmetic. After the first minute, 60*120 = 7200 KB will have been downloaded, leaving 44000 KB left. At 40KB/s, the rest of the file will take 1100 seconds, for a total of 1160 seconds, or 18 minutes, 20 seconds.</p>
<p>2) After 1 minute, 7200 KB will have downloaded in 60 seconds, giving 120KB/S. Projecting 120KB/s forward gives 44000/120 = 367 seconds or 6 minutes, 7 seconds.</p>
<p>3) After 5 minutes: 1*60*120 + 4*60*40 = 16800 KB in 300 seconds, or 56 KB/s. Projecting forward gives 34400/56 = about 614 seconds or 10 minutes and 14 seconds.</p>
<p>4) After 10 minutes, 1*60*120 + 9*60*40 = 28800 KB in 600 seconds, or 48 KB/s. Projecting this forward gives 22400/48 = about 467 seconds or 7 minutes, 47 seconds.</p>
<p>You can see from the values here that the estimated time grows after the first minute, and begins to decline again at some point before the tenth minute.</p>
<p>5) The formula will need to be piecewise. The time, in general, is the amount not downloaded divided by the average speed. f(t) for t &#62; 60, it is (51200-(120*60+40*(t-60))/((120*60+40*(t-60))/t). This last formula is the interesting one, and simplifies to 1280*t/(120 + t)-t.</p>
<p>6) local mins and maxes are where the derrivative equals zero. The derrivative of the formula where t &gt; 60 is 153600/(t^2 + 240*t + 14400) &#8211; 1. This is zero when t is approximately 272, or 4 minutes and 32 seconds. The value of the estimation function at this point is about 616, or 10 minutes, 16 seconds.</p>
<p>It is interesting that over the course of the 18 minutes and 20 seconds taken to complete the download that the value of the estimation function never goes above 10 minutes and 16 seconds.</p>
<p>7) The question is asking, in other words, &#8220;what is the value of the function where its derrivative is -.5?&#8221; So we have -.5 = 153600/(t^2 + 240*t + 14400)-1&#8230; or t^2 + 240t + 14400 = 307200. Solving for t we get approximately 434 seconds, or 7 minutes, 14 seconds. The estimation at this time is roughly 569 seconds, or 9 minutes, 29 seconds. So basically, two seconds later (436), it will say there is 9 minutes and 28 seconds to left&#8230; running backwards half as fast as real time.</p>
<p>Math is so much fun. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pianowow.wordpress.com/81/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pianowow.wordpress.com/81/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pianowow.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pianowow.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pianowow.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pianowow.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pianowow.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pianowow.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pianowow.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pianowow.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pianowow.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pianowow.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pianowow.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pianowow.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pianowow.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pianowow.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pianowow.net&amp;blog=3115159&amp;post=81&amp;subd=pianowow&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pianowow.net/2007/10/09/fun-internet-math/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae331403845901d9e5a506d8334ecc5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pianowow</media:title>
		</media:content>
	</item>
	</channel>
</rss>
