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

<channel>
	<title>Christober's Technical Weblog</title>
	<atom:link href="http://christober.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://christober.wordpress.com</link>
	<description>Weblog for algorithms on signal processing and Numerical analysis</description>
	<lastBuildDate>Fri, 29 Aug 2008 10:00:10 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='christober.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/7849a7f1d19fe8d36dabdbcd854dd08e?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Christober's Technical Weblog</title>
		<link>http://christober.wordpress.com</link>
	</image>
			<item>
		<title>Binomial Expansion</title>
		<link>http://christober.wordpress.com/2008/08/29/binomial-expansion/</link>
		<comments>http://christober.wordpress.com/2008/08/29/binomial-expansion/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 09:55:41 +0000</pubDate>
		<dc:creator>Christober rayappan</dc:creator>
				<category><![CDATA[Algorithms]]></category>

		<guid isPermaLink="false">http://christober.wordpress.com/?p=120</guid>
		<description><![CDATA[A series expansion which occurs often in applications is the binomial expansion. In this article we will discuss about

What is binomial expansion?
How to arrive at that expansion?
Where it is used?
Its relation with pascal&#8217;s triangle
Issac newton&#8217;s approach to binomial expansion
A &#8216;C&#8217; program to calculate the binomial coefficients

A &#34;Binomial&#34; is a polynomial expression with two terms, like [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=christober.wordpress.com&blog=3999072&post=120&subd=christober&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A series expansion which occurs often in applications is the binomial expansion. In this article we will discuss about</p>
<ul>
<li>What is binomial expansion?</li>
<li>How to arrive at that expansion?</li>
<li>Where it is used?</li>
<li>Its relation with pascal&#8217;s triangle</li>
<li>Issac newton&#8217;s approach to binomial expansion</li>
<li>A &#8216;C&#8217; program to calculate the binomial coefficients</li>
</ul>
<p>A &quot;Binomial&quot; is a polynomial expression with two terms, like x+y, x+y^2 etc</p>
<p>&quot;Binomial expansion&quot; is the expansion of the expressions like (x+y)^3, (x+y)^6, where the entire binomial is raised to some power.</p>
<p>First, we&#8217;ll look at the expansion of &quot;generic&quot; binomial x+y, and its powers (x+y)^2, (x+y)^3, &#8230;     (x+y)^n.</p>
<p><a href="http://christober.files.wordpress.com/2008/08/bi_1.jpg"><img class="alignnone size-medium wp-image-128" src="http://christober.files.wordpress.com/2008/08/bi_1.jpg?w=300&#038;h=96" alt="" width="300" height="96" /> </a> &#8212;&#8212;&#8212;&#8212;&#8211;(1)</p>
<p>We can see some kind of patterns in the powers of x and y and the coefficents from the above expansions.</p>
<p>Lets first look at the powers of x and y ,</p>
<p>Power of (x,y) in the (k)th term</p>
<p>For example in,</p>
<p><a href="http://christober.files.wordpress.com/2008/08/bi_21.jpg"><img class="alignnone size-full wp-image-136" src="http://christober.files.wordpress.com/2008/08/bi_21.jpg?w=255&#038;h=23" alt="" width="255" height="23" /> </a></p>
<p>The power of x and y in the 2nd term (K) is 1 and 1 respectively.</p>
<p>Similary, the power of x and y for equations (1) is given in Table (1)<a href="http://christober.files.wordpress.com/2008/08/bi_3.jpg"> </a> <a href="http://christober.files.wordpress.com/2008/08/bi_3.jpg"><img class="aligncenter size-full wp-image-142" src="http://christober.files.wordpress.com/2008/08/bi_3.jpg?w=450&#038;h=97" alt="" width="450" height="97" /> </a></p>
<p>Table1: Power of (x,y) in the (k)th term</p>
<p>From Table(1) it is clear that (x+y)^n will have n+1 terms, the &#8216;k&#8217; th term will have a (n-k+1)th power of x, and (k-1)th power of y.</p>
<p>Now lets look at the coefficients for equation (1) <a href="http://christober.files.wordpress.com/2008/08/bi_41.jpg"><img class="aligncenter size-full wp-image-154" src="http://christober.files.wordpress.com/2008/08/bi_41.jpg?w=450&#038;h=108" alt="" width="450" height="108" /> </a></p>
<p>The coefficients in table 2 can be written as shown in figure 1</p>
<p><a href="http://christober.files.wordpress.com/2008/08/pasc2.jpg"><img class="aligncenter size-medium wp-image-158" src="http://christober.files.wordpress.com/2008/08/pasc2.jpg?w=300&#038;h=186" alt="" width="300" height="186" /> </a> This is called pascal&#8217;s triangle and it is easy to generate any rows of the triangle. Just put 1&#8217;s along the sides of the triangle and add the pair of values from the previous row to get the next element. For example to get value 3 in the third row we need to add the pair of values from the previous rows, which happens to be 1 and 2.</p>
<p>Now lets try to expand (x+y)^n. If B(n,k) is the kth entry in the nth row of the pascal triangle. Then</p>
<p><a href="http://christober.files.wordpress.com/2008/08/bi_6.jpg"><img class="alignnone size-full wp-image-162" src="http://christober.files.wordpress.com/2008/08/bi_6.jpg?w=390&#038;h=25" alt="" width="390" height="25" /> </a> &#8212;&#8212;(2)</p>
<p>Its summation equivalent is</p>
<p><a href="http://christober.files.wordpress.com/2008/08/bi_7.jpg"><img class="alignnone size-full wp-image-163" src="http://christober.files.wordpress.com/2008/08/bi_7.jpg?w=232&#038;h=44" alt="" width="232" height="44" /> </a> &#8212;&#8212;&#8212;&#8212;&#8212;(3)</p>
<p>If we start k from &#8216;0&#8242; instead of &#8216;1&#8242; eqn (3) becomes</p>
<p><a href="http://christober.files.wordpress.com/2008/08/bi_8.jpg"><img class="alignnone size-full wp-image-165" src="http://christober.files.wordpress.com/2008/08/bi_8.jpg?w=214&#038;h=44" alt="" width="214" height="44" /> </a> &#8212;&#8212;&#8212;&#8212;&#8212;&#8211; (4)</p>
<p>C(n,k) in equation (4) is called as binomial coefficient and its value is</p>
<p><a href="http://christober.files.wordpress.com/2008/08/bi_9.jpg"><img class="alignnone size-full wp-image-166" src="http://christober.files.wordpress.com/2008/08/bi_9.jpg?w=129&#038;h=43" alt="" width="129" height="43" /> </a>           &#8212;&#8212;&#8212;&#8212;&#8212; (5)</p>
<p>The above expansion was known long before the times of newton (1642-1727). However i like to share an  interesting information on how he arrived at the above expansion while he was investigating on calculus.</p>
<p>We all knew that Wallis laid the foundation of modern integral calculus by finding the area under the parabola (Refer previous article- Wallis method of integration). In the similar way Wallis also determined the area of quadrature of circle which is,</p>
<p><a href="http://christober.files.wordpress.com/2008/08/bi_10.jpg"><img class="alignnone size-full wp-image-178" src="http://christober.files.wordpress.com/2008/08/bi_10.jpg?w=111&#038;h=51" alt="" width="111" height="51" /> </a> &#8212;&#8212;&#8212;&#8212;-(6)</p>
<p>The work of Wallis was continued by Newton who replaced the fixed upper limit of unity in equation (6) by x and obtained the below results</p>
<p><a href="http://christober.files.wordpress.com/2008/08/bi_11.jpg"><img class="alignnone size-full wp-image-179" src="http://christober.files.wordpress.com/2008/08/bi_11.jpg?w=236&#038;h=172" alt="" width="236" height="172" /> </a> &#8212;&#8212;&#8212;&#8211;(7)</p>
<p>After noticing some kind of patterns in equation (7) he concluded that</p>
<p><a href="http://christober.files.wordpress.com/2008/08/bi_12.jpg"><img class="alignnone size-full wp-image-180" src="http://christober.files.wordpress.com/2008/08/bi_12.jpg?w=437&#038;h=121" alt="" width="437" height="121" /> </a></p>
<p>and by differentiating on both sides he discovered the series</p>
<p><a href="http://christober.files.wordpress.com/2008/08/bi_13.jpg"><img class="alignnone size-full wp-image-181" src="http://christober.files.wordpress.com/2008/08/bi_13.jpg?w=336&#038;h=31" alt="" width="336" height="31" /> </a></p>
<p>If -x^2 =x, the binomial theorem as given in equation(4) is revealed.</p>
<p><a href="http://christober.files.wordpress.com/2008/08/bi_14.jpg"><img class="alignnone size-full wp-image-182" src="http://christober.files.wordpress.com/2008/08/bi_14.jpg?w=317&#038;h=25" alt="" width="317" height="25" /> </a>  &#8212;&#8212;(8)</p>
<p>and if we put,</p>
<p><a href="http://christober.files.wordpress.com/2008/08/bi_151.jpg"><img class="alignnone size-full wp-image-194" src="http://christober.files.wordpress.com/2008/08/bi_151.jpg?w=49&#038;h=25" alt="" width="49" height="25" /> </a>   </p>
<p>Equation (8) becomes,</p>
<p><img class="alignnone size-full wp-image-196" src="http://christober.files.wordpress.com/2008/08/bi_161.jpg?w=350&#038;h=25" alt="" width="350" height="25" />  &#8212;&#8212;&#8211; (9)</p>
<p>and in DSP, equation(9) is the Z-Transform of the right sided signal.</p>
<p>Further this expansion is very useful if we expect some terms to cancel out in our derivations!</p>
<h3>Implementation of Binomial Coefficient:</h3>
<p>To calculate binomial coefficients we just need to implement the below equation,</p>
<p><img class="alignnone size-full wp-image-166" src="http://christober.files.wordpress.com/2008/08/bi_9.jpg?w=129&#038;h=43" alt="" width="129" height="43" />  &#8212;&#8212;&#8212;&#8212;-(10)</p>
<p>However it is not easy as it looks, since &quot;n!&quot; is highly prone to overflow errors.</p>
<p>There are two ways to solve this problem</p>
<ol>
<li>a) Determine the factorial after taking log on both sides of the above equation.</li>
</ol>
<p>          b) To get the actual output take the exponential of step (a)</p>
<p>    2.    Recursive implemetation of Equation (10)</p>
<p>Recursive implementation to calculate binomial coefficent can be <a href="http://christober.files.wordpress.com/2008/08/calculation-of-binomial-coefficient.pdf" target="_blank">downloaded here</a></p>
<h3>References:</h3>
<ol>
<li><a href="http://www.ece.uvic.ca/~andreas/RLectures/RootsPart-I-CasMag.pdf" target="_blank">A.Antoniou, On the Roots of Digital signal processing &#8211; Part 1</a></li>
<li><a href="http://en.wikipedia.org/wiki/Binomial_coefficient" target="_blank">Wikepedia, Binomial coefficent</a></li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/christober.wordpress.com/120/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/christober.wordpress.com/120/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/christober.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/christober.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/christober.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/christober.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/christober.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/christober.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/christober.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/christober.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/christober.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/christober.wordpress.com/120/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=christober.wordpress.com&blog=3999072&post=120&subd=christober&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://christober.wordpress.com/2008/08/29/binomial-expansion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">christober</media:title>
		</media:content>

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_1.jpg?w=300" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_21.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_3.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_41.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/pasc2.jpg?w=300" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_6.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_7.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_8.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_9.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_10.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_11.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_12.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_13.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_14.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_151.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_161.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/bi_9.jpg" medium="image" />
	</item>
		<item>
		<title>Wallis Method of Integration</title>
		<link>http://christober.wordpress.com/2008/08/12/wallis-method-of-integration/</link>
		<comments>http://christober.wordpress.com/2008/08/12/wallis-method-of-integration/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 08:52:00 +0000</pubDate>
		<dc:creator>Christober rayappan</dc:creator>
				<category><![CDATA[Algorithms]]></category>

		<guid isPermaLink="false">http://christober.wordpress.com/?p=72</guid>
		<description><![CDATA[From the previous articles, it should be clear that archimedes proved the results using geometry alone. For the sake of simplicity and understanding we have used  geometric series, harmonic mean terminologies. The shift from geometrical thinking to arithmetic happend only during the early 1600s by cavalieri and  John wallis. They developed the techniques for finding the areas of various [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=christober.wordpress.com&blog=3999072&post=72&subd=christober&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>From the previous articles, it should be clear that archimedes proved the results using geometry alone. For the sake of simplicity and understanding we have used  geometric series, harmonic mean terminologies. The shift from geometrical thinking to arithmetic happend only during the early 1600s by cavalieri and<strong> </strong> John wallis. They developed the techniques for finding the areas of various geometric figures by extending the archimedes method using arithmetics and Algebra.</p>
<p><strong>Wallis method of Integration:</strong></p>
<p>Wallis was intrested to find the area under the parabola y=x^2</p>
<p>For that he divided the area under parabola into rectangles as shown in figure 1. He noticed that</p>
<p>Area abcfa = k^2 * ε</p>
<p>and Area abdea = n^2 * ε</p>
<p><a href="http://christober.files.wordpress.com/2008/08/wallis3.jpg"><img class="aligncenter size-medium wp-image-92" src="http://christober.files.wordpress.com/2008/08/wallis3.jpg?w=300&#038;h=289" alt="" width="300" height="289" /> </a></p>
<p>Therefore if we add up the areas of the rectangles in the above figure we will be closer to the area under the parabola which is given by</p>
<p><a href="http://christober.files.wordpress.com/2008/08/11.jpg"><img class="alignnone size-medium wp-image-98" src="http://christober.files.wordpress.com/2008/08/11.jpg?w=300&#038;h=39" alt="" width="300" height="39" /> </a></p>
<p>Where,</p>
<p><img class="alignnone size-medium wp-image-91" src="http://christober.files.wordpress.com/2008/08/1.jpg?w=25&#038;h=23" alt="" width="25" height="23" /> = The area of the rectangle ABCDA</p>
<p>Till this point it is a geometrical work by wallis. However he generalized the above relation analytically using the principle of induction as follows.</p>
<p>Infact, before this work, Wallis had observed in general that,</p>
<p><a href="http://christober.files.wordpress.com/2008/08/2.jpg"><img class="alignnone size-medium wp-image-96" src="http://christober.files.wordpress.com/2008/08/2.jpg?w=208&#038;h=205" alt="" width="208" height="205" /> </a> &#8212;&#8212;&#8212;- (2)</p>
<p>Sub of (2) in (1) gives</p>
<p><a href="http://christober.files.wordpress.com/2008/08/4.jpg"><img class="alignnone size-medium wp-image-100" src="http://christober.files.wordpress.com/2008/08/4.jpg?w=136&#038;h=46" alt="" width="136" height="46" /> </a>              &#8212;&#8212;&#8212;- (3)</p>
<p>Wallis is the person who proposed the symbol for infinity (∞) and also said that the above relation can be better approximated as &#8216;n&#8217; tends to infinity</p>
<p><a href="http://christober.files.wordpress.com/2008/08/3.jpg"><img class="alignnone size-medium wp-image-102" src="http://christober.files.wordpress.com/2008/08/3.jpg?w=161&#038;h=89" alt="" width="161" height="89" /> </a>  &#8212;&#8212;&#8212;&#8212;&#8211; (4)</p>
<p>This work can be much appreciated with the help of an example</p>
<p>To estimate the area under the parabola y = x^2 from 0 to 1, we will draw rectangles from left to right of the curve as shown in figure 2. <a href="http://christober.files.wordpress.com/2008/08/51.jpg"><img class="aligncenter size-medium wp-image-111" src="http://christober.files.wordpress.com/2008/08/51.jpg?w=279&#038;h=289" alt="" width="279" height="289" /> </a></p>
<p>Using Equation (3) the area under the parabola in figure (2) is estimated as</p>
<p><a href="http://christober.files.wordpress.com/2008/08/6.jpg"><img class="alignnone size-medium wp-image-112" src="http://christober.files.wordpress.com/2008/08/6.jpg?w=132&#038;h=45" alt="" width="132" height="45" /> </a></p>
<p>= 0.375</p>
<p>Where, n = 4 (Number of rectangles) and <a href="http://christober.files.wordpress.com/2008/08/61.jpg"><img class="alignnone size-medium wp-image-113" src="http://christober.files.wordpress.com/2008/08/61.jpg?w=23&#038;h=23" alt="" width="23" height="23" /> </a>  = 1 ( Area of rectangle ABCDA )</p>
<p>If &#8216;n&#8217; equals infinity equation (4) is used</p>
<p>Which gives Ap = 0.33333</p>
<p>This process is the same as, </p>
<p><a href="http://christober.files.wordpress.com/2008/08/7.jpg"><img class="alignnone size-medium wp-image-114" src="http://christober.files.wordpress.com/2008/08/7.jpg?w=69&#038;h=132" alt="" width="69" height="132" /> </a></p>
<p>Wallis method of Integration is the base of modern integration.</p>
<p><strong>References:</strong></p>
<ol>
<li>Jacqueline A.stedall, The Discovery of wonders: Reading between the lines of John wallis&#8217;s Arithmetica infinitorium, Springer-verlag, 2001</li>
<li>A.Antoniou, On the roots of digital signal processing &#8211; part 1</li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/christober.wordpress.com/72/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/christober.wordpress.com/72/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/christober.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/christober.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/christober.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/christober.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/christober.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/christober.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/christober.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/christober.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/christober.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/christober.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=christober.wordpress.com&blog=3999072&post=72&subd=christober&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://christober.wordpress.com/2008/08/12/wallis-method-of-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">christober</media:title>
		</media:content>

		<media:content url="http://christober.files.wordpress.com/2008/08/wallis3.jpg?w=300" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/11.jpg?w=300" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/1.jpg?w=25" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/2.jpg?w=208" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/4.jpg?w=136" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/3.jpg?w=161" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/51.jpg?w=279" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/6.jpg?w=132" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/61.jpg?w=23" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/08/7.jpg?w=69" medium="image" />
	</item>
		<item>
		<title>Integration-Archimedes method</title>
		<link>http://christober.wordpress.com/2008/07/17/integration-archimedes-method/</link>
		<comments>http://christober.wordpress.com/2008/07/17/integration-archimedes-method/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 10:59:52 +0000</pubDate>
		<dc:creator>Christober rayappan</dc:creator>
				<category><![CDATA[Algorithms]]></category>

		<guid isPermaLink="false">http://christober.wordpress.com/?p=27</guid>
		<description><![CDATA[In the last article (Dated: 1 July, 2008) we had discussed about the origination of  successive approximation technique, discretization process and its relation with interpolation. Another intellectual achievement of archimedes is the invention of integration. 
In this article,

We will discuss about the origination of Integral calculus by explaining his method (geometrical proof) to calculate the area enclosed by a parabola
We [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=christober.wordpress.com&blog=3999072&post=27&subd=christober&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In the last article (Dated: 1 July, 2008) we had discussed about the origination of  successive approximation technique, discretization process and its relation with interpolation. Another intellectual achievement of archimedes is the invention of integration. </p>
<p>In this article,</p>
<ul>
<li>We will discuss about the origination of Integral calculus by explaining his method (geometrical proof) to calculate the area enclosed by a parabola</li>
<li>We will solve an example to gain more knowledge on the process. In this example, the area enclosed by a parabola is determined using modern integral calculus and the result is compared with Archimedes method of calculation.</li>
<li>The relationship between geometric series and integration will also be exploited using Archimedes method</li>
</ul>
<p>In a letter (Quadrature of parabola) to his friend Dositheus, archimedes wrote that the total area under the parabola [Fig 1] is 4/3 of the area of the blue triangle (i.e).</p>
<p>Area under the parabola = 4/3 * Area of the blue triangle</p>
<p><a href="http://christober.files.wordpress.com/2008/07/archimedes_parabola2.jpg"><img class="aligncenter size-full wp-image-30" src="http://christober.files.wordpress.com/2008/07/archimedes_parabola2.jpg?w=346&#038;h=186" alt="" width="346" height="186" /> </a></p>
<p>To prove this archimedes first determined that blue triangle has 8 times the area of each green triangle, each green triangle has 8 times the area of each yellow triangle and so on</p>
<p>(i.e)  He proved that Δ ACB = 8 * Δ ADC [Refer Fig 2]</p>
<p><a href="http://christober.files.wordpress.com/2008/07/quad_par1.jpg"><img class="aligncenter size-full wp-image-32" src="http://christober.files.wordpress.com/2008/07/quad_par1.jpg?w=233&#038;h=207" alt="" width="233" height="207" /> </a></p>
<p>Proof:</p>
<p>In Figure 2, M is the midpoint of the chord AB. A property of parabolas in general is that if AM is parallel to DE then</p>
<p>AM^2 / DE^2 = MC/EC      &#8212;&#8212;&#8212;&#8211; (1)</p>
<p>Archimedes refers to the classical work on conics by Euclid and aristaeus for the derivation of this property [ Refer: <a href="http://christober.files.wordpress.com/2008/07/the_works_of_archimedes1.pdf">The Works of Archimedes, Page:235 </a> ]</p>
<p>Further in figure 2, P is the midpoint of AM</p>
<p>Therefore, AM = 2 * DE      &#8212;&#8212;&#8212;&#8211; (2)</p>
<p>Substitute (2) in (1)</p>
<p>MC/EC = AM^2 / DE^2 = (2*DE)^2/DE^2 = 4 * DE^2/DE^2 =4</p>
<p>Which implies MC = 4*EC   &#8212;&#8212;&#8212;&#8212;&#8212; (3)</p>
<p>We know that, MC = ME+EC</p>
<p>Therefore ME = 3*EC , EC = ME/3 &#8212;&#8212;&#8212;- (4)</p>
<p>Substituting (4) in (3) Gives</p>
<p>MC = 4/3 * ME = 4/3 * PD     [Since PD = ME]</p>
<p>Δ ADC is similar to Δ DCW, Hence MC = 2 * PW</p>
<p>PW = 2/3 * PD [ Since MC = 4/3 * PD] and PW = 2 * WD.</p>
<p>Therefore Δ ACP = 2 * Δ ADC, Δ ACM = 4 * Δ ADC and <strong>Δ ACB = 8 * Δ ADC</strong></p>
<p>=&gt; Δ ADC = (1/8 )* Δ ACB</p>
<p>The triangle formed by the chord CB also has an eight of the area of Δ ACB</p>
<p>Similarly we can inscribe 4 yellow triangles which has an eight of the area of the blue triangle. This process continues indefinetely</p>
<p>Assuming that the blue triangle in Figure 1 has area 1, the total area under the parabola is an infinite sum</p>
<p>1 + 2*( 1/8 ) + 4*(1/8)^2 + 8*(1/8)^3 + &#8230;&#8230;&#8230;</p>
<p>Here the first term represents the area of the blue triangle, the second term the area of two green triangles, the third term the area of four yellow triangles and so on. Simplifying the ablove fraction gives</p>
<p>1+1/4+1/16+1/64 + &#8230;&#8230;</p>
<p>This is a Geometric ratio with common ratio 1/4. The sum of the geometric series is given by 1/(1-r) where &#8216;r&#8217; is the common ratio</p>
<p>=&gt; 1/1-(1/4) = 4/3</p>
<p>In general we can say that the area under the parabola is 4/3 * area of the blue triangle.</p>
<h3>Example:</h3>
<p>To gain more knowledge into the proof we will find the area under parabola y = x^2 +1 intersected by a line at y=10 </p>
<h4><strong>Archimedes method:</strong></h4>
<p>We know by archimedes method, Area under the parabola = 4/3 * Area of Δ ABC</p>
<p><a href="http://christober.files.wordpress.com/2008/07/example1.jpg"><img class="aligncenter size-full wp-image-43" src="http://christober.files.wordpress.com/2008/07/example1.jpg?w=337&#038;h=334" alt="" width="337" height="334" /> </a></p>
<p>From Figure 3, Area of Δ ABC = 1/2 (b * h)</p>
<p>h=9, b= abs(-3) + abs(3) = 6</p>
<p>=(1/2 )* 54 =&gt; Area of Δ ABC = 27</p>
<p>Therefore area under the parabola = 4/3*(27) = 36</p>
<h4>Modern (or) well known Integral calculus:</h4>
<p><a href="http://christober.files.wordpress.com/2008/07/picture2.jpg"><img class="alignnone size-full wp-image-40" src="http://christober.files.wordpress.com/2008/07/picture2.jpg?w=251&#038;h=44" alt="" width="251" height="44" /> </a></p>
<p>Where f(x) = y-(x^2)</p>
<p><a href="http://christober.files.wordpress.com/2008/07/untitled1.jpg"><img class="alignnone size-full wp-image-46" src="http://christober.files.wordpress.com/2008/07/untitled1.jpg?w=149&#038;h=88" alt="" width="149" height="88" /> </a></p>
<p>as we had expected.</p>
<h3>References:</h3>
<ol>
<li> <a href="http://christober.files.wordpress.com/2008/07/the_works_of_archimedes1.pdf">The Works of Archimedes, Page:235 </a></li>
<li><a href="http://www.jstor.org/pss/2691014" target="_blank">Gordon swain and Thomas Dence, Archimedes&#8217; Quadrature of the parabola revisited, Mathematics magazine. Vol. 71. No.2 (Apr.1998), pp.123-130</a>  [This article is not freely downloadable. However it is very intresting and worth to pay <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ]</li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/christober.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/christober.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/christober.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/christober.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/christober.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/christober.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/christober.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/christober.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/christober.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/christober.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/christober.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/christober.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=christober.wordpress.com&blog=3999072&post=27&subd=christober&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://christober.wordpress.com/2008/07/17/integration-archimedes-method/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">christober</media:title>
		</media:content>

		<media:content url="http://christober.files.wordpress.com/2008/07/archimedes_parabola2.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/07/quad_par1.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/07/example1.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/07/picture2.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/07/untitled1.jpg" medium="image" />
	</item>
		<item>
		<title>Approximation of ∏ &#8211; Archimedes Algorithm</title>
		<link>http://christober.wordpress.com/2008/07/01/approximation-of-%e2%88%8f-archimedes-algorithm/</link>
		<comments>http://christober.wordpress.com/2008/07/01/approximation-of-%e2%88%8f-archimedes-algorithm/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 06:41:56 +0000</pubDate>
		<dc:creator>Christober rayappan</dc:creator>
				<category><![CDATA[Algorithms]]></category>

		<guid isPermaLink="false">http://christober.wordpress.com/?p=5</guid>
		<description><![CDATA[I wish to start this blog by describing the Archimedes method of calculating the perimeter of circle with a diameter of one unit, which happens to be equal to ∏.  You might ask why to study an old algorithm? or how does a perimeter of circle help us in today&#8217;s applications?. You will surely appreciate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=christober.wordpress.com&blog=3999072&post=5&subd=christober&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I wish to start this blog by describing the Archimedes method of calculating the perimeter of circle with a diameter of one unit, which happens to be equal to ∏.  You might ask why to study an old algorithm? or how does a perimeter of circle help us in today&#8217;s applications?. You will surely appreciate the below reasons to study this algorithm.</p>
<ul>
<li>The connection between the perimeter of a circle to the origin of signal processing can be revealed by looking  at Archimedes method.</li>
<li>Sine waves have a fundamental period of 2*∏.  Therefore ∏ (Perimeter of circle with a diameter of one unit) becomes vital in signal processing</li>
<li>Learning history will motivate us to learn advance algorithms.</li>
</ul>
<p>In this article i will help you to understand the first bulleted point.</p>
<p><a href="http://en.wikipedia.org/wiki/Archimedes" target="_blank">Archimedes of Syracuse</a> contributed quite substantially to the theory of mechanics and mathematics. One of his greatest achievement is his method of calculating the perimeter of a circle with a diameter of one unit, which happens to be equal to ∏. He inscribed a hexagon in a circle of diameter of one unit and divided the hexagon into six equilateral triangles as shown in figure 1. Since the diameter of the circle is one unit , the sides of each triangle is half a unit long.</p>
<p>Therefore, perimeter of the inscribed Hexagon = 6 * 1/2 = 3 units</p>
<p><a href="http://christober.files.wordpress.com/2008/06/pic2.jpg"><img class="aligncenter size-full wp-image-20" src="http://christober.files.wordpress.com/2008/06/pic2.jpg?w=450&#038;h=486" alt="" width="450" height="486" /> </a></p>
<p><a href="http://christober.files.wordpress.com/2008/06/fig11.jpg"></a></p>
<p style="text-align:center;"><a href="http://christober.files.wordpress.com/2008/06/inshex.jpg"></a></p>
<p>Archimedes concluded that the perimeter of the circle ∏, is larger than 3, the perimeter of hexagon.</p>
<p style="text-align:center;">a6 = 3 &lt; ∏</p>
<p style="text-align:center;">Where &#8216;a6&#8242; is the perimeter of the inscribed hexagon</p>
<p style="text-align:left;">He then circumscribed the circle by another hexagon as illustrated in figure 2.</p>
<p style="text-align:left;"><a href="http://christober.files.wordpress.com/2008/06/picture1.jpg"><img class="aligncenter size-full wp-image-19" src="http://christober.files.wordpress.com/2008/06/picture1.jpg?w=450&#038;h=552" alt="" width="450" height="552" /> </a></p>
<p>To find out the perimeter of the larger hexagon, Pythagoras theorem helped him.</p>
<p>The Length of the sides of the equilateral triangle ABC is calculated as follows:</p>
<p>In right angled triangle ABD,</p>
<p>L^2 = (L/2)^2 + (1/2)^2 [ <a href="http://en.wikipedia.org/wiki/Pythagoras" target="_blank">Pythogoras</a> theorem]</p>
<p>Upon simplification,</p>
<p>L^2 = 1/3 , which implies L = 1/√3</p>
<p>Therefore the perimeter of the larger hexagon is 6*( 1/√3)= 2*√3 = 3.4641</p>
<p>From this Archimedes concluded that the perimeter of circle would be less than 3.4641, i.e.,</p>
<p>a6=3&lt; ∏ &lt;3.4641=b6, where &#8216;b6&#8242; is the perimeter of the larger hexagon.</p>
<p>Most of us would have stopped at this point. However Archimedes thought about the next step. He doubled the sides of the inside hexagon to obtain a 12 sided polygon and calculated the perimeter of the inside polygon(a12). Similarly he doubled the sides of of the outside hexagon and calculated the perimeter of outside polygon (b12). He found out that the perimeter of outside polygon (b12) is given by the harmonic mean of a6 and b6.</p>
<p><span style="text-decoration:underline;"><a href="http://mathforum.org/library/drmath/view/57565.html" target="_blank">Harmonic mean</a> </span> is defined as the reciprocal of the arithmetic mean of the two numbers, i.e,</p>
<p>b12 = 1/1/2*(1/a6+1/b6) = 2*a6*b6/a6+b6                  &#8212;&#8212;&#8211;  (1)</p>
<p>and a12 is given by the <a href="http://en.wikipedia.org/wiki/Geometric_mean" target="_blank">geometric mean</a> of a6 and b12, i.e;</p>
<p>a12 = √a6*b12                                                                &#8212;&#8212;&#8211; (2)</p>
<p>Using equations (1) and (2) we get,</p>
<p>b12=3.2154 and a12=3.1058. Therefore ∏ value should lie between,</p>
<p>3&lt;3.1058&lt;∏&lt;3.2154&lt;3.4641</p>
<p>Obviously we know that a 12-sided polygon will provide a closer bound on the perimeter of circle compared to the 6 sided polygon.</p>
<p>The genius also noted that equations (1) and (2) readily extend to 24, 48, 96 sided polygons. Infact the relation holds good for 2n sided polygons which is given as,</p>
<p>b2n = 2*an*bn / an+bn</p>
<p>and</p>
<p>a2n = √an*b2n</p>
<p>Using these relations the lower and upper bounds of ∏, given in table 1 is obtained</p>
<p><a href="http://christober.files.wordpress.com/2008/06/presentation11.jpg"><img class="aligncenter size-full wp-image-22" src="http://christober.files.wordpress.com/2008/06/presentation11.jpg?w=450&#038;h=167" alt="" width="450" height="167" /> </a></p>
<p>The average value of ∏ for the 96 sided polygon is referred as the archimedes algorithm. It has an erorr of about 0.008%.</p>
<h3>Relation to signal processing:</h3>
<p>The bounds of ∏ is due to the discrete functions of &#8216;n&#8217; and there averages are successive approximations of the perimeter of the circle. The successive approximations using geometric and harmonic mean is a method of interpolation and the discrete functions of &#8216;n&#8217; can be depicted as the discretization process in modern terminology.</p>
<p>Approximation of circle interms of polygon was done independently in china where Tsu Chung-Chi(430-501) found the more precise bound</p>
<p>3.1415926&lt;∏&lt;3.1415927</p>
<p>and said that <strong>22/7 is an inaccurate value of ∏</strong> and termed 355/113 as the accurate value of ∏</p>
<h3>Software:</h3>
<p>Access the below link to download the &#8216;C&#8217; program. The program works upto 6144 sided polygons.</p>
<p><a href="http://christober.files.wordpress.com/2008/06/archimedes.pdf">Download Archimedes method </a></p>
<h3>References:</h3>
<ol>
<li><a href="http://www.ece.uvic.ca/~andreas/RLectures/RootsPart-I-CasMag.pdf" target="_blank">A.Antoniou, On the Roots of Digital signal processing &#8211; Part 1</a></li>
<li><a href="http://www-history.mcs.st-and.ac.uk/Indexes/HistoryTopics.html" target="_blank">Indexes of Biographies. The Mactutor History of Mathematics Archive</a></li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/christober.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/christober.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/christober.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/christober.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/christober.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/christober.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/christober.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/christober.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/christober.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/christober.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/christober.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/christober.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=christober.wordpress.com&blog=3999072&post=5&subd=christober&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://christober.wordpress.com/2008/07/01/approximation-of-%e2%88%8f-archimedes-algorithm/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">christober</media:title>
		</media:content>

		<media:content url="http://christober.files.wordpress.com/2008/06/pic2.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/06/picture1.jpg" medium="image" />

		<media:content url="http://christober.files.wordpress.com/2008/06/presentation11.jpg" medium="image" />
	</item>
	</channel>
</rss>