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

<channel>
	<title>jagged tooth v2.1 &#187; greens theorem</title>
	<atom:link href="http://incisors.wordpress.com/tag/greens-theorem/feed/" rel="self" type="application/rss+xml" />
	<link>http://incisors.wordpress.com</link>
	<description>Blog for AP 186</description>
	<lastBuildDate>Mon, 06 Oct 2008 13:54:14 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='incisors.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/ddf399ffdf73266657059c785470b710?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>jagged tooth v2.1 &#187; greens theorem</title>
		<link>http://incisors.wordpress.com</link>
	</image>
			<item>
		<title>Activity 2: Measuring Areas Using Green&#8217;s theorm</title>
		<link>http://incisors.wordpress.com/2008/06/19/activity-2-measuring-areas-using-greens-theorm/</link>
		<comments>http://incisors.wordpress.com/2008/06/19/activity-2-measuring-areas-using-greens-theorm/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 02:53:26 +0000</pubDate>
		<dc:creator>jptugaff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[areas]]></category>
		<category><![CDATA[greens theorem]]></category>

		<guid isPermaLink="false">http://incisors.wordpress.com/?p=12</guid>
		<description><![CDATA[We use Green&#8217;s theorem in finding the area of a given regular polygon. Green&#8217;s theorems states that we can get the area of a region R bounded by a closed counter C using the formula


In Scilab, the closed counter can be traced using the &#8216;follow&#8217; command from the SIP toolbox. The syntax of the command [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=incisors.wordpress.com&blog=3941311&post=12&subd=incisors&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We use Green&#8217;s theorem in finding the area of a given regular polygon. Green&#8217;s theorems states that we can get the area of a region R bounded by a closed counter C using the formula</p>
<p style="text-align:center;"><a href="http://incisors.files.wordpress.com/2008/06/eq1.png"><img class="alignnone size-medium wp-image-15 aligncenter" src="http://incisors.files.wordpress.com/2008/06/eq1.png?w=158&#038;h=45" alt="" width="158" height="45" /></a></p>
<p style="text-align:center;"><a href="http://incisors.files.wordpress.com/2008/06/eq2.png"><img class="alignnone size-medium wp-image-16" src="http://incisors.files.wordpress.com/2008/06/eq2.png?w=199&#038;h=56" alt="" width="199" height="56" /></a></p>
<p style="text-align:left;">In Scilab, the closed counter can be traced using the &#8216;follow&#8217; command from the SIP toolbox. The syntax of the command is:</p>
<p style="text-align:center;">[x,y]=follow(g);</p>
<p style="text-align:left;">which results to the lists x and y containing the x and y coordinates of the contour (or simply the edge) respectively. It should be noted, however, that follow uses a black (0) background and white (1) object. The coordinates x and y gives the coordinates of the white object nearest to the edge.</p>
<p style="text-align:left;">The theoretical value of the area is measured by counting the number of white pixels (valued 1). Since binary images are converted to ones and zeros by scilab, the theoretical value of the area is simply <em>sum(g)</em>.</p>
<p><img src="/DOCUME~1/AP186U~1/LOCALS~1/Temp/moz-screenshot.jpg" alt="" /></p>
<p><a href="http://incisors.files.wordpress.com/2008/06/square.jpg"></a></p>
<p style="text-align:center;">
<p>//Jeric Tugaff<br />
//Activity 2<br />
//compute for areas using green&#8217;s theorem</p>
<p>g=imread(&#8216;C:\Documents and Settings\AP186user04\Desktop\AP186\Activity 2\square.bmp&#8217;);<br />
[x,y]=follow(g);<br />
ta=sum(g) // theoretical area<br />
x1(1)=x(length(x));<br />
x1(2:length(x))=x(1:length(x)-1);<br />
y1(1)=y(length(y));<br />
y1(2:length(y))=y(1:length(y)-1);<br />
a=0.5*sum( x1.*y &#8211; y1.*x)</p>
<p style="text-align:center;"><img class="alignnone size-medium wp-image-14 aligncenter" src="http://incisors.files.wordpress.com/2008/06/square.jpg?w=200&#038;h=200" alt="square" width="200" height="200" /></p>
<p style="text-align:left;">
<p style="text-align:left;">results yield an ares of  24964 pixel when using green&#8217;s theorem, while the theoretical value is 25281 with error of  1.2539061% for the square. For circle, theoretical is 30937 and actual is 30656. Finally, for triangle, theoretical is 20000 and actual is 19701.</p>
<p style="text-align:left;"><a href="http://incisors.files.wordpress.com/2008/06/circle.jpg"></a><a href="http://incisors.files.wordpress.com/2008/06/triangle1.jpg"></a></p>
<p style="text-align:center;"><img class="alignnone size-thumbnail wp-image-18 aligncenter" src="http://incisors.files.wordpress.com/2008/06/circle.jpg?w=96&#038;h=96" alt="" width="96" height="96" /></p>
<p style="text-align:center;"><img class="alignnone size-thumbnail wp-image-19 aligncenter" src="http://incisors.files.wordpress.com/2008/06/triangle1.jpg?w=96&#038;h=96" alt="" width="96" height="96" /></p>
<p style="text-align:left;">Colloborators: Julie Mae Dado (for help in some scilab commands, and conversion of .jpg images to binary format), Benjamin Palmares (for the help in configuring the scilab), Mark Leo Bejemino (for the invalueble discussion), and to Lei Uy (for helping out which bmp format is suitable, which, by the way, is the 24-bit bmp format)</p>
<p style="text-align:left;">Rating: 10. Because the computed area is well within the accepted value of the error. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/incisors.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/incisors.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/incisors.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/incisors.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/incisors.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/incisors.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/incisors.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/incisors.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/incisors.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/incisors.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/incisors.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/incisors.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=incisors.wordpress.com&blog=3941311&post=12&subd=incisors&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://incisors.wordpress.com/2008/06/19/activity-2-measuring-areas-using-greens-theorm/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7180bfbb1df0d02507e75d02e265e0fa?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">jptugaff</media:title>
		</media:content>

		<media:content url="http://incisors.files.wordpress.com/2008/06/eq1.png?w=158" medium="image" />

		<media:content url="http://incisors.files.wordpress.com/2008/06/eq2.png?w=199" medium="image" />

		<media:content url="/DOCUME~1/AP186U~1/LOCALS~1/Temp/moz-screenshot.jpg" medium="image" />

		<media:content url="http://incisors.files.wordpress.com/2008/06/square.jpg?w=200" medium="image">
			<media:title type="html">square</media:title>
		</media:content>

		<media:content url="http://incisors.files.wordpress.com/2008/06/circle.jpg?w=96" medium="image" />

		<media:content url="http://incisors.files.wordpress.com/2008/06/triangle1.jpg?w=96" medium="image" />
	</item>
	</channel>
</rss>