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

<channel>
	<title>&#62;&#62; RIGHTSHIFT</title>
	<atom:link href="http://rightshift.info/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://rightshift.info</link>
	<description>Bionic Raptors ate this taglir:...</description>
	<pubDate>Mon, 09 Aug 2010 03:50:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The Illegal Prime</title>
		<link>http://rightshift.info/?p=463</link>
		<comments>http://rightshift.info/?p=463#comments</comments>
		<pubDate>Mon, 09 Aug 2010 00:22:36 +0000</pubDate>
		<dc:creator>Karthik</dc:creator>
		
		<category><![CDATA[Karthik's]]></category>

		<category><![CDATA[bash]]></category>

		<category><![CDATA[dmca]]></category>

		<category><![CDATA[primes]]></category>

		<category><![CDATA[regexes]]></category>

		<category><![CDATA[unix]]></category>

		<category><![CDATA[web resources]]></category>

		<guid isPermaLink="false">http://rightshift.info/?p=463</guid>
		<description><![CDATA[Hello, reader. An offering, for your perusal:

It&#8217;s unbelievable today, but there was a time when the government classed crypto as a munition and made it illegal for anyone to export or use it on national security grounds. Get that? We used to have illegal math in this country.
The National Security Agency were the real movers [...]]]></description>
			<content:encoded><![CDATA[<p>Hello, reader. An offering, for your perusal:</p>
<blockquote>
<p>It&#8217;s unbelievable today, but there was a time when the government classed crypto as a munition and made it illegal for anyone to export or use it on national security grounds. Get that? We used to have illegal <em>math</em> in this country.</p>
<p>The National Security Agency were the real movers behind the ban. They had a crypto standard that they said was strong enough for bankers and their customers to use, but not so strong that the mafia would be able to keep its books secret from them. The standard, DES-56, was said to be practically unbreakable. Then one of EFF&#8217;s millionaire co-founders built a $250,000 DES-56 cracker that could break the cipher in two hours. </p>
<p>Still the NSA argued that it should be able to keep American citizens from possessing secrets it couldn&#8217;t pry into. Then EFF dealt its death-blow. In 1995, they represented a Berkeley mathematics grad student called Dan Bernstein in court. Bernstein had written a crypto tutorial that contained computer code that could be used to make a cipher stronger than DES-56. Millions of times stronger. As far as the NSA was concerned, that made his article into a weapon, and therefore unpublishable.</p>
<p>Well, it may be hard to get a judge to understand crypto and what it means, but it turned out that the average Appeals Court judge isn&#8217;t real enthusiastic about telling grad students what kind of articles they&#8217;re allowed to write. The crypto wars ended with a victory for the good guys when the 9th Circuit Appellate Division Court ruled that code was a form of expression protected under the First Amendment &#8212; &#8220;Congress shall make no law abridging the freedom of speech.&#8221; If you&#8217;ve ever bought something on the Internet, or sent a secret message, or checked your bank-balance, you used crypto that EFF legalized. Good thing, too: the NSA just isn&#8217;t that smart. Anything they know how to crack, you can be sure that terrorists and mobsters can get around too.
</p>
</blockquote>
<p>From the amazing (and edifying!) <a href="http://craphound.com/littlebrother/download/" title="Who watches the... you know"><em>Little Brother</em></a>, by Cory Doctorow. But no, this little burst of text isn&#8217;t about this (scary) modern day dystopian novel, or the EFF, or crypto, or security. It&#8217;s about a 1401 digit prime number that showed up in my feeds, via <a href="http://www.everything2.com">Everything2</a>, a mystery in a puzzle in a mystery. It&#8217;s about Unix, and about peeling back layers. This prime number is illegal. I&#8217;m going to paste it anyway, then tell you why:</p>
<pre><code>48565078965739782930984189469428613770744208735135792401965207366869<br/>85134010472374469687974399261175109737777010274475280490588313840375<br/>49709987909653955227011712157025974666993240226834596619606034851742<br/>49773584685188556745702571254749996482194184655710084119086259716947<br/>97079915200486670997592359606132072597379799361886063169144735883002<br/>45336972781813914797955513399949394882899846917836100182597890103160<br/>19618350343448956870538452085380458424156548248893338047475871128339<br/>59896852232544608408971119771276941207958624405471613210050064598201<br/>76961771809478113622002723448272249323259547234688002927776497906148<br/>12984042834572014634896854716908235473783566197218622496943162271666<br/>39390554302415647329248552489912257394665486271404821171381243882177<br/>17602984125524464744505583462814488335631902725319590439283873764073<br/>91689125792405501562088978716337599910788708490815909754801928576845<br/>19885963053238234905580920329996032344711407760198471635311617130785<br/>76084862236370283570104961259568184678596533310077017991614674472549<br/>27283348691600064758591746278121269007351830924153010630289329566584<br/>36620008004767789679843820907976198594936463093805863367214696959750<br/>27968771205724996666980561453382074120315933770309949152746918356593<br/>76210222006812679827344576093802030447912277498091795593838712100058<br/>87666892584487004707725524970604446521271304043211826101035911864766<br/>62963858495087448497373476861420880529443</code></pre>
<p>What is it for? </p>
<p>When written in base 16 (hexadecimal), this 1401 digit prime number found by Phil Carmody forms a gzip file of the C-source code that decrypts the DVD Movie encryption scheme (DeCSS). This prime number is illegal in every country that the DMCA applies.</p>
<p>Wow. </p>
<p>If you&#8217;re like me, you&#8217;re firing up a terminal right now to unfurl the layers one after another, driven by burning curiosity to see what the seed contains. If you&#8217;re not&#8230; well, aren&#8217;t you a little curious? Of course your are. </p>
<p>Let&#8217;s get on a Unix shell and start peeling.</p>
<hr />
<h3><strong> Getting the number </strong></h3>
<p>If you select all of the digits in the number above using your mouse, you&#8217;ll pull in a lot of newline (and/or carriage return) characters, even if you try copying the HTML source. If you&#8217;re going to deal with HTML source anyway, let&#8217;s make this easy on ourselves.</p>
<p>I read about it on Everything2, and you can use <a href="http://everything2.com/title/Illegal+prime+number" title="The ill eagle prime">this URL</a> to access the number from there, or you could use the <a href="http://rightshift.info/?p=463">URL to this page</a> itself.</p>
<p>Now we pull down the HTML so we can easily parse the number:</p>
<pre><code>$ curl -s http://rightshift.info/?p=463
</code></pre>
<p>That should spew out the HTML containing this number. If &#8216;curl&#8217; is not your thing, try wget to save to a file, or use the browser itself, and replace the above by &#8216;cat your filename&#8217;.</p>
<p>Next, let&#8217;s find this block of text. It&#8217;s preformatted with either a &lt;blockquote&gt; or &lt;pre&gt; tag, so we use that in a regular expression. There may be more than one preformatted section in the page, so we use a dirty hack in the pattern matching: Let&#8217;s put in the first few digits of the number in the pattern so the other blockquotes don&#8217;t match.</p>
<pre><code>$ curl -s http://rightshift.info/?p=463 | awk '/(&lt;pre&gt;|&lt;blockquote&gt;).*4856.+(&lt;\/pre&gt;|&lt;\/blockquote&gt;)/ {print}'
</code></pre>
<p>We could have used <strong>grep</strong> instead of <strong>awk</strong>, but we&#8217;ll get to that in a moment. If the command works, you should see the illegal prime on screen with a bunch of &lt;br&gt; and other tags mixed in. Let&#8217;s get rid of those, shall we?</p>
<pre><code>$ curl -s http://rightshift.info/?p=463 | awk '/(&lt;pre&gt;|&lt;blockquote&gt;).*4856.+(&lt;\/pre&gt;|&lt;\/blockquote&gt;)/ {gsub(/[^[:digit:]]/,""); print}'
</code></pre>
<p>The gsub performs a global substitution on any character that is not a digit , <strong>/[^[:digit:]]/</strong>. This should print just the number on the screen. Things will get very unwieldy soon, so we&#8217;ll store this number (actually a string) into a variable. In Bash, the only way to do this is: </p>
<pre><code>$ prime=$(curl -s http://rightshift.info/?p=463 | awk '/(&lt;pre&gt;|&lt;blockquote&gt;).*4856.+(&lt;\/pre&gt;|&lt;\/blockquote&gt;)/ \
{gsub(/[^[:digit:]]/,""); print}')
</code></pre>
<p>Note the &#8216;\&#8217; followed by a newline, splitting the command onto two lines. If you were typing this, you don&#8217;t need to include either.</p>
<hr />
<h3><strong> Converting it to hex </strong></h3>
<p>To see $prime in hex, we use <strong>bc</strong>, the handy command line calculator:</p>
<pre><code>$ echo "obase=16; $prime" | bc
</code></pre>
<p>This should print out the number in Hex. Here are the first few bytes:</p>
<pre><code>1F8B0808196C9A3A00036373732D6465736372616D626C652E6300ED56CD8E9B3010\
BEF314F412E140241B304B95984B1F618F164859205D2B4BB64AA65B56BB79F70EE1\
2736F1A1552F6DB51...
</code></pre>
<p>Oops. <strong>bc</strong> considered it appropriate to put end of line markers, <code>\</code> splitting the text across multiple lines. Let&#8217;s get rid of them, using <strong>tr</strong>, the text replacement utility:</p>
<pre><code>$ echo "obase=16; $prime" | bc | tr -d '\\\n'
</code></pre>
<p>There are three \&#8217;s in the text we&#8217;re deleting because one of them&#8217;s part of &#8216;\n&#8217;, one of them is a literal backslash that&#8217;s escaped by the shell, and the third one&#8217;s there to keep the second one from being escaped. Phew.</p>
<p>As a check, here&#8217;s what the <a href="http://www.gzip.org/zlib/rfc-gzip.html#member-format" title="RFC HELL">gzip specification</a> says about the header to any gzip file:</p>
<blockquote>
<p>The first two bytes have the fixed values ID1 = 31 (0&#215;1f, 037), ID2 = 139 (0&#215;8b, 213), to identify the file as being in gzip format. </p>
</blockquote>
<p>1F8B, indeed. We&#8217;re almost there.</p>
<hr />
<h3><strong> Dumping it into a binary file </strong></h3>
<p>The above stream can&#8217;t be unzipped! This sure bewildered for a few minutes. I suppose this is what happens when your mental model of the computer&#8217;s storage structure is as badly broken as mine.</p>
<p>Of course it can&#8217;t be unzipped. It&#8217;s an ascii stream of hex characters; still an ascii stream! We need to dump the above hex code into a binary file.</p>
<p>How do we do that? Sure, you can write some code in C to do it. (Scan as hex and use putchar().)<br />
But you know what they say about Unix: If you need to do it, it&#8217;s been done. Hmm. Let&#8217;s search for a bit:</p>
<pre><code>$ apropos --and hex dump
hd (1)               - ASCII, decimal, hexadecimal, octal dump
hexdump (1)          - ASCII, decimal, hexadecimal, octal dump
xxd (1)              - make a hexdump or do the reverse.
</code></pre>
<p>Slowly I realize how true this adage is. Enter <strong>xxd</strong>. Some thinking reveals that we need to do a reverse hex dump. A hex dump is where the contents of a binary file are printed out as a stream of ascii-encoded hex characters, we&#8217;re trying to do the opposite. After reading the man page, we construct the reverse hex dump:</p>
<pre><code>$ echo "obase=16; $prime" | bc | tr -d '\\\n' | xxd -r -p
</code></pre>
<p>If all goes well, we shoud see a stream of unprintable characters (no, not that type) desperately trying to print themselves on the screen.</p>
<hr />
<h3><strong> On to the source </strong></h3>
<p>The rest is trivial. We have the gzipped stream pouring through &#8216;<strong>xxd</strong>&#8216;, so let&#8217;s redirect that:</p>
<pre><code>$ echo "obase=16; $prime" | bc | tr -d '\\\n' | xxd -r -p | zcat
</code></pre>
<p>And that&#8217;s it. If &#8216;<strong>zcat</strong>&#8216; doesn&#8217;t work, for some reason, try &#8216;<strong>gunzip -c</strong>&#8216;.</p>
<p>The illegal source code hidden in the illegal prime should be floating on your screen now.</p>
<p>What, you thought I&#8217;d put it here? <strong><em>It&#8217;s illegal.</em></strong></p>
<p>Probably more illegal than printing the number, anyway. If you skipped to the end hoping to glance at the code, here&#8217;s an unreadable composite command for you, instead. (Again, note the line breaking &#8216;\&#8217; after <strong>awk</strong>&#8217;s first argument, added to keep this webpage from breaking.) Hide your eyes, they who fear line noise:</p>
<pre><code>$ curl -s http://rightshift.info/?p=463 | awk '/(&lt;pre&gt;|&lt;blockquote&gt;).*4856.*(&lt;\/pre&gt;|&lt;\/blockquote&gt;)/ \
{gsub(/[^[:digit:]]/,""); print "obase=16;" $0}' | bc | tr -d '\\\n' | xxd -r -p | zcat
</code></pre>
<p>Or, you know, you could just read the code on Wikipedia. I didn&#8217;t. I don&#8217;t know anything about crypto, but I expected a certain kind of joy in deciphering this simple code, something I could actually hope to do. I wasn&#8217;t disappointed.</p>
<h3><strong> The wormhole </strong></h3>
<p>Now, the DMCA isn&#8217;t at odds with the opening excerpt: It&#8217;s all right to write code that does absolutely anything, and it may be all right to distribute it, but it&#8217;s illegal (by the DMCA) to use it to break copy-protection measures.</p>
<p>Except for one little thing, though. There is still illegal math. </p>
<p>A request, then: Someone explain that C source to me!</p>
<hr />
<p><sup>Further reading:</p>
<ul>
<li>
<p><a href="http://craphound.com/littlebrother/download/" title="Who watches the... you know">Little Brother</a>, as described by Cory Doctorow: &#8220;This book is meant to be part of the conversation about what an information society means: does it mean total control, or unheard-of liberty? It&#8217;s not just a noun, it&#8217;s a verb, it&#8217;s something you do.&#8221;<br />
This book is licensed under Creative Commons, and is free to download. It&#8217;s also a cracker of a novel.</p>
</li>
<li>
<p><a href="http://www.regular-expressions.info/tutorial.html" title="Reg[^]Exes">Regular expressions</a> are awesome. I cannot stress this enough. If you want to see a whimsical but fantastic use of regexes, <a href="http://rxfl.wordpress.com/2008/11/15/regex-prime/" title="Regex Pr1m3">try this</a>.</p>
</li>
<li>
<p>Phil Carmody&#8217;s <a href="http://primes.utm.edu/bios/page.php?id=239" title="Prime Titanic">Titanic Primes</a>. See for yourself.</p>
</li>
<li>
<p>The <a href="http://www.gzip.org/zlib/rfc-gzip.html" title="gzp">gzip specification</a>: Just to see what goes into making a standard. Why did they pick 1F8B as the gzip header, for instance?</p>
</li>
<li>
<p>The Unix utilities <a href="http://www.gnu.org/software/gawk/manual/gawk.html"><strong>awk</strong></a>, <a href="http://www.gnu.org/software/bc/manual/html_mono/bc.html"><strong>bc</strong></a>, <strong>tr</strong> and <a href="http://curl.haxx.se/docs/manual.html" title="c you are ell"><strong>curl</strong></a>. The entire <a href="http://www.gnu.org/software/coreutils/manual/coreutils.html" title="utCOiREls">GNU coreutils</a> pack is awesome, more functionality than you can ever need in a terse, powerful set of commands.</p>
</li>
<li>
<p><a href="http://stackoverflow.com/questions/795027/code-golf-hex-to-raw-binary-conversion" title="\0x68\0x65\0x78">Hex Dump Code Golf</a>, a game played by the Stack Overflow community where the objective is to write a reverse hex dump in the language of your choice in the fewest chars possible. Perl won.</sup></p>
</li>
</ul>
<p><!--In July 2010, the DMCA added a [bunch of exemptions][dmca-wiki] to its rules. Apparently, circumvention of DVD copy-protection for educational uses by college and university professors and media studies students" is now allowed.--></p>
]]></content:encoded>
			<wfw:commentRss>http://rightshift.info/?feed=rss2&amp;p=463</wfw:commentRss>
		</item>
		<item>
		<title>Woodworm Metamorphosis - A &#8220;Coming of Age&#8221; Story</title>
		<link>http://rightshift.info/?p=438</link>
		<comments>http://rightshift.info/?p=438#comments</comments>
		<pubDate>Sat, 01 May 2010 07:43:12 +0000</pubDate>
		<dc:creator>Traums</dc:creator>
		
		<category><![CDATA[Dileep's]]></category>

		<category><![CDATA[biology]]></category>

		<category><![CDATA[evolution]]></category>

		<category><![CDATA[genetics]]></category>

		<category><![CDATA[insects]]></category>

		<category><![CDATA[metamorphosis]]></category>

		<category><![CDATA[pets]]></category>

		<category><![CDATA[photography]]></category>

		<category><![CDATA[worms]]></category>

		<guid isPermaLink="false">http://rightshift.info/?p=438</guid>
		<description><![CDATA[GROSS-ALERT: THE FOLLOWING ARTICLE CONTAINS IMAGES AND VIDEOS CONSIDERED TOO GROSS FOR YOUNG AND SENSITIVE VIEWERS. DISCRETION ADVISED. 
So my parents bought a new cot made of a variety of jungle hardwood that has proven notoriously difficult to identify. A few months into the purchase, strange periodic noises emanating from within the cot began to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>GROSS-ALERT: THE FOLLOWING ARTICLE CONTAINS IMAGES AND VIDEOS CONSIDERED TOO GROSS FOR YOUNG AND SENSITIVE VIEWERS. DISCRETION ADVISED. </strong></p>
<p>So my parents bought a new cot made of a variety of jungle hardwood that has proven notoriously difficult to identify. A few months into the purchase, strange periodic noises emanating from within the cot began to torment their sleeping hours. It sounded like tiny creatures constantly scrapping away at the woodwork from within. No puncture marks could be detected on the cot surfaces. After a couple of months of tolerance testing, we called in the local carpenter for a check-up. He theorised that the invaders were a wood-boring species that most likely are restricted to the easily accessible soft-outer/younger parts of the wood in the cot&#8217;s central beam. So the bed was overturned and he began hacking away at it. 12 minutes later, we came away with a dozen of these.</p>
<p><a href="http://www.youtube.com/watch?v=DhNgbjYmiqs">watch?v=DhNgbjYmiqs</a></p>
<p>I managed to capture about 3 live worms and stash them in a plastic container. It was time for the analysis to begin!!!!</p>
<p><strong>First Impressions</strong><br />
<span id="more-438"></span><img class="alignright size-full wp-image-439" src="http://rightshift.info/wp-content/uploads/2010/05/worms1.jpg" alt="worms1" width="504" height="459" /></p>
<p>At first glance, I couldn&#8217;t help but draw parallels to the sandworms of Dune (refer: Frank Herbert&#8217;s Fiction Writing).<br />
These little buggers were about an inch long, white, articulated and lacking in endo/exo-skeletons. Their movement seems based on hydrostatic pressure transfer through a fluid base. They were blind, had no limbs, or any other phenotype besides the mouth. They kept obsessively writhing about and munching their &#8220;jaws&#8221; on air, as if desperately ruminating.<br />
Then it occured to me, that these hatched out of eggs laid in the timber long before the tree was cut down to make us that cot. If they are to spend a significant part of their lives in this form, buried deep within wood, then they wouldn&#8217;t need any other senses. There&#8217;s no light, and hence no need for sight. Food is plentiful, so no need for smell sensing. They are likely to bite down on wood no matter where they turn and chomp. But once exposed in this manner, suddenly, they look like darwinian losers. Genetic mistakes that can&#8217;t find delicious splinters of wood placed a centimetre away, much less navigate to it. I had to identify the species, and so I went hunting on the internets. The closest match I could find is this:</p>
<p><img class="alignleft size-full wp-image-440" src="http://rightshift.info/wp-content/uploads/2010/05/wormsheet.jpg" alt="wormsheet" width="374" height="544" /></p>
<p>Forest Longhorn. And to think Microsoft nearly named an operating system after it. So, I could expect to watch these grow into some beetle-esque abominations. Groovy!</p>
<p>A little further research lead me to all sorts of woodworm species descriptions. This larval stage is meant to last months, sometimes years. And in all that duration, these organless wormies feed on dry wood. They survive on moisture in dry wood!!<br />
That&#8217;s probably not that startling to anyone who is familiar with silverfishes surviving on paper from old books in the attic.<br />
So at this stage, much like silkworms eating leaves, their purpose in life is to feed and accumulate enough nutrients for the transformation to occur. The worms were actually very inactive for the most part. Its not like they ingest much energy to be capable of anything other than grub.</p>
<p><strong>Power Extreme</strong></p>
<p>Over the course of three months, they started to die out on me. The lone survivor (a.k.a. Kwizat) had suddenly seized to feed and was shrinking in size and had grown restless, wiggling as if in a struggle. Sick with a stomach-ache perhaps. I thought his number was up.</p>
<p>But then, one day, I woke up to something really strange:<br />
<img class="aligncenter size-full wp-image-441" src="http://rightshift.info/wp-content/uploads/2010/05/worms2.jpg" alt="worms2" width="504" height="191" /><br />
Not only had he grown larger, into some low-density shape, but he appeared to be growing legs and a head, with antenna and everything.</p>
<p><a href="http://www.youtube.com/watch?v=-67hhrE1R2U">watch?v=-67hhrE1R2U</a></p>
<p>He&#8217;d wiggle in an attempt to shed his old skin.<br />
It was time to get him out in the open.</p>
<p><img class="aligncenter size-full wp-image-442" src="http://rightshift.info/wp-content/uploads/2010/05/worms3.jpg" alt="worms3" width="591" height="798" />What followed was a miraculous transformation. It was a delight, specifically because ideally, this was supposed to occur deep within wood, away from voyeuristic eyes and lenses. They say that a butterfly transformation, if interrupted by damage to the pupa, will forever be incomplete, resulting in a failed half-breed creature. But this thing was changing in the open&#8230;. How I wished I had mastered time-lapse.</p>
<p><img class="aligncenter size-full wp-image-443" src="http://rightshift.info/wp-content/uploads/2010/05/worms4.jpg" alt="worms4" width="504" height="439" />The legs kept getting thicker. The eyes, darker to the point where he&#8217;d wiggle when I turned the lights on early morn. The head and mouth became more detailed, and the signature long-horn antenna curled in anticipation. Twenty days later, he was unrecognisable.<br />
<img class="aligncenter size-full wp-image-444" src="http://rightshift.info/wp-content/uploads/2010/05/worms5.jpg" alt="worms5" width="504" height="247" />He was beginning to show some activity, as if waking from a slumber. He was rolling his own discarded skin into a ball. I wonder if it was programmed instinct. Maybe in more natural conditions, he would have some use for it (nutrition?). Also notable was the wing on his back (presumably defunct, a relic of his genetic ancestry).</p>
<p><a href="http://www.youtube.com/watch?v=_NrGaJw2Grs">watch?v=_NrGaJw2Grs</a></p>
<p>And within ten days, the transformation was complete:<br />
<img class="aligncenter size-full wp-image-445" src="http://rightshift.info/wp-content/uploads/2010/05/worms6.jpg" alt="worms6" width="504" height="429" /><br />
I decided to release the fellow. I think they reproduce asexually, though I&#8217;m not sure if he was capable of laying eggs into polished, seasoned funiture wood in the locality. In any case, I hope its not an invasive species. He&#8217;s probably bird-food by now.</p>
<p><img class="aligncenter size-full wp-image-446" src="http://rightshift.info/wp-content/uploads/2010/05/worms7.jpg" alt="worms7" width="312" height="171" /></p>
]]></content:encoded>
			<wfw:commentRss>http://rightshift.info/?feed=rss2&amp;p=438</wfw:commentRss>
		</item>
		<item>
		<title>Scaling (I)</title>
		<link>http://rightshift.info/?p=414</link>
		<comments>http://rightshift.info/?p=414#comments</comments>
		<pubDate>Tue, 12 Jan 2010 19:28:37 +0000</pubDate>
		<dc:creator>Karthik</dc:creator>
		
		<category><![CDATA[Karthik's]]></category>

		<guid isPermaLink="false">http://rightshift.info/?p=414</guid>
		<description><![CDATA[
There are presumably many clever, interesting and useful tools and ideas in science and math modeling. The concept of scaling, though, is the most powerful one I&#8217;ve seen in that it makes very nontrivial predictions with just small helpings of information.
Let&#8217;s start at the top. To scale an object means to multiply its every linear [...]]]></description>
			<content:encoded><![CDATA[<p><body></p>
<p>There are presumably many clever, interesting and useful tools and ideas in science and math modeling. The concept of scaling, though, is the most powerful one I&#8217;ve seen in that it makes <em>very</em> nontrivial predictions with just small helpings of information.</p>
<p>Let&#8217;s start at the top. To <em>scale</em> an object means to multiply its every linear dimension by the same factor. It&#8217;s what you would expect: a geometric shrinking or enlarging, like under a microscope<sup><a class="footref" name="fnr.1" href="#fn.1">1</a></sup>.</p>
<p>Now, attributes of this object scale in different ways. If every linear dimension of the object is multiplied by a factor n, then the surface area and volume of the object go up by factors of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_2658aa1291d5c5280e66b1949a05e1b9.png" style="vertical-align:-6px; display: inline-block ;" alt="n^2" title="n^2"/> and <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_c5f668f442b57eaaa278e4b357879f1b.png" style="vertical-align:-6px; display: inline-block ;" alt="n^3" title="n^3"/> respectively. Depending on how we physically accomplish the scaling, either the mass of the object scales as <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_c5f668f442b57eaaa278e4b357879f1b.png" style="vertical-align:-6px; display: inline-block ;" alt="n^3" title="n^3"/> or its density scales as <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_979_86bfd7e04e03770541d97f04bc37da6e.png" style="vertical-align:-21px; display: inline-block ;" alt="1/n^3" title="1/n^3"/>. (Stretching the original object preserves the mass but lowers the density by the above factor; creating a scaled-up replica retains the density but increases the mass by the above factor.)<sup><a class="footref" name="fnr.2" href="#fn.2">2</a></sup></p>
<p>Forces scale in different ways:</p>
<p>1. Let&#8217;s say you have two hot metal plates identical in shape with a ratio of surface areas of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_2658aa1291d5c5280e66b1949a05e1b9.png" style="vertical-align:-6px; display: inline-block ;" alt="n^2" title="n^2"/>. The force of gravity on the larger of the scaled objects is <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_c5f668f442b57eaaa278e4b357879f1b.png" style="vertical-align:-6px; display: inline-block ;" alt="n^3" title="n^3"/> times that on the smaller one.</p>
<p>2.  If the two metal plates were tenderly rested on the surface of water, the force of surface tension on the larger one would be n times that on the smaller one, because surface tension is proportional to the length in contact with the liquid. This explains why you can&#8217;t float a steel knitting rod on the surface of water, but you can <a href="http://www.youtube.com/watch?v=YX2s79yyqXc">float a steel pin</a>. The surface tension holding the steel pin up is smaller by a factor of about 10, but the pin is lighter by a factor of about 1000.</p>
<p>3. The force you need to break the larger plate by tugging along its length is <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_2658aa1291d5c5280e66b1949a05e1b9.png" style="vertical-align:-6px; display: inline-block ;" alt="n^2" title="n^2"/> times that needed to break the smaller one in the same way.</p>
<p>4. If you were to pull these plates through molasses, the forces of drag on the plates due to the molasses do <em>not</em> scale in an elementary way- but to a first approximation, the drag force is proportional to the surface area. This means the drag is higher on the larger plate by a factor of (approximately) <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_2658aa1291d5c5280e66b1949a05e1b9.png" style="vertical-align:-6px; display: inline-block ;" alt="n^2" title="n^2"/>.</p>
<p>And rates of processes scale too. The bigger one would lose heat that much faster. This does not mean that it cools faster! If they are at the same temperature to begin with, the larger plate would lose heat at a rate  <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_2658aa1291d5c5280e66b1949a05e1b9.png" style="vertical-align:-6px; display: inline-block ;" alt="n^2" title="n^2"/> higher than the smaller one, because this rate is proportional to its surface area. The amount of heat it needs to lose for its temperature to go down by a degree, however, is <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_c5f668f442b57eaaa278e4b357879f1b.png" style="vertical-align:-6px; display: inline-block ;" alt="n^3" title="n^3"/> times higher than the amount the smaller plate does, because this quantity is proportional to its mass. This means it takes the larger plate about <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_979_7cd42d660a2a4c8050584cab72b5fe2d.png" style="vertical-align:-21px; display: inline-block ;" alt="n^3/n^2 = n" title="n^3/n^2 = n"/> times longer to cool down by the same degree.</p>
<p>The above scaling relations hold because of the simple physics that applies. Actually, when the physics gets complicated, scaling rules still hold; it&#8217;s just that geometric similarity is not a fruitful pursuit anymore. There are more abstract ways of using scales to work with the system- a bit more on this towards the end.</p>
<p>This is where things get really interesting. Everything, including living things, are subject to the above rules, and we can make some remarkable observations about the design of insects and animals:</p>
<p>The ant is known to carry several times its own weight. Why can&#8217;t we do this?</p>
<p>First, let&#8217;s see how an ant would fare if it were about the size of a human. Much of the ant is strong tubes filled with mushy insides. (Insects have exoskeletons, like the ants&#8217; chitin.) If you were to breed a six foot tall ant, the weight of the ant would scale as <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_05ac2b079a4b374ea2b28517feaf67e5.png" style="vertical-align:-6px; display: inline-block ;" alt="10^9" title="10^9"/>, and the load bearing cross-section of the chitin in its legs would go up by a factor of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_6d1c6a968c69410fcf544755cced129f.png" style="vertical-align:-6px; display: inline-block ;" alt="10^6" title="10^6"/>.</p>
<p>This means the stress in its legs would go up by a factor of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_979_ef60e3c31111d2e75e51d9be2ce16724.png" style="vertical-align:-21px; display: inline-block ;" alt="10^9/10^6 = 1000" title="10^9/10^6 = 1000"/>. The super-ant would break its legs just by standing!<sup><a class="footref" name="fnr.3" href="#fn.3">3</a></sup></p>
<p>How about load-bearing capacity? The forces its muscles could exert would scale as the square of the linear dimension. (The force a muscle can exert is proportional to its cross sectional area). In this case, the square of (2 m/ 2 mm), which is about <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_6d1c6a968c69410fcf544755cced129f.png" style="vertical-align:-6px; display: inline-block ;" alt="10^6" title="10^6"/>. A regular ant can lift at least twenty times its own weight; if the super-ant were to try this, the stress on its muscles would be <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_979_ef60e3c31111d2e75e51d9be2ce16724.png" style="vertical-align:-21px; display: inline-block ;" alt="10^9/10^6 = 1000" title="10^9/10^6 = 1000"/> times that of the regular ant.<sup><a class="footref" name="fnr.4" href="#fn.4">4</a></sup> Its muscles would rip.</p>
<p>Not so super now, eh?</p>
<p>Conversely, it follows that since you can stand on our legs without collapsing, you will be at least as strong as the ant when you&#8217;re shrunk to its size. You can do the calculations; the general idea is that the capacity of a muscle-driven creature to bear it&#8217;s own body weight (or any multiple of it) goes as 1/length of the creature.</p>
<p>The scaling rules tell us that everything will be different when we&#8217;re shrunk by a factor of a thousand. From the example of the floating steel pin above, it follows that you should be able to walk on water, so long as it&#8217;s relatively calm. You don&#8217;t need a pitcher to carry around water; you can hold it in your hand like you would a football. It would take no effort at all to drink it- the super-powerful capillary effect would force it down your throat  if you brought your mouth close to it. And yeah, you can hold your own against insects. You would be the iron man (or woman) of the insect world.</p>
<p>It&#8217;s not all rosy, though. From the cooling example above, it follows that your body would cool a factor of 1000 faster. (Surface area/Body mass = <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_6f41c9bf5ebe42085378f13dd7a6364d.png" style="vertical-align:-14px; display: inline-block ;" alt="1/1000" title="1/1000"/>) You would probably die of hypothermia unless you were consuming food <em>all</em> the time. Not only can you lift many times your body weight, you&#8217;d have to eat many times your body weight in a day!<sup><a class="footref" name="fnr.5" href="#fn.5">5</a></sup></p>
<p>On the other hand, if you were scaled up by a factor of 80 (say) you would suffer the same fate as the super-ant. Your legs can only bear a load 5-6 times more than they already do when you run or jump- and the stress in your bones would be a factor of 80 higher even when mega-you were just standing still! Your knees would buckle and shatter, smashing every bone in your body as you hit the ground. Your muscles will have torn, and the hydrostatic pressure of the blood in your body acting over a height of 100 m would have forced it down your arteries before rupturing them and causing hemorrhaging. For the same reasons whales do, however, you would survive rather well in the water!</p>
<p>While we&#8217;re being squeamish:</p>
<blockquote>
<p class="quoted">As J.B.S. Haldane put it in his classic essay, “<a href="http://irl.cs.ucla.edu/papers/right-size.html">On Being the Right Size</a>,” “You can drop a mouse down a thousand-yard mine shaft; and, on arriving on the bottom, it gets a slight shock and walks away….A rat is killed, a man broken, a horse splashes.” Haldane was being quite literal.</p>
<p class="quoted">These facts were known to our ancestors, who used this aspect of scaling to gruesome effect—a common strategy during medieval sieges was to take a carcass of a horse, let it ripen for a few days in the sun, and then catapult it over the walls of the besieged town. On impact, the carcass would indeed splash, spreading contagion throughout the city.<sup><a class="footref" name="fnr.6" href="#fn.6">6</a></sup></p>
</blockquote>
<p>Wow!</p>
<p>The above is an extract from a <a href="http://fathom.lib.uchicago.edu/2/21701757/">wonderful article about scaling</a> in biology that goes into much greater detail of hypothetical changes of scale- highly recommended!</p>
<p>This short foray into design in biology tells us two things: Evolution is, like physics, <a href="http://www.google.com/url?sa=t&amp;source=web&amp;ct=res&amp;cd=10&amp;ved=0CCcQFDAJ&amp;url=http%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3D1HxzLaPYo2IC%26pg%3DPA98%26lpg%3DPA98%26dq%3Drichard%2Bfeynman%2Bimagination%2Bin%2Ba%2Bstraightjacket%26source%3Dbl%26ots%3DqUue3ROPqv%26sig%3DNPsWU8vAjgmaPSNSNTrNr9HIMhE%26hl%3Den%26ei%3DLHccS6HqB5LenAe-2M3QAw%26sa%3DX%26oi%3Dbook_result%26ct%3Dresult%26resnum%3D10%26ved%3D0CCgQ6AEwCQ&amp;ei=LHccS6HqB5LenAe-2M3QAw&amp;usg=AFQjCNH8h0aSbDJPmvW749fG_oSHpXd3VA">imagination in a straightjacket</a>. Worse, it&#8217;s a straightjacket within other straightjackets, with additional constraints and intense competition to boot. Nature is the mother of all optimization engines! Second, biological design is <em>very</em> parsimonious; the body of an ant is strong enough to carry the crazy amounts of food its colony needs, but no stronger than it need be.<sup><a class="footref" name="fnr.7" href="#fn.7">7</a></sup></p>
<p>There is <em>so</em> much scope for some hard science fiction here. In fact, a consideration of the physics of scaling is one of the things distinguishing hard and soft science fiction.<sup><a class="footref" name="fnr.8" href="#fn.8">8</a></sup></p>
<p>The above was just one window into the concept of scaling-  we saw how the properties of real world objects varied in interesting ways at different sizes. A different set of observations can be made by <em>looking</em> at the <em>same</em> object at different scales: it leads us to all kinds of interesting ideas, like fractals and universality. Perhaps the most amazing use of scaling is a technique that involves looking not at an object (real-world or abstract), but at a mathematical model for a system at different scales. This process, called the renormalization group, is touted as the most impressive use of abstraction in science. It is quite hard to segue into these other uses of scaling here; they&#8217;re fodder for Scaling II!</p>
<hr />
<h5>Footnotes:</h5>
<p class="footnote"><a class="footnum" name="fn.1" href="#fnr.1">1.</a>  Strictly speaking, a traditional microscope does not scale an object geometrically, because of the nonuniform optical properties of the lenses. I don&#8217;t know of any system of lenses that magnifies correctly along the viewer&#8217;s line of sight- the depth- of the inspected object.</p>
<p class="footnote"><a class="footnum" name="fn.2" href="#fnr.2">2.</a>  Of course, the above are special cases. You can vary the mass (and thus the density) by whatever factor you want so long as you&#8217;re scaling it up in your head. We&#8217;re talking about magnifying the size while retaining as much of the material&#8217;s inner structure as possible: so if we wanted to scale up a clay pyramid, we would use the same kind of clay to construct a bigger pyramid, and its mass would scale like its volume does, as the cube of the linear dimension.</p>
<p class="footnote"><a class="footnum" name="fn.3" href="#fnr.3">3.</a>  If you are trying to imagine this, pick up a thin tube of plastic- or a straw, and push on both ends of it. It kinks and buckles; this is the usual mode of failure for a slender beam or tube, like the ant&#8217;s chitinous appendages.</p>
<p class="footnote"><a class="footnum" name="fn.4" href="#fnr.4">4.</a>  This is essentially the same calculation as in the paragraph before it.</p>
<p class="footnote"><a class="footnum" name="fn.5" href="#fnr.5">5.</a>  This tells us something apparently paradoxical: The larger you are, the lesser you ought to eat! While this sounds like good health advice, it is of course an incomplete picture. We don&#8217;t burn all our energy as heat, we spend a large chunk of it in locomotion, a lot in circulating blood and nutrients around (and in other body maintenance tasks) and a fair bit in thinking.</p>
<p class="footnote"><a class="footnum" name="fn.6" href="#fnr.6">6.</a>  Talk about biological warfare!</p>
<p class="footnote"><a class="footnum" name="fn.7" href="#fnr.7">7.</a>  Because of the way natural selection works, it&#8217;s not really surprising that this is the case. If the ant couldn&#8217;t carry several times its own weight, there would be no ant colonies and no ants as we know them, right? It&#8217;s the antropic principle at work.</p>
<p class="footnote"><a class="footnum" name="fn.8" href="#fnr.8">8.</a>  The other physics most works of sci-fi violate are, of course, conservation laws, like that of momentum and energy. <a href="http://www.qwantz.com/fanart/superman.pdf">There are workarounds</a>, mind you. (PDF)</p>
<p></body></p>
]]></content:encoded>
			<wfw:commentRss>http://rightshift.info/?feed=rss2&amp;p=414</wfw:commentRss>
		</item>
		<item>
		<title>Random Climate Change Musings</title>
		<link>http://rightshift.info/?p=393</link>
		<comments>http://rightshift.info/?p=393#comments</comments>
		<pubDate>Fri, 11 Dec 2009 04:42:35 +0000</pubDate>
		<dc:creator>Traums</dc:creator>
		
		<category><![CDATA[Dileep's]]></category>

		<category><![CDATA[change]]></category>

		<category><![CDATA[climate]]></category>

		<category><![CDATA[doom]]></category>

		<category><![CDATA[dyson]]></category>

		<category><![CDATA[heresy]]></category>

		<category><![CDATA[heretic]]></category>

		<category><![CDATA[humanity]]></category>

		<category><![CDATA[pagan]]></category>

		<category><![CDATA[prophecy]]></category>

		<guid isPermaLink="false">http://rightshift.info/?p=393</guid>
		<description><![CDATA[Somewhat out of character, this will be a pseudo-meta-post with near-zero original content. Let us begin with what I read in the papers today:


(Ahem) Even economics majors reacted with a face-palm (&#62;&#62;).
Humour aside, what really got me into writing about something this clichéd and media-hijacked is humanity&#8217;s blatant amnesia at display everyday on TV and [...]]]></description>
			<content:encoded><![CDATA[<p>Somewhat out of character, this will be a pseudo-meta-post with near-zero original content. Let us begin with what I read in the papers today:</p>
<p><img class="aligncenter size-full wp-image-396" src="http://rightshift.info/wp-content/uploads/2009/12/govt2.jpg" alt="govt2" width="576" height="166" /></p>
<p><img class="alignright size-full wp-image-397" src="http://rightshift.info/wp-content/uploads/2009/12/chidam.jpg" alt="chidam" width="176" height="216" /></p>
<p>(Ahem) Even economics majors reacted with a face-palm (&gt;&gt;).</p>
<p>Humour aside, what really got me into writing about something this clichéd and media-hijacked is humanity&#8217;s blatant amnesia at display everyday on TV and in the papers. Granted that it is important not to get carried away by all the religious hype being generated. Even <a href="http://www.nytimes.com/2009/03/29/magazine/29Dyson-t.html?_r=1&amp;ref=magazine&amp;pagewanted=all">informed heresy</a> is acceptable. But why are vested interest groups resorting to <a href="http://thinkprogress.org/2009/08/04/accce-silent-fraud/">childish</a> <a href="http://rawstory.com/2009/12/climate-skeptic-group-nipcc-extensive-ties-exxonmobil/">tactics</a>?? And why is nobody able to see through them?</p>
<p>At this rate, <a href="http://www.youtube.com/watch?v=7nnVQ2fROOg">Youtube</a> will become the sole source of accessible sanity.</p>
<p><a href="http://mohankv.blogspot.com">KVM</a> had an interesting take on apocalyptic prophecies:</p>
<blockquote><p><span>Gloom and Doom is an infallible stance, because of <a href="http://en.wikipedia.org/wiki/Survivorship_bias">survivorship bias</a>. Either people are vacationing in the Bahamas not caring about your wrong prediction, or are marveling at your foresight <img src='http://rightshift.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p></blockquote>
<p>But I couldn&#8217;t resist wondering at how conservatism has had its place throughout human history, and &#8220;progress&#8221; has always been associated with doom. To quote from Thief, my favourite work of fiction yet:</p>
<blockquote>
<pre>The world as I once knew it was a place of magic - full of mystery and
inhabited by creatures of glamour and terror. The men who lived there lit their
bonfires and wondered at what crept and lurked in the darkness outside their weak
circles of light. All their dreams, their aspirations and dreads,
come from that darkness.
Now, as the forces of "progress" cover the meadows in brick and cobblestone, as they
replace the majestic loft of tree with the blocky ponderousness of building, they also
light the world in their electric, actinic glare. With the lighting of the shadows, man
loses his ability to fear, and to dream.

The night, once the font of the unknown,
becomes only the lack of the sun.</pre>
</blockquote>
<p>Pagans have a way of getting things right. And stranger still, the &#8220;liberals&#8221; are fighting for a &#8220;conservative&#8221; approach, while the &#8220;conservatives&#8221; are crying foul. I love this language.</p>
<p>Maybe it IS a bad thing to romanticise this issue, serious though it may be. I have always believed that trying to solve this issue by balancing super-aggregated national numbers is really a case of looking at the wrong <a href="http://rightshift.info/?p=129">level of abstraction</a>. This is largely a technical problem, and deserves a technical answer. Very little will come off of policy making and pledges by people who understand little. Nonetheless, it&#8217;ll be amusing to see how the leaders of men react to entire (island) nations literally disappear off the face of Midgard. The tragedy is that most people crazy enough to want to save the world from itself don&#8217;t take up technical studies, but descend into the largely ineffective field of activism.</p>
<blockquote><p><em>Stands He then in the greens and festered Maw and speeds He out his judgements upon the weeps and writhing manfools!</em></p>
<p><em>- The Trickster of Legend</em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://rightshift.info/?feed=rss2&amp;p=393</wfw:commentRss>
		</item>
		<item>
		<title>Analyticity Matters</title>
		<link>http://rightshift.info/?p=234</link>
		<comments>http://rightshift.info/?p=234#comments</comments>
		<pubDate>Mon, 02 Nov 2009 05:20:59 +0000</pubDate>
		<dc:creator>Traums</dc:creator>
		
		<category><![CDATA[Dileep's]]></category>

		<category><![CDATA[analytic]]></category>

		<category><![CDATA[balki]]></category>

		<category><![CDATA[complex]]></category>

		<category><![CDATA[contour]]></category>

		<category><![CDATA[differential]]></category>

		<category><![CDATA[equation]]></category>

		<category><![CDATA[integral]]></category>

		<category><![CDATA[math]]></category>

		<category><![CDATA[power series]]></category>

		<category><![CDATA[rubel]]></category>

		<guid isPermaLink="false">http://rightshift.info/?p=234</guid>
		<description><![CDATA[Ever since KVM posted his dissection of Rubel&#8217;s UDE paper, I&#8217;ve been wanting to address this issue he raised:
I&#8217;m still amazed and can&#8217;t quite fully digest the fact that a perfectly smooth function can be non-analytic. I mean, consider the exp(-1/x) function. If you stand at the origin, you have no clue what happens as [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since <a href="http://mohankv.blogspot.com/2009/10/understanding-rubels-universal.html">KVM posted his dissection of Rubel&#8217;s UDE paper</a>, I&#8217;ve been wanting to address this issue he raised:</p>
<blockquote><p>I&#8217;m still amazed and can&#8217;t quite fully digest the fact that a perfectly smooth function can be non-analytic. I mean, consider the exp(-1/x) function. If you stand at the origin, you have no clue what happens as you step forward! All the meters in your car will read zero at the origin, and yet, somehow the function bootstraps itself into rising! This never happens with analytic functions!</p></blockquote>
<p>The function he was talking about is not exp(-1/x) per se, but</p>
<p><img class="aligncenter size-full wp-image-241" src="http://rightshift.info/wp-content/uploads/2009/11/exp1x.png" alt="exp1x" width="259" height="60" /></p>
<p>He goes on to plot it as so:</p>
<p><img class="aligncenter size-full wp-image-242" src="http://rightshift.info/wp-content/uploads/2009/11/plot.png" alt="plot" width="320" height="106" /></p>
<p>At first sight, defining a function differently for negative and positive x, and then expecting civilised behaviour felt like cheating to me. After all, exp(-1/x) is singular as <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_7dcafa5d18419d57a2e534293953a28c.png" style="vertical-align:-6px; display: inline-block ;" alt="x right 0^{-}" title="x right 0^{-}"/>. But that doesn&#8217;t make his comment any less rich, as one is lead to believe that <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_6e2c1b98d952070f359bc47cd21c1525.png" style="vertical-align:-6px; display: inline-block ;" alt="C^{infty}" title="C^{infty}"/> continuity is more sacred than that. While this post doesn&#8217;t solve anything, it notices some interesting patterns and compiles them all in one place, and provides for a sweet link next time the reader is having to explain this to someone over the internet. So lets see how far we can get.</p>
<p><strong>The Power Series</strong> <strong>Expansion:</strong></p>
<p>I&#8217;ll confine myself to basic high-school math, so the learning curve is analytic for all readers.<br />
For the uninitiated (I love that word), any function <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_fc836e0f519852bee03cbd89d065fba8.png" style="vertical-align:-13.5px; display: inline-block ;" alt="f(x)" title="f(x)"/> that is said to be &#8220;analytic&#8221; (we&#8217;ll get to that before this post ends), can be expanded as a power series in <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_137b8dad9acade63b507e67878d3b94b.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x" title="x"/>, about a point <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_3c5e3ff913afdf3fc61f729ad9eea769.png" style="vertical-align:-13.5px; display: inline-block ;" alt="x_{o}" title="x_{o}"/> like so:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_944.5_9959fe1de9daa65825b0d05a21dc0fd1.png" style="vertical-align:-55.5px; display: inline-block ;" alt="{f(x)} = {f(x_{o})} + sum{n=1}{infty}{{c_{n}}{(x-x_{o})}^{n}}" title="{f(x)} = {f(x_{o})} + sum{n=1}{infty}{{c_{n}}{(x-x_{o})}^{n}}"/></p>
<p>Where <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_22f90d82ecbdcdf8378fdeb43b2f8a29.png" style="vertical-align:-14px; display: inline-block ;" alt="c_{n} = {f^{(n)}(x_{o})}/{n!}" title="c_{n} = {f^{(n)}(x_{o})}/{n!}"/>, the <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_23305cdbe35993d0c2ed008c664a311b.png" style="vertical-align:-6px; display: inline-block ;" alt="n^{th}" title="n^{th}"/> derivative of the function at <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_3c5e3ff913afdf3fc61f729ad9eea769.png" style="vertical-align:-13.5px; display: inline-block ;" alt="x_{o}" title="x_{o}"/>, scaled down by n factorial. Since the same function can be translated along the x-axis, we&#8217;ll stick to taylor expansions about the origin for all our derivations.<br />
This has an interesting consequence. A general single-valued function with no strings attached, in order to be completely defined, will require us to specify the value of the function at an uncountably infinite number of points on the x-axis, no matter how small the domain (as long as it is not a collection of isolated points). However, analytical functions require only that we specify one set of countably infinite values (all derivatives at any one point within every simply connected part of the domain). This is a drastic reduction. No doubt, the compression of parameter space is stronger than what that mere <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_6e2c1b98d952070f359bc47cd21c1525.png" style="vertical-align:-6px; display: inline-block ;" alt="C^{infty}" title="C^{infty}"/> continuity condition imposes. Apparently, for every function representable by a power series, uniformity of convergence ensures integrability and differentiability. If you&#8217;ve understood that, than stop reading further and do more productive things with your life.</p>
<p><span id="more-234"></span></p>
<p><strong>Convergence and Analyticity:</strong></p>
<p>Let us examine the importance of the word domain with a few basic examples. Now, the KVM function involves stitching two separate domain definitions, so we&#8217;ll start with simpler functions. Take for example, the infinite sum of the following geometric series:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_1cbc8ab867ac260b74a9e2c75486f246.png" style="vertical-align:-14px; display: inline-block ;" alt="{1}/{1-x} = 1 + x + {x^{2}} + {x^{3}} + {x^{4}} + ...." title="{1}/{1-x} = 1 + x + {x^{2}} + {x^{3}} + {x^{4}} + ...."/></p>
<p>The right-hand side is the taylor expansion about the origin, where the <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_23305cdbe35993d0c2ed008c664a311b.png" style="vertical-align:-6px; display: inline-block ;" alt="n^{th}" title="n^{th}"/> derivative of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_3c05e3383bb20bc5736d487510ef8176.png" style="vertical-align:-14px; display: inline-block ;" alt="{1}/{1-x}" title="{1}/{1-x}"/> is <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_5317fb318eb707fb8b288548689244af.png" style="vertical-align:-5.5px; display: inline-block ;" alt="n!" title="n!"/>. Clearly, a geometric series can only converge if the multiplicative factor <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_137b8dad9acade63b507e67878d3b94b.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x" title="x"/> is less than <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_7f6ffaa6bb0b408017b62254211691b5.png" style="vertical-align:-5.5px; display: inline-block ;" alt="1" title="1"/> in magnitude. So this expansion diverges for <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_d38025faf4c353d3769d8879171ddb8f.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x>= 1&#8243; title=&#8221;x>= 1&#8243;/> . This is no surprise, as the <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_3c05e3383bb20bc5736d487510ef8176.png" style="vertical-align:-14px; display: inline-block ;" alt="{1}/{1-x}" title="{1}/{1-x}"/> . This is no surprise, as the <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_3c05e3383bb20bc5736d487510ef8176.png" style="vertical-align:-14px; display: inline-block ;" alt="{1}/{1-x}" title="{1}/{1-x}"/> blows up at <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_7fb9c0014bbe815faa91302f058b7ffd.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x=1" title="x=1"/>, and one can expect the characteristics of functional derivatives on one side to have little effect on the other side of this singular point (probably why physicists can&#8217;t define a &#8220;before&#8221; the big-bang universe). A good analogy is the vibration of a constrained string. A string held put at a point can only vibrate in modes which have a node at that point. But if we clamp down (up?) all the derivatives of the string at that point, then excitations from one side cannot travel to the other. If one were to expand <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_3c05e3383bb20bc5736d487510ef8176.png" style="vertical-align:-14px; display: inline-block ;" alt="{1}/{1-x}" title="{1}/{1-x}"/> as a power series about some other point greater than one, it would be valid for all <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_6d841aa13fbaf141cc25ec963f81424b.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x>1&#8243; title=&#8221;x>1&#8243;/>.</p>
<p>So we seem to have arrived at some sort of definition for the boundary of a domain. After all, <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_3c05e3383bb20bc5736d487510ef8176.png" style="vertical-align:-14px; display: inline-block ;" alt="{1}/{1-x}" title="{1}/{1-x}"/> . So we seem to have arrived at some sort of definition for the boundary of a domain. After all, <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_3c05e3383bb20bc5736d487510ef8176.png" style="vertical-align:-14px; display: inline-block ;" alt="{1}/{1-x}" title="{1}/{1-x}"/> is merely <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_5b5375d71541ffe530da35082505d3b5.png" style="vertical-align:-14px; display: inline-block ;" alt="{1}/{x}" title="{1}/{x}"/> shifted and flipped. But there is an anomaly.</p>
<p>It turns out that this expansion also diverges for <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_83403f73b60c0d133ada26efefd9c678.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x<= -1" title="x<= -1"/>. Highly unexpected, as <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_3c05e3383bb20bc5736d487510ef8176.png" style="vertical-align:-14px; display: inline-block ;" alt="{1}/{1-x}" title="{1}/{1-x}"/> seems to have no bumps, kinks or black holes around <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_e6dbcb89a42675f03bf625d33b02dc69.png" style="vertical-align:-5.5px; display: inline-block ;" alt="-1" title="-1"/>. Funky behaviour on one side of the point of expansion seems to be affecting the symmetrically opposite point on the other side. The string has strings attached? Say we parity flip the function and expand again about the origin:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_e38206963f179167184f1cad76c299ff.png" style="vertical-align:-14px; display: inline-block ;" alt="{1}/{1+x} = 1 - x + {x^{2}} - {x^{3}} + {x^{4}} - ...." title="{1}/{1+x} = 1 - x + {x^{2}} - {x^{3}} + {x^{4}} - ...."/></p>
<p>This again is singular at <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_8ea00c1f63cb218c69b444b0eddcba50.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x=-1" title="x=-1"/>, but the expansion diverges for both <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_83403f73b60c0d133ada26efefd9c678.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x<= -1" title="x<= -1"/>, and <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_d38025faf4c353d3769d8879171ddb8f.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x>= 1&#8243; title=&#8221;x>= 1&#8243;/>.</p>
<p>Note that the two expansions are interconvertible. One is generated by flipping the signs of all alternate terms in the other. Now we invoke the concept of conditional vs. absolute convergence of a power series.</p>
<p>An infinite series <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_978_962c40307d8134b53a3f2a63b85e1fef.png" style="vertical-align:-22px; display: inline-block ;" alt="sum{n=1}{infty}{a_{n}}" title="sum{n=1}{infty}{a_{n}}"/> .</p>
<p>Note that the two expansions are interconvertible. One is generated by flipping the signs of all alternate terms in the other. Now we invoke the concept of conditional vs. absolute convergence of a power series.</p>
<p>An infinite series <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_978_962c40307d8134b53a3f2a63b85e1fef.png" style="vertical-align:-22px; display: inline-block ;" alt="sum{n=1}{infty}{a_{n}}" title="sum{n=1}{infty}{a_{n}}"/> tends to converge to a finite value if successive terms <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_cad68096674430c4d7261b9a5719ebfa.png" style="vertical-align:-13.5px; display: inline-block ;" alt="a_{i}" title="a_{i}"/> fall off fast enough as <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_a256d79d5af892e9a29d350adf822efe.png" style="vertical-align:-5.5px; display: inline-block ;" alt="i" title="i"/> increases. Sometimes, the signs of the terms help the convergence by cancellation. But the series is said to be absolutely convergent (as opposed to conditionally convergent) if the fall off in successive term magnitude is so fast that <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_978_a29caaaccc50b4de13fbbde0d0514434.png" style="vertical-align:-22px; display: inline-block ;" alt="sum{n=1}{infty} {vert}{a_{n}}{vert}" title="sum{n=1}{infty} {vert}{a_{n}}{vert}"/> is convergent. Absolute convergence implies conditional convergence. But conditional convergence does not imply absolute convergence. Take for example the harmonic series <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_73e531b75b05a07bb8e6211eac9da649.png" style="vertical-align:-14px; display: inline-block ;" alt="1 + {{1}/{2}} + {{1}/{3}} + {{1}/{4}} ...." title="1 + {{1}/{2}} + {{1}/{3}} + {{1}/{4}} ...."/>. It is provably divergent. But if we flip the sign of every even term, the resulting series converges to <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_36fc177f33ef53e833f7ae7a2ba07a6d.png" style="vertical-align:-13.5px; display: inline-block ;" alt="log(2)" title="log(2)"/>. Series with alternating signs have added help at hand, as all they require is for the absolute values of successive terms <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_74f0ab165c2e7e3d749876f8f9f5b19a.png" style="vertical-align:-13.5px; display: inline-block ;" alt="{vert}a_{i}{vert}" title="{vert}a_{i}{vert}"/> to tend monotonically to <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_d2490f048dc3b77a457e3e450ab4eb38.png" style="vertical-align:-5.5px; display: inline-block ;" alt="0" title="0"/>.</p>
<p>None of this helps our case. We are looking for conditional vs. absolute divergence relations.<br />
Take the series <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_978_962c40307d8134b53a3f2a63b85e1fef.png" style="vertical-align:-22px; display: inline-block ;" alt="sum{n=1}{infty}{a_{n}}" title="sum{n=1}{infty}{a_{n}}"/>. Denote the positive terms by <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_fea362e4833d98b4ecd05c1124ba0ff5.png" style="vertical-align:-13.5px; display: inline-block ;" alt="p_{1}, p_{2}, p_{3}, ...." title="p_{1}, p_{2}, p_{3}, ...."/>, and the negative terms by <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_100dc2c1b952d8642d6999aaca12b4a1.png" style="vertical-align:-13.5px; display: inline-block ;" alt="-q_{1}, -q_{2}, -q_{3}, ...." title="-q_{1}, -q_{2}, -q_{3}, ...."/>. Then the absolute sum is <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_978_65f6338727b019a81842c9ba87b1d424.png" style="vertical-align:-22px; display: inline-block ;" alt="sum{nu = 1}{infty}{p_{nu}} + sum{nu = 1}{infty}{q_{nu}}" title="sum{nu = 1}{infty}{p_{nu}} + sum{nu = 1}{infty}{q_{nu}}"/>, and the conditional sum is <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_978_4a90ef1b98b81ee2709e885ce958e224.png" style="vertical-align:-22px; display: inline-block ;" alt="sum{nu = 1}{infty}{p_{nu}} - sum{nu = 1}{infty}{q_{nu}}" title="sum{nu = 1}{infty}{p_{nu}} - sum{nu = 1}{infty}{q_{nu}}"/>. For absolutely convergent series, both the sum of positive terms and the sum of negative terms need to be convergent. For conditional convergence, both have to be divergent. For our power series expansions, both positive term sums and negative term sums have to converge inside the domain. Only one of them needs to diverge outside the domain.</p>
<p>As an aside, the sum of conditionally convergent series can be changed by suitable rearrangement of the terms of the series, and it can even be made to diverge. This is not possible for absolutely convergent series.</p>
<p>So, what is the biggest generalisation we can make thus far?<br />
If a power series in x converges for a value <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_a904ad9d43382bd4eae1bf52b6ece7ed.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x = xi" title="x = xi"/>, it converges absolutely for every value x such that <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_06c90763ca1b825667b527117b3db4f5.png" style="vertical-align:-5.5px; display: inline-block ;" alt="{vert}{x}{vert} < {vert}{xi}{vert}" title="{vert}{x}{vert} < {vert}{xi}{vert}"/>, and the convergence is uniform in every interval <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_745fdf48940a222b817982b4fd715631.png" style="vertical-align:-5.5px; display: inline-block ;" alt="{vert}{x}{vert} <= eta" title="{vert}{x}{vert} <= eta"/>, where <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_6deb21e1ab5a965085170afe6a4677dc.png" style="vertical-align:-5.5px; display: inline-block ;" alt="eta" title="eta"/> is any positive number less than <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_2d3c6bd34dbfe43b1aa92ccf369a2af4.png" style="vertical-align:-5.5px; display: inline-block ;" alt="{vert}{xi}{vert}" title="{vert}{xi}{vert}"/>. <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_6deb21e1ab5a965085170afe6a4677dc.png" style="vertical-align:-5.5px; display: inline-block ;" alt="eta" title="eta"/> may lie as near <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_2d3c6bd34dbfe43b1aa92ccf369a2af4.png" style="vertical-align:-5.5px; display: inline-block ;" alt="{vert}{xi}{vert}" title="{vert}{xi}{vert}"/> as we please (in an <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_69330d93c250c81340e2c09a676e29c0.png" style="vertical-align:-5.5px; display: inline-block ;" alt="epsilon,delta" title="epsilon,delta"/> sense).</p>
<p>This magically implies that,<br />
If <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_a497954962ffbf2d4dbc045bf04b6fb9.png" style="vertical-align:-5.5px; display: inline-block ;" alt="exists x = xi" title="exists x = xi"/> such that the power series diverges, then it must diverge for every value of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_137b8dad9acade63b507e67878d3b94b.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x" title="x"/> such that <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_75b5456f56b739d95703aa82f3874c3a.png" style="vertical-align:-5.5px; display: inline-block ;" alt="{vert}{x}{vert} > {vert}{xi}{vert}&#8221; title=&#8221;{vert}{x}{vert} > {vert}{xi}{vert}&#8221;/>.<br />
This defines an &#8220;interval of convergence&#8221;, centered about the point of expansion for the power series.<br />
Since the KVM function exp(-1/x) has a singularity at <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_706679ed36939ee34c2a51d2ff0020ec.png" style="vertical-align:-6px; display: inline-block ;" alt="x right {0^{-}}" title="x right {0^{-}}"/>,<br />
This defines an &#8220;interval of convergence&#8221;, centered about the point of expansion for the power series.<br />
Since the KVM function exp(-1/x) has a singularity at <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_706679ed36939ee34c2a51d2ff0020ec.png" style="vertical-align:-6px; display: inline-block ;" alt="x right {0^{-}}" title="x right {0^{-}}"/>, its interval of convergence for an expansion about the origin has size zero. This still doesn&#8217;t seem to demystify the stitched function weirdness.</p>
<p><strong>So What Is All This Analyticity Stuff??</strong></p>
<p>So why is analyticity a stronger constraint than <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_6e2c1b98d952070f359bc47cd21c1525.png" style="vertical-align:-6px; display: inline-block ;" alt="C^{infty}" title="C^{infty}"/> continuity? What other conditions does it impose on the countably infinite derivatives required to completely specify the function?<br />
It is worthwhile to recall that in calculus, the differential element <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_7258b0d64a7c5e2c15838781d34495d0.png" style="vertical-align:-5.5px; display: inline-block ;" alt="dx" title="dx"/> of the independent variable is a linear term in x. Often in analysis and perturbation theory, we&#8217;ve neglected terms with higher order powers and managed to retain accuracy of our results. So a power series expansion of a function about a point to a very good accuracy, can be approximated by a finite degree polynomial, in a neighbourhood about that point, whose size is dependent on the desired error tolerance. This means, for an ultra-small neighbourhood, the function is a straight line. In a slightly larger, say mega-small, neighbourhood, it is a parabola, and so on. If we differentiate a power series any number of times, we again end up with a power series. So this property is not only shared by the function, but also by all its other derivatives.</p>
<p>Say a function f(x) has a zero of order r at <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_040b4550cc453e4874bc69ae90a568cf.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x=a" title="x=a"/>, <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_987_ce24d38c75febc8b3f0c9280058f326b.png" style="vertical-align:-13px; display: inline-block ;" alt="{{f^{(r)}}{(a)}} <> 0&#8243; title=&#8221;{{f^{(r)}}{(a)}} <> 0&#8243;/>. Then the function may be expressed as <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_2099f10b48407dcfb4001760fd15ea1f.png" style="vertical-align:-14px; display: inline-block ;" alt="{f(x)} = {{(x-a)}^{r}}{g(x)}" title="{f(x)} = {{(x-a)}^{r}}{g(x)}"/>, . Then the function may be expressed as <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_2099f10b48407dcfb4001760fd15ea1f.png" style="vertical-align:-14px; display: inline-block ;" alt="{f(x)} = {{(x-a)}^{r}}{g(x)}" title="{f(x)} = {{(x-a)}^{r}}{g(x)}"/>, with <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_0848a76944d9ab0b006715d9e7cdbec0.png" style="vertical-align:-14px; display: inline-block ;" alt="{g(a)} = {1}/{r!}{f^{(r)}{(a)}}" title="{g(a)} = {1}/{r!}{f^{(r)}{(a)}}"/>. g(x) cannot vanish in a suitably small neighbourhood of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_040b4550cc453e4874bc69ae90a568cf.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x=a" title="x=a"/>, or, the zeros of f(x) are &#8220;isolated&#8221;, unless of course f vanishes identically.<br />
The same is true for <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_4cd6dfc2c8a5f5a5609d483e5973be7f.png" style="vertical-align:-13.5px; display: inline-block ;" alt="f'(x)" title="f'(x)"/>. It follows that in a finite interval an analytical function (and all its derivatives) is (are) piecewise monotone(s), that is, it (they) cannot change its (their) character of monotonicity infinitely often.<br />
As a counter-example, consider the Taylor expansion of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_971_f8a4c3ad98e5e2febf12b02875c000ef.png" style="vertical-align:-29px; display: inline-block ;" alt="sin({1}/{x})" title="sin({1}/{x})"/>. This tends to wildly oscillate as x approaches 0. It crosses the x-axis infinitely many times in any finite interval about the origin. So the zeros at the origin can&#8217;t be said to be isolated.</p>
<p><img class="aligncenter size-full wp-image-306" src="http://rightshift.info/wp-content/uploads/2009/11/sin1.jpg" alt="sin1" width="560" height="210" /></p>
<p><strong>Complexity Matters:</strong></p>
<p>So far, we seemed to have managed quite well on the real number line. Here comes the bomb:<br />
Taylor expansions of:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_979_069beee6b666eee9c6bc5b457fd279e5.png" style="vertical-align:-21px; display: inline-block ;" alt="{1}/{1+x^{2}} = 1 - x^{2} + x^{4} - x^{6} + ...." title="{1}/{1+x^{2}} = 1 - x^{2} + x^{4} - x^{6} + ...."/></p>
<p>or</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_5a14876c64b620e878bd137d57bc323f.png" style="vertical-align:-14px; display: inline-block ;" alt="{tan^{-1}(x)} = x - {{x^{3}}/{3}} + {{x^{5}}/{5}} - ...." title="{tan^{-1}(x)} = x - {{x^{3}}/{3}} + {{x^{5}}/{5}} - ...."/></p>
<p>These expansions also diverge of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_03af1d37304b2ea4da5e91cb70076d2d.png" style="vertical-align:-5.5px; display: inline-block ;" alt="{vert}{x}{vert} >1&#8243; title=&#8221;{vert}{x}{vert} >1&#8243;/>, despite the functions themselves being well-behaved at <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_f7ddfa115e89d3c33eff46c432806f33.png" style="vertical-align:-5.5px; display: inline-block ;" alt="{vert}{x}{vert}=1" title="{vert}{x}{vert}=1"/>. <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_a5df582e56bc7799349c2f64523b354a.png" style="vertical-align:-6px; display: inline-block ;" alt="{WTF}^{infty}" title="{WTF}^{infty}"/>.<br />
It turns out that complex domain is more natural than its real subset.<br />
We note that both <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_979_495edf399cace3fbbcd3b7917d56ee56.png" style="vertical-align:-21px; display: inline-block ;" alt="{1}/{1+x^{2}}" title="{1}/{1+x^{2}}"/> and the expansion of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_03cc4e08e22dcde69af25d3c859c039b.png" style="vertical-align:-13.5px; display: inline-block ;" alt="tan^{-1}(x)" title="tan^{-1}(x)"/> diverge at <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_e2cbb9cd6650a51996c3c33175ebb1b7.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x=pm i" title="x=pm i"/>, where <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_a220d76ffc26235787470a1988a51b28.png" style="vertical-align:-5.5px; display: inline-block ;" alt="i = sqrt{-1}" title="i = sqrt{-1}"/>. Note that the real part of the first function blows up, but for the second function, its the imaginary part that does so.</p>
<p>If we are willing to extend the power series expansion to complex variables, then we&#8217;ll have to upgrade our interval of convergence to circle of convergence. This would mean that if <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_fc836e0f519852bee03cbd89d065fba8.png" style="vertical-align:-13.5px; display: inline-block ;" alt="f(x)" title="f(x)"/> is singular at complex point <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_ef3bd4effd96bebde95186f75eda458d.png" style="vertical-align:-13.5px; display: inline-block ;" alt="z_{1}" title="z_{1}"/>, then its power series expansion about the origin definitely diverges for points farther than <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_ef3bd4effd96bebde95186f75eda458d.png" style="vertical-align:-13.5px; display: inline-block ;" alt="z_{1}" title="z_{1}"/> on the complex domain.<br />
Take the function <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_e104f4ab465db21222a51285e83ca2f2.png" style="vertical-align:-6px; display: inline-block ;" alt="e^{{-1}/{x^{2}}}" title="e^{{-1}/{x^{2}}}"/>, which is quite close to the KVM function. All its derivatives vanish at <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_cfeb251f9a5379190d31d471b6b72182.png" style="vertical-align:-5.5px; display: inline-block ;" alt="x=0" title="x=0"/>. So we cannot expand it in a power series about the origin because <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_d67f236ad7c06074aad72601941e2049.png" style="vertical-align:-6px; display: inline-block ;" alt="e^{{-1}/{(ix)^{2}}}" title="e^{{-1}/{(ix)^{2}}}"/> diverges on the imaginary axis as it tends toward the origin.</p>
<p><img class="aligncenter size-full wp-image-310" src="http://rightshift.info/wp-content/uploads/2009/11/exp1.jpg" alt="exp1" width="560" height="210" /></p>
<p>An arbitrary point <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_1cfd85b4b16bd74555013b09a732afbd.png" style="vertical-align:-5.5px; display: inline-block ;" alt="z" title="z"/> on the complex plane may be defined as <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_388bf879774043848afb0995104d3ac4.png" style="vertical-align:-5.5px; display: inline-block ;" alt="z=re^{i theta}" title="z=re^{i theta}"/>. Then, <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_6bc2c2e0dbe66131428d49a277b87702.png" style="vertical-align:-13.5px; display: inline-block ;" alt="{z^{n}} = {r^{n}}{e^{i n theta}} = {r^{n}}{cos(n theta)} + i {r^{n}}{sin(n theta)}" title="{z^{n}} = {r^{n}}{e^{i n theta}} = {r^{n}}{cos(n theta)} + i {r^{n}}{sin(n theta)}"/>. A singularity at some point <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_ef3bd4effd96bebde95186f75eda458d.png" style="vertical-align:-13.5px; display: inline-block ;" alt="z_{1}" title="z_{1}"/> affects the function expansion everywhere on the circle <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_51d130e3e92950878a0d3c546dc7e0fb.png" style="vertical-align:-13.5px; display: inline-block ;" alt="{vert}{z}{vert} = {vert}{z_{1}}{vert}" title="{vert}{z}{vert} = {vert}{z_{1}}{vert}"/>. The vibrating string has become a 2D membrane. And if all derivatives of the membrane are clamped at some point, then radial (and angular?) excitations from the origin cannot travel beyond the circle centred at the origin, with the clamped point on its circumference.<br />
<a href="http://www.ee.iitm.ac.in/people/faculty/ramachandran.html">HSR</a> once remarked that the EE department at IITM wrongfully exposes its students to Fourier and Laplace transforms before the concept of analytical functions has been taught. Electrical engineers who have studied filter design, should recall all those conditions for &#8220;poles lying on the left half-plane&#8221; or &#8220;outside the unit circle&#8221;, and reinterpret them in the present context.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-317" src="http://rightshift.info/wp-content/uploads/2009/11/complex_plane.jpg" alt="complex_plane" width="448" height="280" /></p>
<p>This domain extension works wonders to our compression ratio discussion. It allows us to reduce the task of function definition from specifying two values at every point on a 2D region to specifying twice (hehe) countably infinite derivatives (real and imaginary) at any one point. There is a strange interplay between real and complex values of the power series expansion of any analytical function, that transcends the absolute vs. conditional convergence picture.</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_829fb904e806ed042ff5eb86ca6e0cf5.png" style="vertical-align:-14px; display: inline-block ;" alt="{(-1)^{n}}{z^{n}} = {(-r)^{n}}{e^{i n theta}} = {(-1)^{n}}{r^{n}}{cos(n theta)} + i {(-1)^{n}}{r^{n}}{sin(n theta)}" title="{(-1)^{n}}{z^{n}} = {(-r)^{n}}{e^{i n theta}} = {(-1)^{n}}{r^{n}}{cos(n theta)} + i {(-1)^{n}}{r^{n}}{sin(n theta)}"/><br />
<img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986_e0d4b77b24134ecd1fcde0328daf1c45.png" style="vertical-align:-14px; display: inline-block ;" alt="{(z^{c})^{n}} = {r^{n}}{e^{-i n theta}} = {r^{n}}{cos(n theta)} + i {(-1)^{n}}{r^{n}}{sin(n theta)}" title="{(z^{c})^{n}} = {r^{n}}{e^{-i n theta}} = {r^{n}}{cos(n theta)} + i {(-1)^{n}}{r^{n}}{sin(n theta)}"/></p>
<p>The cosine and sine functions scale the magnitudes of the real and imaginary values and affect the signs of terms depending on <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_f392ae380e7b9e0d4f9ee039384d190d.png" style="vertical-align:-5.5px; display: inline-block ;" alt="n theta" title="n theta"/>.<br />
It might be worthwhile to see how a rotation transform affects power series expansions.</p>
<p>It is interesting that complex analysis turned out to be so fundamental to our understanding of seemingly trivial math. The Euler exponential notation was more than a calculation and expression aid. And we didn&#8217;t even need quantum mechanics! All of it has much to do with the fact that on a line, there are 2 sides to a point. There are two signs, + and -, as there are 2 kinds of electromagnetic charges. Hence the 2D domain. And a set of two harmonically conjugate solutions for the Laplacian. There cannot be a further extension of the complex domain to higher dimensions in quite the same way real was extended to complex (a la Algebraically closed fields). This was the triumph of 19th century mathematics, when rigour was born. The number 2 was found be holy.</p>
<p><em><strong>Aside:</strong> Parity is a discrete transformation. However, in relativistic quantum mechanics, while studying chiral symmetry of Dirac particles, a parity flip is modelled as a continuous transformation using the pseudo-scalar <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_b31138130392ae59cefc7bc6b3d94da3.png" style="vertical-align:-13.5px; display: inline-block ;" alt="{gamma_{5}}" title="{gamma_{5}}"/> matrix as a generator of rotations on a complex plane. The wavefunction transforms as <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_9e201852ec5c3fcf7a9b250ea7950dc2.png" style="vertical-align:-6px; display: inline-block ;" alt="psi right {e^{i theta gamma_{5}}} psi" title="psi right {e^{i theta gamma_{5}}} psi"/>, and an operator <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_9f518067646bc7ec5187aac5f64232a8.png" style="vertical-align:-6px; display: inline-block ;" alt="H right {e^{i theta gamma_{5}}} H {e^{-i theta gamma_{5}}}" title="H right {e^{i theta gamma_{5}}} H {e^{-i theta gamma_{5}}}"/>. Also, in QED, in perturbative expansions of charge conjugation symmetric processes (like electron-positron annihilation), the observable cannot depend on sign of charge. So it is a power series in <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_65ae374e78230bd166277749aa0525da.png" style="vertical-align:-6px; display: inline-block ;" alt="e^{2}" title="e^{2}"/>, or <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_d50f9308cbed63f78681eb5d428d5a8d.png" style="vertical-align:-5.5px; display: inline-block ;" alt="alpha" title="alpha"/>, the fine structure constant. But in a universe where <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_a6ef8f21c6594480556a403385b82755.png" style="vertical-align:-5.5px; display: inline-block ;" alt="alpha < 0" title="alpha < 0"/>, like charges will attract and opposite charges will repel. This is very unstable, as the only ground-state is two oppositely charged black-holes at infinite distance from eachother. So, if <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_d50f9308cbed63f78681eb5d428d5a8d.png" style="vertical-align:-5.5px; display: inline-block ;" alt="alpha" title="alpha"/> could take values on a complex plane, then all negative real values are a no-no. So there is a branch cut on the complex plane all along the negative real axis, implying that the radius of convergence of a power series expansion in <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_d50f9308cbed63f78681eb5d428d5a8d.png" style="vertical-align:-5.5px; display: inline-block ;" alt="alpha" title="alpha"/> about the origin is zero. So even though <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_d50f9308cbed63f78681eb5d428d5a8d.png" style="vertical-align:-5.5px; display: inline-block ;" alt="alpha" title="alpha"/> is very small, the series don&#8217;t converge. They just happen to be &#8220;asymptotic&#8221; series, which allows physicists to do some amount of close approximation to physics. Now you know why even theoretically computed physical values (like masses) have a computable error bound, and the number of significant digits keep increasing every year.</em></p>
<p><strong>The Search for Hidden Redundancies:</strong></p>
<p>The definition of analytical functions on the complex plane is generally made using the Cauchy-Riemann differential equations. However, Weierstrass is said to have developed the theory of complex analysis from scratch from the point of view of power series expansions. That derivation seems lost to the pages of history written in European languages. Let us see how much further we can explore the compression ratio aspects and built in redundancies in function definition by specification of parameters.</p>
<p>So in a domain where a complex function is analytic (i.e. differentiable in an epsilon-delta limit sense), integration along any closed contour vanishes. But what if we introduce a simple pole (singularity) in the function <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_e98953251f4e0ef4d46316adf5f8241b.png" style="vertical-align:-13.5px; display: inline-block ;" alt="f(t)" title="f(t)"/> at the point <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_1cfd85b4b16bd74555013b09a732afbd.png" style="vertical-align:-5.5px; display: inline-block ;" alt="z" title="z"/> and compute the contour integral around it. We have,</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_948_8b22a3165f97bebba9a6c16a09c4d80e.png" style="vertical-align:-52px; display: inline-block ;" alt="f(z) = {{1}/{2 pi i}} oint{C}{}{{{f(t)}/{t-z}}dt} = {{1}/{2 pi}} int{0}{2 pi}{{f(z+re^{i theta})}d theta}" title="f(z) = {{1}/{2 pi i}} oint{C}{}{{{f(t)}/{t-z}}dt} = {{1}/{2 pi}} int{0}{2 pi}{{f(z+re^{i theta})}d theta}"/></p>
<p>In the region of analyticity, the value of a function is the average of its value in the neighbourhood of the point in question (see how this is true for real functions defined on the real line). Does this also imply that the solution to a Laplacian differential equation is unique if the boundary conditions are fixed? That is a reduction from specifying function values on a 2D domain to specifying on a 1D contour. And since it is analytic along the contour loop, it can be parameterised again by coefficients of angular basis functions, this reducing further into countably infinite space. Every analytical function can be expanded as a power series. If we introduce slightly sharper poles at points and compute contour integrals around them, we have:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_948_b8ca9a43a2f673c08c87417afe47af4d.png" style="vertical-align:-52px; display: inline-block ;" alt="{f^{(nu)}(z_{o})}/{nu !} = {1}/{2 pi i} oint{C}{ }{{f(z_{o}+t)}/{t^{nu +1}} dt} = {1}/{2 pi} int{0}{2 pi}{{f(z_{o} + re^{i theta})}/{r^{nu +1}} {e^{-i (nu +1) theta}} d theta}" title="{f^{(nu)}(z_{o})}/{nu !} = {1}/{2 pi i} oint{C}{ }{{f(z_{o}+t)}/{t^{nu +1}} dt} = {1}/{2 pi} int{0}{2 pi}{{f(z_{o} + re^{i theta})}/{r^{nu +1}} {e^{-i (nu +1) theta}} d theta}"/></p>
<p>The contour integral seems to circle the point <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_90db0d3f580f16f758b626d84a4c33b5.png" style="vertical-align:-13.5px; display: inline-block ;" alt="( nu +1)" title="( nu +1)"/> times clockwise, to yield the <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_2db1e24aa1a6556af3d5683dd8baa6e2.png" style="vertical-align:-6px; display: inline-block ;" alt="{nu}^{th}" title="{nu}^{th}"/> derivative of the function. Note that in the power series expansion, the <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_23305cdbe35993d0c2ed008c664a311b.png" style="vertical-align:-6px; display: inline-block ;" alt="n^{th}" title="n^{th}"/> term (<img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_80dda96f41f351df6d8aea6735413d43.png" style="vertical-align:-5.5px; display: inline-block ;" alt="{z^{n}}={r^{n}}{e^{i n theta}}" title="{z^{n}}={r^{n}}{e^{i n theta}}"/>) also circles a closed contour n times (anti-clockwise, as if to unwind the derivative coefficient). The complex plane comes with strings attached, since every point has a build-in multiplicity (there are n solutions to <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_9d77e72258faa09245f6dd049caeae9d.png" style="vertical-align:-6px; display: inline-block ;" alt="z^{n}=constant" title="z^{n}=constant"/>).</p>
<p>Inverting a function converts poles to zeros and vice versa. Do you see how that affects regions of power series convergence?<br />
If <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_4850b3a84e54575756fd742289d61d25.png" style="vertical-align:-13.5px; display: inline-block ;" alt="f(z)" title="f(z)"/> has an <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_23305cdbe35993d0c2ed008c664a311b.png" style="vertical-align:-6px; display: inline-block ;" alt="n^{th}" title="n^{th}"/> order zero at <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_e33f8865ae27054c9bc8022b15b71287.png" style="vertical-align:-13.5px; display: inline-block ;" alt="z_{o}" title="z_{o}"/>, then it is expressible as <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_970.5_c33895f2d169c8e381dc03201923849e.png" style="vertical-align:-29.5px; display: inline-block ;" alt="{f(z)} = {(z-z_{o})^{n}}{g(z)}" title="{f(z)} = {(z-z_{o})^{n}}{g(z)}"/>, where <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_971_fd1c3bf9294ec630780507caad25728b.png" style="vertical-align:-29px; display: inline-block ;" alt="g(z_{o}) <> 0&#8243; title=&#8221;g(z_{o}) <> 0&#8243;/>. The inverse function <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_961_59898074ae5d1568ba7d489375394cf0.png" style="vertical-align:-39px; display: inline-block ;" alt="{1}/{f(z)} = q(z) = {h(z)}/{(z-z_{o})^{n}}" title="{1}/{f(z)} = q(z) = {h(z)}/{(z-z_{o})^{n}}"/> . The inverse function <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_961_59898074ae5d1568ba7d489375394cf0.png" style="vertical-align:-39px; display: inline-block ;" alt="{1}/{f(z)} = q(z) = {h(z)}/{(z-z_{o})^{n}}" title="{1}/{f(z)} = q(z) = {h(z)}/{(z-z_{o})^{n}}"/> (<img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_8118925d9bebb79c4624464757f529a0.png" style="vertical-align:-13.5px; display: inline-block ;" alt="h(z)" title="h(z)"/> is analytic in the neighbourhood of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_e33f8865ae27054c9bc8022b15b71287.png" style="vertical-align:-13.5px; display: inline-block ;" alt="z_{o}" title="z_{o}"/>), can be expanded as,</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_970.5_7cf012a2c84edd231ea7841414a6a56a.png" style="vertical-align:-29.5px; display: inline-block ;" alt="q(z) = {c_{-n}}{(z-z_{o})^{-n}} + .... + {c_{-1}}{(z-z_{o})^{-1}} +{ c_{0}} + {c_{1}}{(z-z_{o})} + ...." title="q(z) = {c_{-n}}{(z-z_{o})^{-n}} + .... + {c_{-1}}{(z-z_{o})^{-1}} +{ c_{0}} + {c_{1}}{(z-z_{o})} + ...."/></p>
<p>A contour integral of negative index terms of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_9dde2a2a1b475afed3c5e8ad1896bc3b.png" style="vertical-align:-13.5px; display: inline-block ;" alt="q(z)" title="q(z)"/> around <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_e33f8865ae27054c9bc8022b15b71287.png" style="vertical-align:-13.5px; display: inline-block ;" alt="z_{o}" title="z_{o}"/> gives <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_465421e34d64483a0d4af577b9c28464.png" style="vertical-align:-13.5px; display: inline-block ;" alt="2 pi {c_{-1}}" title="2 pi {c_{-1}}"/>, and the higher negative power terms vanish. The residue of a function at a pole is therefore <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_465421e34d64483a0d4af577b9c28464.png" style="vertical-align:-13.5px; display: inline-block ;" alt="2 pi {c_{-1}}" title="2 pi {c_{-1}}"/>.<br />
The theorem of residues, which best illustrates the information compression ratio, states that if a function <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_4850b3a84e54575756fd742289d61d25.png" style="vertical-align:-13.5px; display: inline-block ;" alt="f(z)" title="f(z)"/> is analytic in the interior of a region R and on its boundary C except at a finite number of interior poles, the integral of the function taken around C in the positive sense is equal to the sum of the residues of the function at the poles enclosed by the boundary C.</p>
<p><strong>So Why Power Series??</strong></p>
<p>Consider the polynomial expression,<br />
<img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_c6bf2734c8f8908a50a6c06ddcb96809.png" style="vertical-align:-13.5px; display: inline-block ;" alt="{a_{0}} + {a_{1}}{z} + {a_{2}}{z^{2}} + .... + {a_{n}}{z^{n}} = {P(z)}" title="{a_{0}} + {a_{1}}{z} + {a_{2}}{z^{2}} + .... + {a_{n}}{z^{n}} = {P(z)}"/></p>
<p>For some real parameter <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_a461d688d013e47c4010387e7922940d.png" style="vertical-align:-5.5px; display: inline-block ;" alt="t" title="t"/>, take the integral along any closed path C in the z-plane, which does not pass through any of the zeros of P(z),<br />
<img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_948_80a40e38d2b5e00d35e77dcc53801f45.png" style="vertical-align:-52px; display: inline-block ;" alt="u(t) = oint{C}{}{{e^{tz}f(z)}/{P(z)}{dz}}" title="u(t) = oint{C}{}{{e^{tz}f(z)}/{P(z)}{dz}}"/><br />
Let f(z) be a constant or any polynomial in z, of a degree we shall assume to be less than <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_a45192846640be85b0edaca33c2a3d3b.png" style="vertical-align:-5.5px; display: inline-block ;" alt="n" title="n"/>, so that the integrand behaves well at infinity. The successive derivatives of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_bff263f6339887070aa435f9f9a1627d.png" style="vertical-align:-13.5px; display: inline-block ;" alt="u(t)" title="u(t)"/> with respect to <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_a461d688d013e47c4010387e7922940d.png" style="vertical-align:-5.5px; display: inline-block ;" alt="t" title="t"/> under the integral sign is equivalent to multiplication of the integrand by <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_5cee173f82971f56a399a45994de6b65.png" style="vertical-align:-6px; display: inline-block ;" alt="z, {z^{2}}, {z^{3}}, ...." title="z, {z^{2}}, {z^{3}}, ...."/> as the case may be. If we now form the differential expression <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_979_d431b7163dd2ae7dffa18c3f1961e848.png" style="vertical-align:-21px; display: inline-block ;" alt="L{[}{u}{]} = {a_{0}}{u} + {a_{1}}{{du}/dt} + {a_{2}}{{{d}^{2}u}/{dt^{2}}} + .... + {a_{n}}{{{d}^{n}u}/{dt^{n}}}" title="L{[}{u}{]} = {a_{0}}{u} + {a_{1}}{{du}/dt} + {a_{2}}{{{d}^{2}u}/{dt^{2}}} + .... + {a_{n}}{{{d}^{n}u}/{dt^{n}}}"/>, or in symbolic operator notation, <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_d83058e151e6a493fdbcee506eee8ff3.png" style="vertical-align:-13.5px; display: inline-block ;" alt="P(D)u" title="P(D)u"/>, we have,<br />
<img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_966.5_22321852a55da13606e1c11c670ddb02.png" style="vertical-align:-33.5px; display: inline-block ;" alt="P(D)u = L{[}{u}{]} = oint{C}{}{{e^{tz}}{f(z)}{dz}} = 0" title="P(D)u = L{[}{u}{]} = oint{C}{}{{e^{tz}}{f(z)}{dz}} = 0"/><br />
So <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_bff263f6339887070aa435f9f9a1627d.png" style="vertical-align:-13.5px; display: inline-block ;" alt="u(t)" title="u(t)"/> is a solution for the differential equation <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_2cdb4d9c7f4115990dfa53c846fd5e20.png" style="vertical-align:-13.5px; display: inline-block ;" alt="P(D)u = 0" title="P(D)u = 0"/>, and the <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_a45192846640be85b0edaca33c2a3d3b.png" style="vertical-align:-5.5px; display: inline-block ;" alt="n" title="n"/> arbitrary constants from the polynomial <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_4850b3a84e54575756fd742289d61d25.png" style="vertical-align:-13.5px; display: inline-block ;" alt="f(z)" title="f(z)"/> are the constants of integration.<br />
Most differential equations engineers and scientists study can be constructed out of polynomial type operators. If <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_8adf553a3ce422696b23aa67b5785d28.png" style="vertical-align:-13.5px; display: inline-block ;" alt="{a_{o}} <> 0&#8243; title=&#8221;{a_{o}} <> 0&#8243;/> and,<br />
<img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_973_c988955ff900cad1c5da1174bd5b0075.png" style="vertical-align:-27px; display: inline-block ;" alt="{1}/{a_{0} + {a_{1}}{t} + {a_{2}}{t^{2}} + .... + {a_{n}}{t^{n}}} = {b_{0}} + {b_{1}}{t} + {b_{2}}{t^{2}} + ...." title="{1}/{a_{0} + {a_{1}}{t} + {a_{2}}{t^{2}} + .... + {a_{n}}{t^{n}}} = {b_{0}} + {b_{1}}{t} + {b_{2}}{t^{2}} + ...."/></p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_973_c988955ff900cad1c5da1174bd5b0075.png" style="vertical-align:-27px; display: inline-block ;" alt="{1}/{a_{0} + {a_{1}}{t} + {a_{2}}{t^{2}} + .... + {a_{n}}{t^{n}}} = {b_{0}} + {b_{1}}{t} + {b_{2}}{t^{2}} + ...." title="{1}/{a_{0} + {a_{1}}{t} + {a_{2}}{t^{2}} + .... + {a_{n}}{t^{n}}} = {b_{0}} + {b_{1}}{t} + {b_{2}}{t^{2}} + ...."/></p>
<p>then the solution of <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_979_dcfa25580c043278b13d2fdd8f629fec.png" style="vertical-align:-21px; display: inline-block ;" alt="{a_{0}}{u} + {a_{1}}{{du}/{dx}} + {a_{2}}{{{d}^{2}u}/{dx^{2}}} + .... + {a_{n}}{{d^{n}u}/{dx^{n}}} = {R(x)}" title="{a_{0}}{u} + {a_{1}}{{du}/{dx}} + {a_{2}}{{{d}^{2}u}/{dx^{2}}} + .... + {a_{n}}{{d^{n}u}/{dx^{n}}} = {R(x)}"/> is,<br />
<img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_979_aba2a2c8722eef01a9b8f646d51b27bf.png" style="vertical-align:-21px; display: inline-block ;" alt="u(x) = {b_{0}}{R(x)} + {b_{1}}{{dR(x)}/{dx}} + {b_{2}}{{d^{2} R(x)}/{dx^{2}}} + ...." title="u(x) = {b_{0}}{R(x)} + {b_{1}}{{dR(x)}/{dx}} + {b_{2}}{{d^{2} R(x)}/{dx^{2}}} + ...."/></p>
<p>and if <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_67c90a92da9ece3d11c24aebaf17ab9b.png" style="vertical-align:-13.5px; display: inline-block ;" alt="a_{0}=0" title="a_{0}=0"/> but <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_f986adef56ce62a775c62a789d4475f7.png" style="vertical-align:-13.5px; display: inline-block ;" alt="a_{1} <> 0&#8243; title=&#8221;a_{1} <> 0&#8243;/>,<br />
<img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_973_0ff8822a4be2e000ad20730725b451f0.png" style="vertical-align:-27px; display: inline-block ;" alt="{1}/{{a_{1}}{t} + {a_{2}}{t^{2}} + .... + {a_{n}}{t^{n}}} = {b}{t^{-1}} + {b_{0}} + {b_{1}}{t} + {b_{2}}{t^{2}} + ...." title="{1}/{{a_{1}}{t} + {a_{2}}{t^{2}} + .... + {a_{n}}{t^{n}}} = {b}{t^{-1}} + {b_{0}} + {b_{1}}{t} + {b_{2}}{t^{2}} + ...."/></p>
<p>and,</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_973_0ff8822a4be2e000ad20730725b451f0.png" style="vertical-align:-27px; display: inline-block ;" alt="{1}/{{a_{1}}{t} + {a_{2}}{t^{2}} + .... + {a_{n}}{t^{n}}} = {b}{t^{-1}} + {b_{0}} + {b_{1}}{t} + {b_{2}}{t^{2}} + ...." title="{1}/{{a_{1}}{t} + {a_{2}}{t^{2}} + .... + {a_{n}}{t^{n}}} = {b}{t^{-1}} + {b_{0}} + {b_{1}}{t} + {b_{2}}{t^{2}} + ...."/><br />
and,</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_979_d44de3ab383f8106314b4828143e03f8.png" style="vertical-align:-21px; display: inline-block ;" alt="u(x) = {b} {int{}{}{R(x)dx} + {b_{0}}{R(x)} + {b_{1}}{{dR(x)}/{dx}} + {b_{2}}{{d^{2}R(x)}/{dx^{2}}} + ....}" title="u(x) = {b} {int{}{}{R(x)dx} + {b_{0}}{R(x)} + {b_{1}}{{dR(x)}/{dx}} + {b_{2}}{{d^{2}R(x)}/{dx^{2}}} + ....}"/></p>
<p><a href="http://hsb.iitm.ac.in/~vbalki/">Balki</a> once claimed that if all of Calculus had to be summed up in one single useful sentence, it would read, &#8220;An exponential grows faster than a polynomial, which grows faster than a logarithm&#8221;. The definition of a differential element as a linear increment of the independent variable, and the practice of solving polynomial operator type differential equations, has lead to the extensive use of power series in analysing mathematics, instead of other types of expansions. However, linear diffential operators of infinite order, like the time evolution operator in Quantum mechanics, and the generator formalism for infinitesimal transformations have been explored as well.</p>
<p>As for the KVM function, every derivative at <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_3b299e4760d6c3ff54cef0036f1388d7.png" style="vertical-align:-6px; display: inline-block ;" alt="x = 0^{+}" title="x = 0^{+}"/> vanishes because they are all products of a diverging polynomial factor and a converging (vanishing) exponential factor. If one were to blindly Taylor-expand the function about the origin, all the polynomial factors from all the terms will seem to add up to something formidable, even compared to the common vanishing exponential factor. The <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_104e0cfb512d0848d554ed94a7a11e1a.png" style="vertical-align:-6px; display: inline-block ;" alt="{infty}^{th}" title="{infty}^{th}"/> derivative does seem to be of order <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_a705df16cbdc4d3297dcbad9a3af426a.png" style="vertical-align:-5.5px; display: inline-block ;" alt="infty !" title="infty !"/>, although understandably indecisive about its sign.</p>
<p><strong>[BLINK] Plugin missing <img src='http://rightshift.info/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
</strong></p>
<p>We started by stating that analytical functions can be at worst specified uniquely by a countably infinite number of parameters. In the power series expansion notation, these parameters turned out to be successive derivatives of the function at a point. However, from early lessons in probability density function theory, one may recall a similar set of parameters which are defined by the integration operator. A function on the real number line could well be uniquely specified by its mean, variance, and all the higher moments <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_962.5_e9744da277cf4edfc184a84fcdee0a2d.png" style="vertical-align:-37.5px; display: inline-block ;" alt="int{}{}{{(x-x_{o})^{n}}{f(x)}{dx}}" title="int{}{}{{(x-x_{o})^{n}}{f(x)}{dx}}"/> about any point. I wonder how this would translate to the complex plane, since analyticity doesn&#8217;t seem to play a role at first glance (but normalizability matters . . . . a lot . . . ). This might hint at the duality between differential equations and lagrangian formalisms. Are the invariant constants dictated by Noether&#8217;s theorem applied to the Lagrangian formalism directly related to the constants of integration arising from the differential equation formalism? Karthik&#8217;s next post promises to enlighten us regarding some aspects of this.</p>
<p><strong>Epistemology, and the possible non-futility of Modelling:</strong></p>
<p>KVM&#8217;s Rubel post was preceded by his disdain for all modelling. However, one must ask what it truly means to have understood a phenomena, as opposed to having merely &#8220;modelled&#8221; it. All our analysis seem to be restricted to analytical functions, but they are a small subset of all possible functions. Wiki claims that:</p>
<blockquote><p>In a measure-theoretic sense: when the space C([0, 1]; R) is equipped with classical Wiener measure <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_2464c4258999a5382bffeaef328ebe84.png" style="vertical-align:-5.5px; display: inline-block ;" alt="gamma" title="gamma"/>, the collection of functions that are differentiable at even a single point of [0, 1] has <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_2464c4258999a5382bffeaef328ebe84.png" style="vertical-align:-5.5px; display: inline-block ;" alt="gamma" title="gamma"/>-measure zero. The same is true even if one takes finite-dimensional &#8220;slices&#8221; of C([0, 1]; R): the nowhere-differentiable functions form a prevalent subset of C([0, 1]; R).</p></blockquote>
<p>How curious, that most natural processes can be easily described by analytical functions alone? Or can they? Aren&#8217;t singularities our greatest unconquered enemies? In my view, the non-rapid, piecewise monotonic behaviour appeals to an aesthetic sense of the human mind, which has evolved to expect small input changes to have small observable effects, at least in the short run. Are we then destined to know the universe only to a close approximation?</p>
<p>Does a mere knowledge of a handful of parameters qualify as knowledge of a process? Is the definition of the class of functions of the solution important? At what point of generalisation does a predictive DE (as defined by KVM) become a shrink DE? Is it NOT amazing that group symmetries helped define previously unobserved fundamental particles in high-energy physics? Is &#8220;intuitive feel&#8221; all we have?</p>
<p>Needless to say, <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994_6e2c1b98d952070f359bc47cd21c1525.png" style="vertical-align:-6px; display: inline-block ;" alt="C^{infty}" title="C^{infty}"/> continuity is yet to be demystified. But I hope I have motivated a domain for analysis. If this entire post is to be condensed into a single valuable sentence, it would read, &#8220;2 is a holy number&#8221;.</p>
<p>References:-<br />
1&gt; Richard Courant, Fritz john, &#8220;Introduction to Calculus and Analysis&#8221;, Vol. I. and II.<br />
2&gt; My class notes.<br />
3&gt; Wikipedia</p>
<p>Other suggested reading:-<br />
1&gt; <a href="http://www.physics.iitm.ac.in/~labs/dynamical/pedagogy/">Balki&#8217;s arguments for why 3 is a holy number.</a><br />
2&gt; Rubel&#8217;s original paper: Rubel, L. A. <strong>&#8220;A Universal Differential Equation.&#8221;</strong> <em>Bull. Amer. Math. Soc.</em> <strong>4</strong>, 345-349, 1981.<br />
3&gt; <a href="http://www.gap-system.org/~history/Biographies/Weierstrass.html">Weierstrass</a>&#8217;s original unpublished works, if you can find them.</p>
]]></content:encoded>
			<wfw:commentRss>http://rightshift.info/?feed=rss2&amp;p=234</wfw:commentRss>
		</item>
		<item>
		<title>Format:Text</title>
		<link>http://rightshift.info/?p=216</link>
		<comments>http://rightshift.info/?p=216#comments</comments>
		<pubDate>Sat, 17 Oct 2009 05:34:20 +0000</pubDate>
		<dc:creator>Karthik</dc:creator>
		
		<category><![CDATA[Karthik's]]></category>

		<category><![CDATA[data formats]]></category>

		<category><![CDATA[fringe-concerns]]></category>

		<category><![CDATA[regexes]]></category>

		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://rightshift.info/?p=216</guid>
		<description><![CDATA[
  
The following is an essay I wrote elaborating upon the power of plain text as a digital medium. I love text based data formats; I work with plain text for nearly everything. I love working at a shell- GUIs frustrate me. I am not an authority on the subjects of GUIs and data [...]]]></description>
			<content:encoded><![CDATA[<p><html><br />
  <body></p>
<p>The following is an essay I wrote elaborating upon the power of plain text as a digital medium. I love text based data formats; I work with plain text for nearly everything. I love working at a shell- GUIs frustrate me. I am not an authority on the subjects of GUIs and data formats&mdash;I am an end user. Paul Graham says in his inspiring<br />
<a href="http://www.paulgraham.com/essay.html">essay on essays</a>:</p>
<blockquote>
<p class="quoted">An essay is something you write to try to figure something out.</p>
</blockquote>
<blockquote>
<p class="quoted">Figure out what? You don&#8217;t know yet. And so you can&#8217;t begin with a thesis, because you don&#8217;t have one, and may never have one. An essay doesn&#8217;t begin with a statement, but with a question.</p>
</blockquote>
<p>And that explains (in retrospect) why I sat down one evening and hammered out a few thousand words about <em>text</em>, of all things. I was trying to figure out why I liked text so.</p>
<p>He continues:</p>
<blockquote>
<p class="quoted">&#8230;if you want to write essays, you need two ingredients: a few topics you&#8217;ve thought about a lot, and some ability to ferret out the unexpected.</p>
</blockquote>
<p>I certainly pass the first requirement, not so much the second! As a technical discourse, this essay will often be in error, and go nowhere on the whole. Read as a whimsical opinion piece about my fascination with all things plain text, however, it makes a smidgen more sense.</p>
<p><span id="more-216"></span><br />
</p>
<h3>Verbiage</h3>
<p class="first">Nested firmly between screen and seat, I take stock of how much of what I see is words. I write this in a text editor, with a browser and a music player open in the background. The browser is best navigated with a mouse; nevertheless, the primary interaction with it involves typing in a URL. A text editor is (by definition) all text&mdash;but in addition, I ask things of it, and I ask by typing in commands. The music player lets me click on text naming songs, and on buttons for issuing play commands, but it is not long before I have to recourse to the keyboard to search for a song.</p>
<p>A remarkably large chunk of our method of instructing our personal computers is done with pointing devices, and we like seeing large friendly buttons and boxes telling us where to click. Nevertheless, one finds that many actions involve the typing of text by design, perhaps because there is no other way to design these applications to do something for you. As anyone who&#8217;s been at a computer for more than a few minutes realizes, this need is marked by that annoying phase of reaching over to the keyboard from the mouse.</p>
<p>The frequent fallback to the keyboard is often accepted, especially by us later generations of users brought up on &quot;intuitive&quot; GUIs, as a remaining vestige of the days when text was the only means of interaction with a computer. Surely this need will be dispensed with in time?</p>
<p>This is a one-sided view of a larger set of tradeoffs we make in our use of computers everyday: automation vs control, obfuscation vs complexity, ease of use vs power and GUIs vs text interfaces&mdash;the one that intrigues me the most.</p>
<p>Neal Stephenson&#8217;s <a href="http://www.cryptonomicon.com/beginning.html">In The Beginning Was The Command Line</a> is a <em>brilliant,</em> meandering discourse on user interfaces, among other things. If you haven&#8217;t read it yet, you ought to stop reading this and go take a look<sup><a class="footref" name="fnr.1" href="#fn.1">1</a></sup>. (Like, right now).</p>
<p>Operating systems like to present us with clever visual metaphors. Nearly everyone who&#8217;s used a computer for a while realizes that there is no micro-benchpress compressing a folder when you&#8217;re shown an animation of the same, and that pages don&#8217;t fly over across folders when you issue a move command. Of course, in reality these metaphors are multi-layered; multiple levels of abstraction, each progressively twisting and distorting our view of the innards of frighteningly complex hardware carrying out equally frightening terrible processes.</p>
<p>In principle, the user is free to choose one of these realms of abstraction to &quot;reside on&quot;, to accept a comfortable level of benign deceit. In practice, most of us have had this choice made for us by others; in most cases without our awareness or consent. (Perhaps this is a good thing. Choice scares us.) This essay peels back just half a layer&mdash;a limited under-the-hood tour of how nearly everything comes down to (plain) text at some point in our interaction with computers.</p>
<p></p>
<h3>A Wordy Net</h3>
<p class="first">Around the winter of 2004, I spent about four hours in the vicinity of a person deeply absorbed in manipulating lots of gibberish on his terminal. I asked him what it was that was forcing him to sort through bales of noise. &quot;They&#8217;re email headers!&quot;, he said.</p>
<p>&quot;Email <em>what</em>?&quot;</p>
<p>&quot;Headers. It&#8217;s a bunch of text part of every email.</p>
<p>I responded that it was strange, then, that I&#8217;d never seen one of those. There is a lot of text (often gibberish, but text nevertheless) associated with email, text that identified the sender, subject and recipient, time stamps, and every automated agent that was involved in the transfer of the email. A one line email is accompanied by more than ten times as much of (meta)information about the email! Mail services and clients go to great lengths to hide the header from the user<sup><a class="footref" name="fnr.2" href="#fn.2">2</a></sup>; this exchange of headers is a machination of the æther, designed by humans but not meant for them.</p>
<p>I realized in the following years that it was not just email&mdash;many of the invisible exchanges on the Internet are padded with snippets of text; snippets that, if you read carefully, appear to tell the story of their origin. At the lowest level, every data packet sent over the Internet possesses a header stating IP addresses and the format of the data&mdash;although we do not need to sniff that low.</p>
<p>Nearly all services offered on the Internet are composed of easily readable text. For instance, here is a snippet of the RSS feed of the site where this is published<sup><a class="footref" name="fnr.3" href="#fn.3">3</a></sup>:</p>
<blockquote>
<p class="quoted">
<pre class="example"> http://rightshift.info Bionic Raptors ate this taglir:...
    Sun, 07 Jun 2009 11:46:00 +0000 http://backend.userland.com/rss092
    en Blink, Morse In the novel *Cryptonomicon*, one of the lead
    characters finds himself implicated in a (comical) drug bust, and
    is placed in a jail cell under the watchful (electronic) eyes of
    hi-tech eavesdroppers. It's a scene out of a spy novel (although
    *Cryptonomicon* isn't quite that), minus the secret agents, plus
    ... http://rightshift.info/?p=138 \u201cWhy are you producing so
    few red blood cells today?\u201d An interesting note from six
    months ago that I never got around to posting. 'tis a bit vague,
    but then so is the source. Besides, I like to think that
    nebulousness has its share of merits- trickster makes this world,
    after all.
</pre>
</blockquote>
<p>(For the uninitiated, an RSS feed is a service (and protocol) that offers the content of a website to users. Primarily, it obviates the need to visit a website to access updated content.)</p>
<p>There&#8217;s plenty of crud in there, but if I stare at it long enough, easily identifiable patterns emerge. I see timestamps, URLs and sample content from previous posts, arranged in order&mdash;and just like that, I begin to understand how a feed reader (aggregator) works. Retreiving content from this website, filtering out bits not meant for our eyes, and printing it to a window involves exchange of text at several levels, and little else.</p>
<p>Most Internet thoroughfare works the same way. HTML (and its cousins) are text-based &quot;markup&quot; languages, and sure enough, they begin a document with an explanatory header. Images and audio files come with text snippets attached. Who makes up these rules?</p>
<p><a href="http://www.ietf.org">These guys</a> do. In particular, they release abstrusely named documents called Request(s) For Comments. That is where the rules of the æther are made up. And it&#8217;s all text. For instance, here is the <a href="http://tools.ietf.org/html/rfc2822">RFC for email messages</a><sup><a class="footref" name="fnr.4" href="#fn.4">4</a></sup>.</p>
<p>Why are things this way? My first thought is: <em>How else could things be?</em> But it is not too hard to imagine an Internet where all services talk with bits of binary data. Indeed, plain text has low information content per character, so using binary padding might conserve bandwidth. I reckon the architects stuck with text because the machinations in the æther will truly be lost to us otherwise&mdash;plain text is the most <em>natural</em> format for the transfer of information, albeit not the most efficient Thankfully, manageability was chosen over efficiency when the Internet was being realized.<sup><a class="footref" name="fnr.5" href="#fn.5">5</a></sup></p>
<p></p>
<h3>Plain Old Text</h3>
<p><em>Text is the spine of the Internet.</em></p>
<p>What of it? The point is that text is a fantastic medium for information exchange <em>between humans</em>.</p>
<p>When you edit a configuration file in /etc in Linux, you&#8217;re not so much instructing the operating system as you are the person who set up the configuration in the first place. You tell him what you want your OS to do for you, in plain English, and he spells it out&mdash;he already has&mdash;in computerese. It&#8217;s the same with text and the Internet.</p>
<p>But all of that is just half the story.</p>
<p>At this point, it would be germane to elaborate upon the difference between text and plain text&mdash;at least as I use these terms in this essay.</p>
<p>By text, I mean any combination of ASCII (or its supersets, such as UTF-8) characters. The only common feature of entities in this category is that every character is human-readable. This would include all source code, markup code, email (and other) headers, and text like that found on this page.</p>
<p>Plain text refers to text written in English (or any other language, for that matter) with no characters to be interpreted specially<br />
(&quot;escaped&quot;). By extension, a plain text file is one that contains plain text and nothing else. Traditionally, this corresponds to the contents of .txt files.</p>
<p>The only type of file we&#8217;ve left out is the <a href="http://en.wikipedia.org/wiki/Binary_files">binary file</a>&mdash;which can be conveniently slotted away as a file whose contents do not satisfy the above criteria. (A Microsoft Word document is a binary file, even though under the right conditions you can read plain text off of it.)</p>
<p>Plain text (and text in general) is a very powerful medium for storing and retreiving information. It&#8217;s the best we have today, for a number of reasons. In the light of the tradeoffs in usage mentioned earlier, the place of plain text is a very important one: Form (word processors) vs Content (text editors).</p>
<p>Plain text is highly portable. It doesn&#8217;t matter what OS you&#8217;re on. It doesn&#8217;t matter what software you have installed. It doesn&#8217;t matter what kind of display you use. You can read it on your phone and your ebook reader. In fact, if you can see a blinking cursor in a forty year old teletype, you can use it to read text. You could read it off a mainframe forty years ago. And when I think about it, it is quite likely that this is the only existing format we will be able to read off whatever device we use forty years from now.</p>
<p>It&#8217;s stable. A corrupt binary file is a nightmare to recover. By virtue of being human readable, handling a corrupt text file is a relatively pleasant prospect. As a bonus, plain text documents work the best with <a href="http://en.wikipedia.org/wiki/Version_control">version control</a> systems. In short, that means a text file is the easiest kind of file to track changes in and back up.</p>
<p>Text is easy to compose. There is no learning curve<sup><a class="footref" name="fnr.6" href="#fn.6">6</a></sup> because you&#8217;ve been doing it all your life. Plain (unformatted) text is often easier on the eyes when you read, as well.</p>
<p>In a plain text document, the focus is on the content, not bling. Agreeably, there are situations when it is prudent to chose form over content, but most often (for essays such as this, say) this is not the case.</p>
<p>With very simple tools, plain text (and text in general) is very malleable. In the hands of a texpert<sup><a class="footref" name="fnr.7" href="#fn.7">7</a></sup>, plain text is amazingly efficient. No other data format comes close when it comes to manipulability.</p>
<p>The above reads like a checklist of reasons not to use Word, but the intended message is general in nature.<sup><a class="footref" name="fnr.8" href="#fn.8">8</a></sup> For sheer power, no format I have ever used matches up. (But then I&#8217;m not a programmer, and there are several binary formats I haven&#8217;t tried.)</p>
<p>What plain text files are not: They aren&#8217;t good containers for large files. There is a parsing overhead involved in reading text files, and random access to some part of the file without having to read the whole thing is hard.<sup><a class="footref" name="fnr.9" href="#fn.9">9</a></sup> They don&#8217;t handle associations well- text files don&#8217;t make for good spreadsheets. Of course, better ways to deal with large files also involve text, just not plain text.</p>
<p>For storing and exchanging information, text is the format of the Internet and the format of the OS. In retrospect, this is not as surprising&mdash;text is, after all, the natural format for exchanging information between us humans, and we built all of that.</p>
<p></p>
<h3>M-x butterfly</h3>
<p class="first">All of which implies that we require means of generating and modifying this information in the first place. Enter the text editor&mdash;considered to be one of the pillars of a usable operating system.<br />
<a href="http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;taxonomyName=Operating+Systems&amp;articleId=9133570&amp;taxonomyId=89">This description</a> illustrates:</p>
<blockquote>
<p class="quoted">In August 1969, Ken Thompson, a programmer at AT&amp;T subsidiary Bell Laboratories, saw the month-long departure of his wife and young son as an opportunity to put his ideas for a new operating system into practice. He wrote the first version of Unix in assembly language for a wimpy Digital Equipment Corp. (DEC) PDP-7 minicomputer, spending one week each on the operating system, a shell, an editor and an assembler.</p>
</blockquote>
<p>Among programmers, text editors are revered pieces of software, used and proselytised about with religious fervour. Or so the Internet suggests. I&#8217;m not a programmer<sup><a class="footref" name="fnr.10" href="#fn.10">10</a></sup> <sup><a class="footref" name="fnr.11" href="#fn.11">11</a></sup>, but I still spend an inordinate amount of time hammering away in a text editor, so I understand what the fuss is about, somewhat. Plain text is much more powerful than most people give it credit for. How efficiently it works for you depends on the editor you use, with Notepad (the one bundled with Windows) at the bottom of the utility ladder and several contenders fighting for the top spot.</p>
<p>Neal Stephenson is commonly quoted on his statement about text editors<sup><a class="footref" name="fnr.12" href="#fn.12">12</a></sup>, from his above mentioned essay:</p>
<blockquote>
<p class="quoted">In the GNU/Linux world there are two major text editing programs: the minimalist vi (known in some implementations as elvis) and the maximalist emacs. I use emacs, which might be thought of as a thermonuclear word processor. It was created by Richard Stallman; enough said. It is written in Lisp, which is the only computer language that is beautiful. It is colossal, and yet it only edits straight ASCII text files, which is to say, no fonts, no boldface, no underlining. In other words, the engineer-hours that, in the case of Microsoft Word, were devoted to features like mail merge, and the ability to embed feature-length motion pictures in corporate memoranda, were, in the case of emacs, focused with maniacal intensity on the deceptively simple-seeming problem of editing text. If you are a professional writer&mdash;i.e., if someone else is getting paid to worry about how your words are formatted and printed&mdash;emacs outshines all other editing software in approximately the same way that the noonday sun does the stars. It is not just bigger and brighter; it simply makes everything else vanish.</p>
</blockquote>
<p>Emacs is indeed comparable to Microsoft Word in scope (and little else, thankfully). If you&#8217;ve ever traversed the depths of the sub-menus in Microsoft Word and taken stock of the things you can do, you must wonder what functionality emacs could provide in handling plain text alone that compares.<sup><a class="footref" name="fnr.13" href="#fn.13">13</a></sup> Rephrased, that question reads:</p>
<p>&quot;How much can a text editor do with plain text anyway?&quot;</p>
<p>It&#8217;s a valid question, deserving of an example-laden tour around emacs-town<sup><a class="footref" name="fnr.14" href="#fn.14">14</a></sup>, but it would be an unwelcome digression here. In short, a powerful text editor makes it a pleasure to compose text by encouraging economy of motion, automating repetitive tasks, and making it easy to (re-)configure its behaviour to suit your needs.</p>
<p>The best text editors are comparable to sheets of surgical steel. You can&#8217;t do much with it at first&mdash;you&#8217;ll cut your fingers on the edges if you try too hard. It needs to be tempered, beaten into shape, ground, polished and sharpened until you can use it as a scalpel. But it is, by then, <em>your</em> scalpel and yours alone&mdash;it fits in your palm like it belongs there (and it does). Because you spent time training with it even as you forged the instrument, you can now use the scalpel to execute deft maneuvers, to do in seconds what took minutes with the blunt knife you were using before. It will take years to test every cut the scalpel can make, but you will already have achieved a level of proficiency with it that will make you wonder how you ever managed without it.</p>
<p>The other powerful tool when handling text is a language for matching strings (of characters) of interest, known as regular expressions. Regular expressions let you specify a pattern of characters that you are interested in by stating <em>rules</em> to be followed by the expression processor. This is a much more powerful way of searching text compared to specifying a string itself&mdash;it is very nearly<sup><a class="footref" name="fnr.15" href="#fn.15">15</a></sup> like setting an assistant on the job of, say, finding every sentence in this essay that contains exactly fourteen nonconsecutive e&#8217;s but no reference to a footnote.</p>
<p><a href="http://xkcd.com/208/">Whimsical examples</a> aside, regular expressions are used everyday to separate valuable information from torrents of raw text, but they are often stated to be a <a href="http://regex.info/blog/2006-09-15/247">double edged sword</a>. I love them, though. It helps that all self-respecting text editors have built-in support for regular expression syntax.</p>
<p>My morbid fascination with all things text is tied intricately to the tools I use to handle it. And there is no dearth of tools for handling plain text&mdash;on a standard install of the Linux operating system, there are dozens of programs (Unix shell utilities) that operate on text, and they can all be made to talk to each other, stringing together tasks to carry out complex transformations of the input. If this corpus of little tools prove insufficient, any of several programming languages (Perl, Python&mdash;also usually included) allows for writing scripts that process text in complicated (and inane) ways quite easily.</p>
<p>This stringing together (piping) of tools is an extremely useful idea. At a command line, programs act on strings of text passed to them as arguments&mdash;so one could, for instance, rename a thousand files at once by constructing a regular expression for the kind of filename to be renamed and the string to be renamed to, and giving the old and new names to the Unix rename-file command. As a consequence of the operating system&#8217;s text based interface, easily manipulated text corresponds to an easily controlled operating system!</p>
<p>This is an unexpected revelation. Every advantage that plain text enjoys is an advantage for systems that incorporate them into their control structure as well. It&#8217;s a subtle idea at first for those of us inundated with visual metaphors for using a computer. Once you begin poking under the hood, however, there&#8217;s no turning back.</p>
<p></p>
<h3>Word</h3>
<p class="first">No one believes they lack perspective until they&#8217;ve acquired some of it. I did not realize how fractured my view of technology was until a professor at college casually mentioned that the map is one of the most underrated technologies in the history of man; it made conquest<br />
(and imperialism) possible. One is used to thinking of cartography as an art, maybe, and definitely a skill, but not technology.</p>
<p>At some point, thinking about what counts as technology becomes a game of semantics- but a few (somewhat) startling observations can be made. Here is an excerpt from Wikipedia&#8217;s <a href="http://en.wikipedia.org/wiki/Writing%20">article on writing</a>:</p>
<blockquote>
<p class="quoted">In Eurasia writing began as a consequence of the burgeoning needs of accounting. Around the 4th millennium BC, the complexity of trade and administration outgrew the power of memory, and writing became a more dependable method of recording and presenting transactions in a permanent form (Robinson, 2003, p. 36). In Mesoamerica writing may have evolved through calendrics and a political necessity for recording historical events.</p>
</blockquote>
<p>When the process of instructing digital computers became a complex, enervating task, the engineers in charge instructed computers to understand words instead of numeric addresses. They constructed the first of many levels of abstraction to follow, but all of them since have been based on words. It is not surprising that this should be so&mdash;text is a mature technology in itself, all of six thousand years old.</p>
<p>Our primary means of interaction with programmable machines is still text, but the innards of the system are slowly being obscured by ever more intuitive and interactive graphical displays. The older, text based abstractions will stick around, though&mdash;and hopefully plain text will remain as gleeful an encoding to work with for quite some time.</p>
<p>After all, the recorded word is the ultimate technology.</p>
<hr />
<h5>Footnotes:</h5>
<p class="footnote"><a class="footnum" name="fn.1" href="#fnr.1">1.</a> Incidentally, <em>In The Beginning&#8230;</em> is only available as a text file, which says something about the author&#8217;s preferences.</p>
<p class="footnote"><a class="footnum" name="fn.2" href="#fnr.2">2.</a> But provide them if you ask politely.</p>
<p class="footnote"><a class="footnum" name="fn.3" href="#fnr.3">3.</a> This is likely a moot exercise. Anyone familiar with RSS feeds will also know what they&#8217;re made of, so it conveys nothing to its intended audience and is irrelevant to the remaining.</p>
<p class="footnote"><a class="footnum" name="fn.4" href="#fnr.4">4.</a> Good luck with reading that.</p>
<p class="footnote"><a class="footnum" name="fn.5" href="#fnr.5">5.</a> On the other hand, text compresses better than binary data. There is doubtless <a href="http://www.stuartcheshire.org/rants/Latency.html">more to this argument</a> than what I could think of&mdash;I have not studied the history of the Internet.</p>
<p class="footnote"><a class="footnum" name="fn.6" href="#fnr.6">6.</a> If you want to get really good at writing text, this statement is patently false. A good text editor possesses as much of a learning curve as a document processor.</p>
<p class="footnote"><a class="footnum" name="fn.7" href="#fnr.7">7.</a> Yeah, I made that up. TeXpert is often used to describe a person proficient with TeX, but The TeXbook suggests that because of the way TeX is pronounced, TeXperts ought to be called TeXnicians instead.</p>
<p class="footnote"><a class="footnum" name="fn.8" href="#fnr.8">8.</a> That said, I fervently hope the day does not arise when I will be forced to use Word.</p>
<p class="footnote"><a class="footnum" name="fn.9" href="#fnr.9">9.</a> But not impossible, <a href="http://www.jwz.org/doc/mailsum.html">apparently</a>.</p>
<p class="footnote"><a class="footnum" name="fn.10" href="#fnr.10">10.</a> And this essay isn&#8217;t aimed at programmers either. If you&#8217;re one, you already know all of this.</p>
<p class="footnote"><a class="footnum" name="fn.11" href="#fnr.11">11.</a> I did implement an AVL tree in C once. Phew! That was when I knew programming was not my thing. I do enjoy a little scripting every now and then, though.</p>
<p class="footnote"><a class="footnum" name="fn.12" href="#fnr.12">12.</a> Not all of it is accurate today. Emacs now displays italicized and bold text, for instance. But I think it remains true in spirit.</p>
<p class="footnote"><a class="footnum" name="fn.13" href="#fnr.13">13.</a> If you&#8217;re an emacs user, you&#8217;re probably wondering the opposite.</p>
<p class="footnote"><a class="footnum" name="fn.14" href="#fnr.14">14.</a> Or Vi(m) town, for that matter. I&#8217;m fairly ecumenical when it comes to the two behemoths, preferring them both for different tasks. For writing a long essay, however, emacs blows away all competition.</p>
<p class="footnote"><a class="footnum" name="fn.15" href="#fnr.15">15.</a> Very nearly, because regular expressions are written in a formal language, and so there are things it can&#8217;t do. No expression can be written to match a palindrome of arbitrary length, for instance.</p>
<h5>Further Reading</h5>
<ul>
<li><a href="http://www.cryptonomicon.com/beginning.html">In The Beginning Was The Command Line</a></li>
<li><a href="http://www.cs.cornell.edu/Info/People/raman/publications/colored-paper.html">Welcome To The Universe Of Fancy Colored Paper!</a><br />
<blockquote>
<p class="quoted">An amusing metaphorical look at the world of proprietary data formats.</p>
</blockquote>
</li>
<li>Jamie Zawinski&#8217;s <a href="http://www.jwz.org/doc/mailsum.html">mail summary files</a><br />
<blockquote>
<p class="quoted">To see how he set up a blazing fast way of accessing text files.</p>
</blockquote>
</li>
<li><a href="http://c2.com/cgi/wiki/wiki?PowerOfPlainText">The Power of Plain Text</a><br />
<blockquote>
<p class="quoted">A long Wiki discussion of the merits (and demerits) of plain text.</p>
</blockquote>
</li>
<li>Demonstrations of what Emacs or Vim can do with plain text are surprisingly hard to find. The best way to see what the fuss is about would be to play around with them- but <a href="http://nubyonrails.com/articles/emacs-emacs">here&#8217;s</a>  a five minute screencast showcasing some of emacs&#8217; more advanced features.</li>
<li><a href="http://zez.org/article/articleview/11/">Regular expressions</a> explained. Also, <a href="http://www.seeingwithc.org/topic7html.html">here&#8217;s</a> a step-by-step build of an elementary regular expression matching engine.</li>
</ul>
<p>  </body><br />
</html></p>
]]></content:encoded>
			<wfw:commentRss>http://rightshift.info/?feed=rss2&amp;p=216</wfw:commentRss>
		</item>
		<item>
		<title>Classical Fun with Polarisation</title>
		<link>http://rightshift.info/?p=203</link>
		<comments>http://rightshift.info/?p=203#comments</comments>
		<pubDate>Sun, 04 Oct 2009 07:36:30 +0000</pubDate>
		<dc:creator>Traums</dc:creator>
		
		<category><![CDATA[Dileep's]]></category>

		<category><![CDATA[brewster]]></category>

		<category><![CDATA[dipole]]></category>

		<category><![CDATA[experiment]]></category>

		<category><![CDATA[fields]]></category>

		<category><![CDATA[light]]></category>

		<category><![CDATA[polarization]]></category>

		<category><![CDATA[radiation]]></category>

		<category><![CDATA[waves]]></category>

		<guid isPermaLink="false">http://rightshift.info/?p=203</guid>
		<description><![CDATA[Look what Dad brought back from his trip to Germany!
Apollo Optik. An expensive, and an unknown brand to me. But to my delight, I discovered that they were polarized!!

For the uninitiated, light is a self-propagating electromagnetic field disturbance. I&#8217;m tempted to call it sourceless, but fact is, that all light is generated by charges in [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Look what Dad brought back from his trip to Germany!</p>
<div id="attachment_204" class="wp-caption aligncenter" style="width: 501px"><img class="size-full wp-image-204" src="http://rightshift.info/wp-content/uploads/2009/10/visors.jpg" alt="o_0" width="491" height="211" /><p class="wp-caption-text">o_0</p></div>
<p style="text-align: left;">Apollo Optik. An expensive, and an unknown brand to me. But to my delight, I discovered that they were polarized!!<br />
<img class="aligncenter size-full wp-image-205" src="http://rightshift.info/wp-content/uploads/2009/10/polar.jpg" alt="polar" width="768" height="288" /><br />
For the uninitiated, light is a self-propagating electromagnetic field disturbance. I&#8217;m tempted to call it sourceless, but fact is, that all light is generated by charges in acceleration somewhere in the universe. Physics limits the speed with which the field values of said charges update themselves to the &#8220;current&#8221; position of the charges. So these disturbances seem to travel uncorrelated from their creators, into ths distant reaches of the universe to restore the balance. Hmm, so whats all this polarization nonsense?!<br />
<span id="more-203"></span><br />
<strong>The shabby diagrams section:-<br />
</strong><br />
Sadly, the exact quantum treatment is beyond the scope of this post. Read a book.</p>
<p>The reason we call light &#8220;WAVES&#8221; is because if you manage to isolate any particular frequency of the &#8220;disturbance&#8221;, the way this phenomena seems to interact with matter (such as measuring instruments) leads us to conclude that it consists of synchronised and oscillating electric and magnetic fields in mutually perpendicular planes. And the direction of propagation at any instant of time happens to be the cross product of the Electric and Magnetic Field.<br />
<img class="aligncenter size-full wp-image-206" src="http://rightshift.info/wp-content/uploads/2009/10/waves.jpg" alt="waves" width="491" height="211" /><br />
So with the direction of propagation fixed, there is an extra degree of freedom in the perpendicular plane, i.e. the orientation of the Electric (or Magnetic) field. If you know how Euclidean geometry works, you&#8217;ll realise that one can define two special perpendicular polarisation states and express any other state as a linear combination of these two.</p>
<p>Now, the way these waves interact with matter (other charges) is similar to the way they were produced (refer Feynman Lectures in Physics, Vol. I, Chapter 28 &#8220;Electromagnetic Radiation&#8221;, equation 28.3). Any charge in an electric field will experience a force along its direction (or opposite if the charge is negative). So when an incoming EM wave is &#8220;classically&#8221; &#8220;absorbed&#8221; by an classical atom (the electron cloud version), it tends to push the negatively charged cloud to one side and the positively charged nucleus to the other (actually, given the mass ratios between electrons and nuclei, it is mostly the electrons that move. Now that the centers of charge of the positive part and the negative part are not on top of each other, they attract each-other, causing the atom to oscillate. But they won&#8217;t go on for ever since accelerating charges transmit light, thus losing energy. So our atom has become a fresh source of light, re-radiating what energy it absorbed (albeit at lower strength since it re-radiates in all directions). So in a polarisation filter (such as my shades), heterogeneous molecules are arranged relative to each other such that the oscillation along one particular direction is easier than the other. Or in some cases, in one direction all oscillations translate to re-radiated light, but in another, they may couple to vibrations of molecules and become heat. This can also be achieved with certain anisotropic crystal lattices (charge oscillations along certain bond orientations). So any polarisation filter has a defined direction of polarisation, and all the light that comes through it is polarised in that direction. So when I put two filters one behind the other, the light that comes through the first one will not get through the second one if their polarisation angles are perpendicular to each other (as can be seen in the pic). Now my particular glasses are vertically polarised. How do I know that?</p>
<p><strong>Brewsters Law :-</strong></p>
<p>Again, classically, if we take the case of radiation by an oscillating charge, the radiation pattern is that of a dipole. What that means is that the strength of radiation will be different when measured at different angles from the plane perpendicular to the oscillation line.<br />
<img class="aligncenter size-full wp-image-207" src="http://rightshift.info/wp-content/uploads/2009/10/dipole.jpg" alt="dipole" width="344" height="295" /><br />
So, if I can create an object whose charges will significantly oscillate in a given plane, I know that they can&#8217;t radiate anything polarised in the normal direction. Creating a crude approximation to said object was simply a matter of creating a reflective water surface. Light reflection from a water surface occurs due to incident light being &#8220;absorbed&#8221; and &#8220;re-emitted&#8221; by charged particles in the water. The oscillations induced in the charged particles are in a plane perpendicular to direction of incident light. So, if the direction of the reflected rays is predetermined by the laws of reflection (refraction?), at a particular special angle of incidence (which depends on water&#8217;s refractive index relative to that of air), the reflected rays will propagate at a right angle to the incident ray, and will thus be polarised horizontally (parallel to the water surface). Using this, I could easily deduce the plane of polarisation of my shades.<br />
<img class="aligncenter size-full wp-image-208" src="http://rightshift.info/wp-content/uploads/2009/10/brewster.jpg" alt="brewster" width="768" height="288" /><br />
The reflection intensity from the water is maximum when my shades are tilted vertical (and consequently, the other pair of shades kept on the table seem dark). The result flips if my shades are made horizontal.</p>
<p>This simple high-school level semi-classical viewpoint makes gargantuan predictions. For example, did you know that sky light (the scattered blue) is polarized?<br />
Skylight is basically sunlight being scattered (&#8221;absorbed&#8221; and &#8220;re-emitted&#8221;, classically speaking) by air molecules. The reason its blue is because higher frequencies of oscillation get scattered more. The density of Earth&#8217;s atmosphere (and its extent) is such that more than half the scattered skylight would have suffered a single scattering event (as opposed to being scattered by multiple molecules). Now, Sunlight is not polarised. But, if one were to observe the sky in a direction perpendicular to sun-rays, a large chunk of the skylight was emitted by charges, whose oscillations were induced by the sur-rays in a plane perpendicular to the sun-ray propagation direction. So if we were to use polarisation filters, and tilt our head, we can artificially increase the contrast between the clouds, and the sky background.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-209" src="http://rightshift.info/wp-content/uploads/2009/10/skylight.jpg" alt="skylight" width="768" height="288" /></p>
<p style="text-align: left;">The image is imperfect because I&#8217;m using an over-user-friendly digital camera that self-adjusts its aperture and exposure time, and I&#8217;m fresh out of analogue film. For more on this, refer: <a href="http://search.barnesandnoble.com/Clouds-in-a-Glass-of-Beer/Craig-F-Bohren/e/9780486417387">&#8220;Clouds in a Glass of Beer&#8221; by Craig F. Bohren</a>. Now excuse me while I show-off my new shades outside . . . .</p>
]]></content:encoded>
			<wfw:commentRss>http://rightshift.info/?feed=rss2&amp;p=203</wfw:commentRss>
		</item>
		<item>
		<title>On Free-Energies and &#8220;Higher-Learning&#8221;</title>
		<link>http://rightshift.info/?p=171</link>
		<comments>http://rightshift.info/?p=171#comments</comments>
		<pubDate>Mon, 22 Jun 2009 06:38:11 +0000</pubDate>
		<dc:creator>Traums</dc:creator>
		
		<category><![CDATA[Dileep's]]></category>

		<category><![CDATA[free energy]]></category>

		<category><![CDATA[higher learning]]></category>

		<category><![CDATA[latex]]></category>

		<category><![CDATA[legendre transform]]></category>

		<category><![CDATA[statistical mechanics]]></category>

		<category><![CDATA[thermodynamics]]></category>

		<guid isPermaLink="false">http://rightshift.info/?p=171</guid>
		<description><![CDATA[This tiny post was originally conceived to appear in  &#8220;Really Cool Derivations&#8220;, the working title for an unpublished study companion meant to pain young upper middle-class students from semi-orthodox Indian families who weren&#8217;t romantic enough to indulge in the arts and were consequently conscripted into training for entrance exams conducted by elite institutions of &#8220;higher-learning&#8221;. [...]]]></description>
			<content:encoded><![CDATA[<p><em>This tiny post was originally conceived to appear in  &#8220;<strong>Really Cool Derivations</strong>&#8220;, the working title for an unpublished study companion meant to pain young upper middle-class students from semi-orthodox Indian families who weren&#8217;t romantic enough to indulge in the arts and were consequently conscripted into training for entrance exams conducted by elite institutions of &#8220;higher-learning&#8221;. It assumes that the reader  is already familiar with Thermodynamic terminology, and believes in the First Law, among other things.</em></p>
<p>Allow me to guide you through your technical &#8220;higher-learning&#8221; experience with the following example.</p>
<p>You begin by realizing that an easy and efficient way to prepare for IIT-JEE is to memorize a set of equations such as:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_06824c0c1fe7468e5cc37ef34bc9f7dc.png" style="vertical-align:-5.5px; display: inline-block ;" alt="Delta E = T Delta S - P Delta V + mu Delta N" title="Delta E = T Delta S - P Delta V + mu Delta N"/></p>
<p>Then, you memorize what name each variable is referred to as.<br />
(<img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_a6bac9a137ced23ad5469e822c5a03e7.png" style="vertical-align:-5.5px; display: inline-block ;" alt="S =" title="S ="/> Entropy, <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_535ffdb26c89cbd429a19669aa445557.png" style="vertical-align:-5.5px; display: inline-block ;" alt="mu =" title="mu ="/> Chemical Potential, and so on.)</p>
<p>And then, you memorize the &#8220;conditions&#8221; under which the use of an equation is valid, such as &#8220;reversible processes for the above case&#8221;. Then you look for the same key words in the question being posed, choose the correct equation, plug-in values, and compute some number. Presto, now you are in college, have met some intellectual lecturers and intelligent peers, have been exposed to the larger portion of the real world, have realized that you don&#8217;t know jack, have a library, the internets, and accessible &#8220;consultants&#8221; at your disposal, and are suddenly faced with an abundance of free time. And then, you tend to grow a brain.</p>
<p><span id="more-171"></span></p>
<p>You read somewhere about the First Law of Thermodynamics:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_29b2a4280c452d3520719638cad005d1.png" style="vertical-align:-5.5px; display: inline-block ;" alt="dQ = dU + dW" title="dQ = dU + dW"/></p>
<p>You learn that <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_e1094d6b533028c6bd849bd08b19d166.png" style="vertical-align:-5.5px; display: inline-block ;" alt="dU" title="dU"/> is a perfect (exact?) differential, which means that it is path independent. And since this was explicitly mentioned, the others are not (in general). So you painstakingly learn how to compute the others consistently so as not to violate the First Law for a toy problem involving cylinders, pistons and ideal gases. Then you once again encounter entropy and reversible processes, and are tempted to rewrite the First Law like so:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_b1d0dae22c2ff9cb3cd631988af05bfa.png" style="vertical-align:-5.5px; display: inline-block ;" alt="T dS = dE + P dV - mu dN" title="T dS = dE + P dV - mu dN"/></p>
<p>This begins to look very familiar.</p>
<p>Here you learn to define Intensive (or Field) variables and Extensive (or State) variables. You make an analogy to electrodynamics and solid mechanics, where <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_3e230c5ca9d9df0ae0e885597d05e702.png" style="vertical-align:-5.5px; display: inline-block ;" alt="vec{E}, vec{B}" title="vec{E}, vec{B}"/> and stress would be Intensive and <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_6d31e085c78e842e7e760ea9e99d9b87.png" style="vertical-align:-5.5px; display: inline-block ;" alt="vec{P}, vec{mu}" title="vec{P}, vec{mu}"/> and strain would be Extensive variables. Then you treat <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_f9d72c4d3f053227dd4539b9b358bf29.png" style="vertical-align:-5.5px; display: inline-block ;" alt="T, P, mu" title="T, P, mu"/> as Field variables and <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_af1240d2fe5b26a9bb2ee94e47b89e0c.png" style="vertical-align:-5.5px; display: inline-block ;" alt="S, V, N" title="S, V, N"/> as State variables.</p>
<p>Now you begin to view <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_084babdcdda0e2f987d9d505d68e890a.png" style="vertical-align:-5.5px; display: inline-block ;" alt="E" title="E"/> as a sort of &#8220;Thermodynamic Potential&#8221;, for a system in state <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_58c668e214c04c22f606c907e1961337.png" style="vertical-align:-13.5px; display: inline-block ;" alt="(S,V,N)" title="(S,V,N)"/>. Then define</p>
<p>Field variables as:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_963_3749257af33e1e290d6c02c58c35b0bb.png" style="vertical-align:-37px; display: inline-block ;" alt="T = ( {partial E} / {partial S} )_{V,N}" title="T = ( {partial E} / {partial S} )_{V,N}"/><br />
<img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_963_8982cb3b9e66087959ad94a3ea2d1a63.png" style="vertical-align:-37px; display: inline-block ;" alt="P = - ( {partial E} / {partial V} )_{S,N}" title="P = - ( {partial E} / {partial V} )_{S,N}"/><br />
<img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_963_98437ce00c80523b9a6fad62f430def4.png" style="vertical-align:-37px; display: inline-block ;" alt="mu = ( {partial E} / {partial N} )_{S,V}" title="mu = ( {partial E} / {partial N} )_{S,V}"/></p>
<p>Then you cross check your intuitive definitions of the Field variables for consistency. Now you define a &#8220;regime of validity&#8221; where the state changes are such (slow?, reversible?) that <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_084babdcdda0e2f987d9d505d68e890a.png" style="vertical-align:-5.5px; display: inline-block ;" alt="E" title="E"/>  behaves as a homogeneous function of the extensive variables. You express the &#8220;Thermodynamic Potential&#8221; with a bunch of first-order derivative terms, and arrive at the Euler-relation:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_994.5_8f8644377d15c11ce6771501f98d0fe0.png" style="vertical-align:-5.5px; display: inline-block ;" alt="E = TS - PV + mu N" title="E = TS - PV + mu N"/></p>
<p>Now in a rather unrelated train of thought, you learn about Legendre transforms. You wiki it. You apply it in Lagrangian Mechanics.</p>
<p>You transform a &#8220;Lagrangian&#8221; <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_971_9e76fcec2edc70c168013bf988ed167f.png" style="vertical-align:-29px; display: inline-block ;" alt="L(q,dq/dt)" title="L(q,dq/dt)"/> into a &#8220;Hamiltonian&#8221; <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_41a26f8e123a06785a9a195c6999b322.png" style="vertical-align:-13.5px; display: inline-block ;" alt="H(q,p)" title="H(q,p)"/>. You notice that the state variables have changed from <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_971_042eaa853fe3faf544679f3822d4529c.png" style="vertical-align:-29px; display: inline-block ;" alt="(q,dq/dt)" title="(q,dq/dt)"/> to <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_b48d5acaee01c6ac6a77239b8745f370.png" style="vertical-align:-13.5px; display: inline-block ;" alt="(q,p)" title="(q,p)"/>.</p>
<p>Now, armed with Legendre Transform technology, you begin ravaging the &#8220;Thermodynamic Potential&#8221; <img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_231867991123d40253d4dd0e2d63c91e.png" style="vertical-align:-13.5px; display: inline-block ;" alt="E(S,V,N)" title="E(S,V,N)"/> from earlier. You start to derive familiar relics from the past, such as</p>
<p>Gibb&#8217;s Free Energy:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_1cdb414446ccb5902106357cdb41bef2.png" style="vertical-align:-13.5px; display: inline-block ;" alt="G(T,P,N) = E -TS +PV" title="G(T,P,N) = E -TS +PV"/></p>
<p>Helmholtz Free Energy:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_8b052c49df37f59409a07ecde8ec299a.png" style="vertical-align:-13.5px; display: inline-block ;" alt="F(T,V,N) = E - TS" title="F(T,V,N) = E - TS"/></p>
<p>Entropy:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_36b306e6a56f9d5b8475fe1d27d9fdd8.png" style="vertical-align:-13.5px; display: inline-block ;" alt="H(S,P,N) = E+PV" title="H(S,P,N) = E+PV"/></p>
<p>Grand Potential:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_39d47489be3e77590cc5fd84e0b30059.png" style="vertical-align:-13.5px; display: inline-block ;" alt="Phi (T,V,mu) = E - TS - mu N = -PV" title="Phi (T,V,mu) = E - TS - mu N = -PV"/></p>
<p>And other strange beasts:</p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_bd56b1b1b99dcc841a6472c13203ed78.png" style="vertical-align:-13.5px; display: inline-block ;" alt="Phi_{1}(S,V,mu) = E - mu N" title="Phi_{1}(S,V,mu) = E - mu N"/></p>
<p><img src="http://rightshift.info/wp-content/plugins/wpmathpub/phpmathpublisher/img/math_986.5_5bd1be491b96131a81a2085ffecdfa24.png" style="vertical-align:-13.5px; display: inline-block ;" alt="Phi_{2}(S,P,mu) = E + PV - mu N" title="Phi_{2}(S,P,mu) = E + PV - mu N"/></p>
<p>You revise your list of Field and State variables for each case, and derive their respective &#8220;regimes of validity&#8221;. Suddenly, you realize that all your training has been mathematically consistent and you feel the need to write this down somewhere. And someday you graduate, at which point I stop ranting because I&#8217;m yet to experience what comes next.</p>
<p>Many souls in this age are unfortunate enough to get inducted into over-accelerated education programs hellbent on flooding their minds with advanced sounding semantics and arbitrary logical rules of progression. It appears that &#8220;higher-learning&#8221; is composed of recursively unlearning and relearning &#8220;old&#8221; lessons. Its probably a good way to go about it, if each level is viewed as a layer of abstraction (as hinted by fellow co-blogger elsewhere), but one would wish that said fact of abstraction be stressed early enough in place of dogmatic rhetoric, to make the unlearning a little easier.</p>
<p>@Neels: TeX support test #1, successful. Good job!</p>
]]></content:encoded>
			<wfw:commentRss>http://rightshift.info/?feed=rss2&amp;p=171</wfw:commentRss>
		</item>
		<item>
		<title>Blink, Morse</title>
		<link>http://rightshift.info/?p=138</link>
		<comments>http://rightshift.info/?p=138#comments</comments>
		<pubDate>Sun, 07 Jun 2009 11:33:14 +0000</pubDate>
		<dc:creator>Karthik</dc:creator>
		
		<category><![CDATA[Karthik's]]></category>

		<category><![CDATA[cryptonomicon]]></category>

		<category><![CDATA[morse]]></category>

		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://rightshift.info/?p=138</guid>
		<description><![CDATA[In the novel *Cryptonomicon*, one of the lead characters finds himself implicated in a (comical) drug bust, and is placed in a jail cell under the watchful (electronic) eyes of hi-tech eavesdroppers. It&#8217;s a scene out of a spy novel (although *Cryptonomicon* isn&#8217;t quite that), minus the secret agents, plus one savvy Unix sysadmin. He&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>In the novel <a href="http://www.harpercollins.com/books/9780060512804/Cryptonomicon/index.aspx?">*Cryptonomicon*</a>, one of the lead characters finds himself implicated in a (comical) drug bust, and is placed in a jail cell under the watchful (electronic) eyes of hi-tech eavesdroppers. It&#8217;s a scene out of a spy novel (although *Cryptonomicon* <a href="http://en.wikipedia.org/wiki/Cryptonomicon">isn&#8217;t quite that</a>), minus the secret agents, plus one savvy Unix sysadmin. He&#8217;s given his laptop, to boot.</p>
<p>The rest of this lead-up contains spoilers, so skip to the image if you&#8217;re the ear-cupping-and-yelling kind.</p>
<p>The conspirators don&#8217;t pull punches; they&#8217;re replicating the prisoner&#8217;s laptop screen in an adjacent cell with a <a href="http://en.wikipedia.org/wiki/Van_Eck_phreaking">Van Eck phreaking</a> <a href="http://www.erikyyy.de/tempest/">setup</a>- so everything he sees, they see. Or do they?</p>
<p>Food, bedding, and a computer- it sounds far too pleasant a way to imprison an inveterate hacker, so he proceeds, ostensibly, to hand over the information they need, carrying out some phony cryptanalysis in the process. And then he conjures a little script, writing out small pieces of code to a file at intermittent intervals. When executed, this script reads out text files (the Real Thing) by <em><strong>flashing the LEDs on his keyboard in morse.</strong></em></p>
<p><a href="http://rightshift.info/wp-content/uploads/2009/06/kbd-white-clipped.png"><img class="aligncenter size-full wp-image-147" title="CC-licensed keyboard images are hard to find." src="http://rightshift.info/wp-content/uploads/2009/06/kbd-white-clipped.png" alt="CC-licensed keyboard images are hard to find." width="597" height="221" /></a></p>
<p><strong>Wow</strong>. Using intractably complex technology to simulate simple tasks is a fascinating idea, if only because it goes against design. It&#8217;s the joy of complete control over a programmable machine- articulated amazingly well in this extract (from Cory Doctorow&#8217;s <a href="http://craphound.com/littlebrother/download/">Little Brother</a>):</p>
<blockquote><p>If you’ve never programmed a computer, you should. There’s nothing like it in the whole world. When you program a computer, it does *exactly* what you tell it to do. It’s like designing a machine — any machine, like a car, like a faucet, like a gas-hinge for a door — using math and instructions. It’s awesome in the truest sense: it can fill you with awe.</p></blockquote>
<p>Flashing text in Morse off a keyboard LED is the sort of thing I can&#8217;t read without wanting to do  myself. So I did.*</p>
<p>Internet, meet <a href="http://pastebin.com/f71aaa6fd">Morseblink</a>. Assuming even that you&#8217;re not digging for gold in the Philippines with several governments seeking your hard drive for forgotten world war II treasures, it&#8217;s still perfect for those someone-over-shoulder moments- or minutes- when you&#8217;re trying to give the impression of being at work and want to continue catching up on your feeds.</p>
<p>If you know Morse, that is. At least it gives that oft-ignored scroll-lock LED something to do, the poor thing. (Alternatively, you could relegate that annoying system beep to scroll-lock by having it flash instead.It&#8217;s an <a href="http://tldp.org/LDP/lkmpg/2.6/html/x1194.html">old idea</a>)</p>
<p>It&#8217;s fully customizable, if your binary encoding of choice happens to be different. Alternatively, you could use it to practice your Morse, which is all I&#8217;ve found it useful for (yet).</p>
<p>You can download it <a href="http://rightshift.info/wp-content/uploads/2009/06/morseblinktar.gz">here</a> (written in Perl 5.8, should run on all *nix systems).</p>
<p>Below the cut: Some usage tips and a refresher on the Morse code.</p>
<p><span id="more-138"></span></p>
<pre>
<p style="border: 2px solid rgb(221, 221, 221); padding: 2px 6px 4px; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238);">$ perl morseblink.pl [options] [File1 File2 ... | STDIN]
options: -do[t] n -da[sh] n -g[ap] n -v[erbose] -e[ncode]
         -l[ed] [1-32]

         dot:     dot duration (float, seconds)
         dash:    dash duration (float, seconds)
         gap:     gap between letters (float, seconds)
         verbose: report bits being flashed at STDOUT
         encode:  encode and print, do not flash LED
         led:     led number from 1-32. Scrollock is 3.
</pre>
<p>Use the <span style="font-family: courier;">-dot</span> and <span style="font-family: courier;">-dash</span> options to set the duration of the dot and dash flashes. <span style="font-family: courier;">-gap</span> sets the duration of the gap between letters. The gap between words is twice this.</p>
<p>If you want to use this as a Morse tutor, run it with the <span style="font-family: courier;">-v</span> (verbose) flag enabled. To get the encoded output to STDOUT (no flashing), use <span style="font-family: courier;">-e</span> (encode). All of these are optional; it should work fine with the defaults. Finally, it accepts input from STDIN (terminate input with ^D), so you can use the script interactively:</p>
<pre>
<p style="border: 2px solid rgb(221, 221, 221); padding: 2px 6px 4px; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238);">$ perl morseblink.pl -v
test
^D
bit 1: "-"
bit 2: " "
bit 3: "."
bit 4: " "
bit 5: "."
bit 6: "."
bit 7: "."
bit 8: " "
bit 9: "-"
bit 10: " "
$
</pre>
<p>The morse code doesn&#8217;t cover all printable ASCII characters. There&#8217;s no !, for example. Any unrecognized character in your input is replaced with the code for 0.<br />
<span style="font-family: courier; font-size: medium;"><br />
&#8221; .-..-.<br />
$ &#8230;-..-<br />
&#8216; .&#8212;-.<br />
( -.&#8211;.<br />
) -.&#8211;.-<br />
+ .-.-.<br />
, &#8211;..&#8211;<br />
- -&#8230;.-<br />
. .-.-.-<br />
/ -..-.<br />
0 &#8212;&#8211;<br />
1 .&#8212;-<br />
2 ..&#8212;<br />
3 &#8230;&#8211;<br />
4 &#8230;.-<br />
5 &#8230;..<br />
6 -&#8230;.<br />
7 &#8211;&#8230;<br />
8 &#8212;..<br />
9 &#8212;-.<br />
: &#8212;&#8230;<br />
; -.-.-.<br />
= -&#8230;-<br />
? ..&#8211;..<br />
A .-<br />
B -&#8230;<br />
C -.-.<br />
D -..<br />
E .<br />
F ..-.<br />
G &#8211;.<br />
H &#8230;.<br />
I ..<br />
J .&#8212;<br />
K -.-<br />
L .-..<br />
M &#8211;<br />
N -.<br />
O &#8212;<br />
P .&#8211;.<br />
Q &#8211;.-<br />
R .-.<br />
S &#8230;<br />
T -<br />
U ..-<br />
V &#8230;-<br />
W .&#8211;<br />
X -..-<br />
Y -.&#8211;<br />
Z &#8211;..<br />
_ ..&#8211;.-<br />
</span></p>
<pre><span style="font-size: x-small;">*Turned out to be a trivial hack, as simple to  write as it was to describe.</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://rightshift.info/?feed=rss2&amp;p=138</wfw:commentRss>
		</item>
		<item>
		<title>&#8220;Why are you producing so few red blood cells today?&#8221;</title>
		<link>http://rightshift.info/?p=129</link>
		<comments>http://rightshift.info/?p=129#comments</comments>
		<pubDate>Tue, 14 Apr 2009 09:10:45 +0000</pubDate>
		<dc:creator>Karthik</dc:creator>
		
		<category><![CDATA[Karthik's]]></category>

		<category><![CDATA[chess]]></category>

		<category><![CDATA[complexity]]></category>

		<category><![CDATA[GEB]]></category>

		<guid isPermaLink="false">http://rightshift.info/?p=129</guid>
		<description><![CDATA[An interesting note from six months ago that I never got around to posting. &#8217;tis a bit vague, but then so is the source. Besides, I like to think that nebulousness has its share of merits- trickster makes this world, after all.
***
A while ago, it was thought that the trick to making a machine play [...]]]></description>
			<content:encoded><![CDATA[<p>An interesting note from six months ago that I never got around to posting. &#8217;tis a bit vague, but then so is the source. Besides, I like to think that nebulousness has its share of merits- <a href="http://blog.ted.com/2009/04/trickster_makes.php" target="_blank">trickster makes this world</a>, after all.</p>
<p><strong>***</strong></p>
<p>A while ago, it was thought that the trick to making a machine play chess well was to extend how far down the branching network of possible moves it could examine. Irrespective of how far they can look ahead, though, skilled human chess players can confidently confound (<a href="http://researchweb.watson.ibm.com/deepblue/watch/html/c.shtml" target="_blank">or at least match</a>) most chess programs of today.</p>
<p>Why?</p>
<p>I found a fascinating account of this puzzler involving AI and human thinking in (where else?) <a href="http://en.wikipedia.org/wiki/GEB" target="_blank">GEB</a>. Apparently, the reason for this was known from the 1940s; If you&#8217;ve ever played chess- or play regularly but with skill befitting a two year old, you&#8217;ll come to appreciate the reason immensely.</p>
<p>Chess novices and chess masters perceive a chess situation in completely different terms. The results of the Dutch psychologist Adriaan de Groot&#8217;s study (from the 1940&#8217;s) imply that chess masters perceive the distribution of pieces in <em>chunks</em>. (<a href="http://en.wikipedia.org/wiki/GEB" target="_blank">Here&#8217;s</a> a more recent description.)</p>
<blockquote><p>There is a higher-level description of the board than the straightforward &#8220;white pawn on K5, black rook on Q6&#8243; type of description, and the master somehow produces such a mental image of the board. This was proven by the high speed with which a master could reproduce an actual position taken from a game, compared with the novice&#8217;s plodding reconstruction of the position, after both of them had five second glances at the board. Highly revealing was the fact that masters&#8217; mistakes involved placing whole <strong><em>groups</em></strong> of pieces in the wrong place, which left the game strategically almost the same, but to a novice&#8217;s eyes, not at all the same. The clincher was to do the same experiment but with pieces randomly assigned to the squares on the board, instead of copied from actual games. The masters were found to be simply no better than the novices in reconstructing such random boards.</p>
<p>The conclusion is that in normal chess play, certain types of situation recur- certain patterns- and it is on these high-level patterns that the master is sensitive. He thinks <strong><em>on a different level</em></strong> from the novice; his set of concepts is different. Nearly everyone is surprised to find out that in actual play, a master rarely looks ahead any further than a novice does- and moreover, a master usually examines only a handful of possible moves! The trick is that his mode of perceiving the board is like a filter: he literally <strong><em>does not see bad moves</em></strong> when he looks at a chess situation- no more than chess amateurs see <strong><em>illegal</em></strong> moves when they look at a chess situation. Anyone who has played even a little chess has organized his perception so that diagonal rook-moves, forward capture by pawns, and so forth, are never brought to mind. Similarly, master-level players have built up higher levels of organization in the way they see the board; consequently, to them, bad moves are as unlikely as illegal moves are, to most people. This might be called <strong><em>implicit pruning</em></strong> of the giant branching tree of possibilities. By contrast, <strong><em>explicit pruning</em></strong> would involve thinking of a move, and after superficial examination, deciding not to pursue examining it any further.</p></blockquote>
<p>If you pause to think about this, it comes across as an utterly spellbinding revelation.</p>
<p><span id="more-129"></span>Like the thinking of the proverbial frog in the well, mental models and levels of perception <em>above</em> what we are used to are very hard to digest- but they&#8217;re there, as the excerpt explains.</p>
<p>The &#8220;chunking into levels&#8221; is a predominant theme in all complex systems we see*, at least in the way we seek to understand and analyze them- from computer systems (Hardwired-code-&gt;machine language-&gt;Assembly language-&gt;Interpreters and Compilers) to DNA (Specifying each nucleotide atom-by-atom-&gt;Describing codons with symbols for nucleotides-&gt;Macromolecules-&gt;Cells), and even human thinking.</p>
<p>The last bit requires a little exposition, but first, we note the analogy between the nightmare of writing complex useful computer code in machine language and the terror of reading a virus DNA atom by atom. In both cases, we would miss out on the <em>higher level structures</em> that embody computer programs and virus DNA with their attributes- complex systems possess meaning on multiple levels.</p>
<p>The multi-level description extends to virtually every complex phenomenon. Weather systems, for instance, possess &#8220;hardware&#8221; (the earth&#8217;s atmosphere) which has certain properties hardwired into it (hardwired code) in the form of the laws that flitting air molecules obey, and &#8220;software&#8221;, which is the weather itself. Looking at the motions of individual molecules is akin to reading a huge, complicated program on the machine language level. We <em>chunk</em> higher level patterns into storms and clouds, pressures and winds- large scale coherent trends that emerge from the motion of astronomical number of molecules.</p>
<p>As for multi-level human thinking, it is illuminating to first appreciate that a higher level perception of a system does not necessarily mean an understanding of the lower levels too. One does not need to know machine language to write complex computer programs, nor is one required to be aware of individual molecule trajectories to describe or predict the weather.** In fact, a higher level of a system may itself not be &#8220;aware&#8221; of the levels it is composed of, such as AI programs that are ignorant of the operating system they are running on. The higher level descriptions are &#8220;sealed off&#8221; from the levels below them, although there is some &#8220;leakage&#8221; between the hierarchical levels of science. (This is necessarily a good thing- or people could not obtain an approximate understanding of other people without first figuring out how quarks interact.)</p>
<p>The title of the post is another excerpt from GEB, derived as a somewhat whimsical analogy:</p>
<blockquote><p>The idea that &#8220;you&#8221; know all about &#8220;yourself&#8221; is so familiar from interaction with people that it is natural to extend it to the computer- after all, AI programs are intelligent enough that they can &#8220;talk&#8221; to you in English!  Asking an AI program (which is compiled code) about the underlying operating system is not unlike asking a person &#8220;<strong>Why are you producing so few red blood cells today?</strong>&#8221; People do not know about that level- the &#8220;operating system level&#8221;- of their bodies.</p></blockquote>
<p>This post owes its existence in entirety to GEB, the Big Book of Big Ideas.</p>
<p><strong>***</strong></p>
<p><em><span>*Where a &#8220;system&#8221; is merely something consisting of &#8220;parts&#8221;.</span></em></p>
<p><em><span>**The trade-off when accepting higher-level models of a system is to lose the ability to make accurate predictions. This is fairly evident, irrespective of whether we&#8217;re talking about the behaviour of weather, basketballs or people!</span></em></p>
]]></content:encoded>
			<wfw:commentRss>http://rightshift.info/?feed=rss2&amp;p=129</wfw:commentRss>
		</item>
	</channel>
</rss>
