<?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>Bobobobo's Weblog &#187; math</title>
	<atom:link href="http://bobobobo.wordpress.com/category/math/feed/" rel="self" type="application/rss+xml" />
	<link>http://bobobobo.wordpress.com</link>
	<description>technology and the internets</description>
	<lastBuildDate>Mon, 30 Nov 2009 16:56:23 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='bobobobo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/0e8d17c68f90a18a1e89a776717e00e2?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Bobobobo's Weblog &#187; math</title>
		<link>http://bobobobo.wordpress.com</link>
	</image>
			<item>
		<title>On rotation matrices</title>
		<link>http://bobobobo.wordpress.com/2009/06/18/on-rotation-matrices/</link>
		<comments>http://bobobobo.wordpress.com/2009/06/18/on-rotation-matrices/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 19:07:55 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/?p=1139</guid>
		<description><![CDATA[On Rotation Matrices
A common problem you come across is GIVEN a vector describing a &#8220;look&#8221; direction, HOW CAN WE MAKE A ROTATION MATRIX THAT WILL &#8220;LINE UP&#8221; WITH IT?  You often want to do something like this when you have a character model that you need to rotate to line up with the direction [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=1139&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h1>On Rotation Matrices</h1>
<p>A common problem you come across is GIVEN a vector describing a &#8220;look&#8221; direction, HOW CAN WE MAKE A ROTATION MATRIX THAT WILL &#8220;LINE UP&#8221; WITH IT?  You often want to do something like this when you have a character model that you need to rotate to line up with the direction that the character is currently facing.  For example, you are writing a 3d space simulator game and you need the ship&#8217;s model to be lined up precisely with the direction the ship is facing.</p>
<p>It turns out, this is easy to do.  So easy to do in fact, you&#8217;ll kick yourself for not having known this.  But it isn&#8217;t easy to understand how it works.</p>
<p>So, first, let&#8217;s understand the principles of what we&#8217;re doing here in 2d, then we&#8217;ll extend our answer to 3d.</p>
<h1>Rotating something to line up with an object in 2d</h1>
<p>Assume you work in a world of vectors.  In your 2d game, you need to have the model of your character point in the direction that he is looking.</p>
<p>Have: (red arrow is direction the Triangle character is looking).</p>
<p><img src="http://bobobobo.files.wordpress.com/2009/06/1.png" /></p>
<p>But the black triangle and black arrow indicate the stock direction the model faces.</p>
<p>Want:</p>
<p><img src="http://bobobobo.files.wordpress.com/2009/06/2.png" /></p>
<p>The most obvious way to solve this problem is just a 2d rotation matrix.</p>
<p>Matrix that rotates a point t degrees counter-clockwise:</p>
<p><img src="http://bobobobo.files.wordpress.com/2009/06/3.png" /></p>
<p>The Triangle starts with its Heading vector pointing (1, 0).  What we need to do is rotate the Heading vector 60 degrees counter-clockwise.</p>
<p>To make a 60 degree CCW rotation, let&#8217;s use the CCW rotation matrix, plugging in 60 degrees for the rotation we want:</p>
<p><img src="http://bobobobo.files.wordpress.com/2009/06/4.png" /></p>
<p>So we end up with this set of numbers that promise to rotate a set of points 60 degrees counterclockwise:</p>
<p><img src="http://bobobobo.files.wordpress.com/2009/06/5.png" /></p>
<p>Now here&#8217;s another way to get that same matrix.  Are you ready?  </p>
<p><img src="http://bobobobo.files.wordpress.com/2009/06/6.png" /></p>
<p>The red vector (which points in the direction we want to face) is called the forward vector.  The blue vector, we&#8217;ll simply call the side vector.  ASSUME BOTH THE forward AND side vectors are UNIT VECTORS (THIS IS VERY IMPORTANT!!)</p>
<p>Since we know the forward vector is a unit vector and it has a 60 degree angle with the x-axis, we can express it as:<br />
  x<sub>fwd</sub>	= cos( 60 )<br />
	= 0.5</p>
<p>  y<sub>fwd</sub>	= sin( 60 )<br />
	= 0.86</p>
<p>So a unit vector in the plane, when broken down into its x, y components, is always going to be x=cos(t), y=sin(t) where <b>t</b> is the angle that the vector forms with the +x axis.</p>
<p>The blue vector makes (90+60=150) degree angle with the +x axis.  So it can be expressed as:<br />
  x<sub>perpleft</sub>	= cos( 150 )<br />
	= -0.86</p>
<p>  y<sub>perpleft</sub>	= sin( 150 )<br />
	= 0.5</p>
<p>So, speaking in terms of the orientation we want, we have two vectors:</p>
<p>  forward (describes direction we want to look in)=( 0.5, 0.86 )<br />
  perpleft (90 degrees counter-clockwise perpendicular to the forward vector) = ( -0.86, 0.5 )</p>
<p>We could also derive the perpleft vector by noticing that ( -y, x ) is always going to be a 90 degree counter-clockwise rotated perpendicular to any vector you have.</p>
<blockquote><p>
side note:<br />
You are sure that (-y,x) is a perpendicular to (x,y) because the dot product:<br />
	(x,y)*(-y,x) = -yx + xy = 0</p>
<p>and so, (-y,x) is always perpendicular to (x,y).</p>
<p>The other way to derive this is to construct the 90 degree CCW rotation matrix and notice that it always comes out to</p>
<pre>
[ cos(90)   -sin(90) ] [ x ]
[ sin(90)    cos(90) ] [ y ]

[ 0   -1 ] [ x ] = [ -y ]
[ 1    0 ] [ y ]   [  x ]
</pre>
</blockquote>
<p>So, look at those again:</p>
<p>forward:  ( 0.5, 0.86 )<br />
perpleft:  ( -0.86, 0.5 )</p>
<p>Does that look familiar?</p>
<p><img src="http://bobobobo.files.wordpress.com/2009/06/7.png" /></p>
<p>So we can do this:</p>
<p><img src="http://bobobobo.files.wordpress.com/2009/06/81.png" /></p>
<p>Assuming you use column vectors and not row vectors.  If you&#8217;re using row vectors, you have to transpose it.</p>
<p>Isn&#8217;t that neat?</p>
<p>This extends to 3D:</p>
<p><img src="http://bobobobo.files.wordpress.com/2009/06/9.png" /></p>
<p>At this point, I&#8217;ll direct you to <a href="http://www.fastgraph.com/makegames/3drotation/">Diana Gruber&#8217;s article</a> and leave it at that.</p>
Posted in math Tagged: math <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/1139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/1139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/1139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/1139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/1139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/1139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/1139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/1139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/1139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/1139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=1139&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2009/06/18/on-rotation-matrices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>

		<media:content url="http://bobobobo.files.wordpress.com/2009/06/1.png" medium="image" />

		<media:content url="http://bobobobo.files.wordpress.com/2009/06/2.png" medium="image" />

		<media:content url="http://bobobobo.files.wordpress.com/2009/06/3.png" medium="image" />

		<media:content url="http://bobobobo.files.wordpress.com/2009/06/4.png" medium="image" />

		<media:content url="http://bobobobo.files.wordpress.com/2009/06/5.png" medium="image" />

		<media:content url="http://bobobobo.files.wordpress.com/2009/06/6.png" medium="image" />

		<media:content url="http://bobobobo.files.wordpress.com/2009/06/7.png" medium="image" />

		<media:content url="http://bobobobo.files.wordpress.com/2009/06/81.png" medium="image" />

		<media:content url="http://bobobobo.files.wordpress.com/2009/06/9.png" medium="image" />
	</item>
		<item>
		<title>how to solve some summation problems</title>
		<link>http://bobobobo.wordpress.com/2009/05/16/how-to-solve-some-summation-problems/</link>
		<comments>http://bobobobo.wordpress.com/2009/05/16/how-to-solve-some-summation-problems/#comments</comments>
		<pubDate>Sat, 16 May 2009 15:32:58 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/?p=950</guid>
		<description><![CDATA[Say you come across

What you do is
break it up 

Posted in math Tagged: math      <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=950&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Say you come across</p>
<p><img src="http://bobobobo.files.wordpress.com/2009/05/summationproblem.png" /></p>
<p>What you do is<br />
break it up </p>
<p><img src="http://bobobobo.files.wordpress.com/2009/05/solvingsummation.png" /></p>
Posted in math Tagged: math <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/950/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/950/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/950/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/950/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/950/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/950/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/950/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/950/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/950/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/950/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=950&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2009/05/16/how-to-solve-some-summation-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>

		<media:content url="http://bobobobo.files.wordpress.com/2009/05/summationproblem.png" medium="image" />

		<media:content url="http://bobobobo.files.wordpress.com/2009/05/solvingsummation.png" medium="image" />
	</item>
		<item>
		<title>Synthetic division!</title>
		<link>http://bobobobo.wordpress.com/2008/01/22/synthetic-division/</link>
		<comments>http://bobobobo.wordpress.com/2008/01/22/synthetic-division/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 22:23:07 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/2008/01/22/synthetic-division/</guid>
		<description><![CDATA[Here&#8217;s a great link to the purple math site (a great site).
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=103&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Here&#8217;s a <a href="http://www.purplemath.com/modules/synthdiv.htm">great link to the purple math site (a great site)</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bobobobo.wordpress.com/103/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bobobobo.wordpress.com/103/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=103&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2008/01/22/synthetic-division/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>
	</item>
		<item>
		<title>Controlling matlab plots</title>
		<link>http://bobobobo.wordpress.com/2008/01/22/controlling-matlab-plots/</link>
		<comments>http://bobobobo.wordpress.com/2008/01/22/controlling-matlab-plots/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 18:17:28 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/2008/01/22/controlling-matlab-plots/</guid>
		<description><![CDATA[Matlab plot syntax is easy to use but apparently easy to forget.
Here I&#8217;m plotting the line y = x2 from x = -20 to +20.



% generate x, y vectors
x = -20:0.01:20;   % x goes from -20 to 20 in steps of 0.01
y = x.^2;          [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=99&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Matlab plot syntax is easy to use but apparently easy to forget.</p>
<p>Here I&#8217;m plotting the line y = x<sup>2</sup> from x = -20 to +20.</p>
<blockquote>
<pre>
<font color="white">
% generate x, y vectors
x = -20:0.01:20;   % x goes from -20 to 20 in steps of 0.01
y = x.^2;            % generate y
plot(x,y);
</font>
</pre>
</blockquote>
<p><img src='http://bobobobo.files.wordpress.com/2008/01/yeqx2.png' alt='y = x^2' /></p>
<p>Hmm the plot would be easier to see if it had grid lines drawn in.</p>
<blockquote>
<pre>
<font color="white">
% generate x, y vectors
x = -20:0.01:20;   % x goes from -20 to 20 in steps of 0.01
y = x.^2;            % generate y
plot(x,y);
<b>grid on;</b>
</font>
</pre>
</blockquote>
<p>Hmm, I want to zoom the plot in so it shows from -2 to +2 of the x-axis and from -1 to +3 of the y-axis. </p>
<blockquote>
<pre>
<font color="white">
% generate x, y vectors
x = -20:0.01:20;   % x goes from -20 to 20 in steps of 0.01
y = x.^2;            % generate y
plot(x,y);
grid on;
<b>axis( [-2, 2, -1, 3] );</b>  % NOTICE this goes AFTER the plot() command, [ xmin, xmax, ymin, ymax ]
% you must have the [], the axis function takes ONE argument with vector type, not 4 different arguments.

</font>
</pre>
</blockquote>
<h1>Finer control</h1>
<p>We can get much finer control over our matlab plots by ACQUIRING THE HANDLE to the axes.</p>
<p>The axes exist as an object in memory somewhere inside the MATLAB &#8220;machine&#8221;.  The &#8216;handle&#8217; to the axes is YOUR POINTER that you can use to make changes to that axes object, even though the MATLAB program isn&#8217;t fully under your control.  You have control over PARTS of MATLAB THROUGH these handles you can get.</p>
<p>This is easy.</p>
<h3>So howdya get the handle?</h3>
<blockquote>
<pre>
<font color="white">
% generate x, y vectors
x = -20:0.01:20;   % x goes from -20 to 20 in steps of 0.01
y = x.^2;            % generate y
plot(x,y);

HANDLE = gca;  % "get current axis handle" . . gives you "handle" to the axes that belong to the plot you JUST made.
% Remember, a HANDLE to the axes are just a programmatic "means to control" the axes.

% now try this
get( HANDLE );

%% wow!  you'll see a huge listing here like
%	ActivePositionProperty = outerposition
%	ALim = [0 1]
%	ALimMode = auto
%	AmbientLightColor = [1 1 1]
%	Box = on

% You can customize any of these by choosing something, then SETTING the property using the SET function.

% e.g. let's change the background color to dark blue, and the axes color to
set( HANDLE, &apos;Color&apos;, [0,0.1,0.2] ); %background color to dark blue

</font>
</pre>
</blockquote>
<h3>How do you change the color of the matlab plot itself?</h3>
<blockquote>
<pre>
<font color="white">
% generate x, y vectors
x = -20:0.01:20;   % x goes from -20 to 20 in steps of 0.01
y = x.^2;            % generate y
plothandle = plot(x,y);

% now try this
get( plothandle ) ;
%lists all properties you can change of the PLOT itself

set( plothandle, &apos;Color&apos;, [ 1, 0.5, 0 ] );  % plot color to orange
set ( plothandle, &apos;LineWidth&apos;, 1.5 );   % make matlab plot line wider

</font>
</pre>
</blockquote>
<p><img src='http://bobobobo.files.wordpress.com/2008/01/modplot.png' alt='altered colored matlab plot . . the altered beast if you will' /></p>
<p>All the stuff in this section uses code like:</p>
<blockquote><p>
set( HANDLE, &apos;PropertyName&apos;, PropertyValue ) ;
</p></blockquote>
<p><a href="http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/axes_props.html">ref</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bobobobo.wordpress.com/99/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bobobobo.wordpress.com/99/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/99/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=99&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2008/01/22/controlling-matlab-plots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>

		<media:content url="http://bobobobo.files.wordpress.com/2008/01/yeqx2.png" medium="image">
			<media:title type="html">y = x^2</media:title>
		</media:content>

		<media:content url="http://bobobobo.files.wordpress.com/2008/01/modplot.png" medium="image">
			<media:title type="html">altered colored matlab plot . . the altered beast if you will</media:title>
		</media:content>
	</item>
		<item>
		<title>fermat&#8217;s last theorem blog</title>
		<link>http://bobobobo.wordpress.com/2008/01/20/fermats-last-theorem-blog/</link>
		<comments>http://bobobobo.wordpress.com/2008/01/20/fermats-last-theorem-blog/#comments</comments>
		<pubDate>Sun, 20 Jan 2008 23:21:44 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/2008/01/20/fermats-last-theorem-blog/</guid>
		<description><![CDATA[here!
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=83&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://fermatslasttheorem.blogspot.com/">here!</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bobobobo.wordpress.com/83/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bobobobo.wordpress.com/83/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=83&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2008/01/20/fermats-last-theorem-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>
	</item>
		<item>
		<title>How to do epsilon-delta proofs, 1st year Calculus</title>
		<link>http://bobobobo.wordpress.com/2008/01/20/how-to-do-epsilon-delta-proofs-1st-year-calculus/</link>
		<comments>http://bobobobo.wordpress.com/2008/01/20/how-to-do-epsilon-delta-proofs-1st-year-calculus/#comments</comments>
		<pubDate>Sun, 20 Jan 2008 15:41:44 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/2008/01/20/how-to-do-epsilon-delta-proofs-1st-year-calculus/</guid>
		<description><![CDATA[Understanding epsilon-delta proofs
First, get and read this.  Really good.
before you even START with epsilon-delta . . . 


&#124; x &#8211; 3 &#124; &#60; 1;


SAYS in English &#8220;x is within 1 unit of 3.&#8221;
You have to be fluent with that idea before starting &#949;-delta; proofs.
Let&#8217;s look at a picture of this inequality on the real [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=82&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h1>Understanding epsilon-delta proofs</h1>
<p>First, get and read <a href="http://www.ocf.berkeley.edu/~yosenl/math/epsilon-delta.pdf">this</a>.  Really good.</p>
<h2>before you even START with epsilon-delta . . . </h2>
<blockquote><p>
<font color="#fff"><br />
| x &#8211; 3 | &lt; 1;<br />
</font>
</p></blockquote>
<p>SAYS in English &#8220;x is within 1 unit of 3.&#8221;</p>
<p>You have to be fluent with that idea before starting &epsilon;-delta; proofs.</p>
<p>Let&#8217;s look at a picture of this inequality on the real number line:</p>
<p> <img src='http://bobobobo.files.wordpress.com/2008/01/eps_delta_1.gif' alt='x lies here' /></p>
<p>So for example, if x = 2.8:</p>
<blockquote>
<pre>
| 2.8 - 3 | &lt; 1
| -0.2 | &lt; 1
0.2 &lt; 1    ===   TRUE
</pre>
</blockquote>
<p>Now let&#8217;s try for x = 3.5.</p>
<blockquote>
<pre>
| 3.5 - 3 | &lt; 1
| 0.5 | &lt; 1
0.5 &lt; 1   ===   TRUE
</pre>
</blockquote>
<p>So, | x &#8211; 3 | &lt; 1 MEANS <em>x must be within 1 unit of 3 on the real number line</em>.</p>
<p>To be able to understand epsilon-delta at all, you have to get into the habit of looking at an inequality like</p>
<p>    | x &#8211; 10 | &lt; 5</p>
<p>And immediately just say in a snap &#8220;That inequality says that x is within 5 units of 10&#8243;</p>
<p>Or<br />
    | x &#8211; 0.4 | &lt; 0.00001</p>
<p>And say &#8220;That inequality says that x is within 0.00001 units of 0.4.&#8221;</p>
<p>In general, for any inequality with the format:</p>
<p>   | x &#8211; c | &lt; a</p>
<p>That says in plain english that &#8220;x is within a units of c.&#8221;</p>
<hr />
<p>Epsilon-delta proofs are <em>actually</em> easy.</p>
<h2>The <b>meat</b> of epsilon-delta proofs</h2>
<p>The meat of epsilon-delta proofs is just this idea.</p>
<blockquote><p>
<font color="white"><br />
if<br />
   0 &lt; | x &#8211; c | &lt; &delta;</p>
<p>then<br />
   | f(x) &#8211; L | &lt; &epsilon;<br />
</font>
</p></blockquote>
<h2>Epsilon-delta says:</h2>
<p><big><b><br />
AS WE RESTRICT x to being within &delta; units of c, then, as a result of that restriction, f(x) becomes restricted to being within &epsilon; units of L.</p>
<p>If the above statement is true, then and only then can we say</p>
<pre>
lim   f(x) = L
x-&gt;c
</pre>
<p></b></big></p>
<hr />
<p>So, here&#8217;s the &#8220;definition of a limit&#8221;, but with more explanation in English words:</p>
<blockquote><p>
The limit:</p>
<p>lim      f(x) = L<br />
x-&gt;c</p>
<p><em>exists <b>if and only if</b></em></p>
<p>when we restrict x to be within &delta; units of c,</p>
<p>   0 &lt; | x &#8211; c | &lt; &delta;</p>
<p>then, as a consequence of that restriction, we in effect are restricting f(x) to be within &epsilon; units of L.</p>
<p>   | f(x) &#8211; L | &lt; &epsilon;</p>
<p>If that happens, then we know that the limit of f(x) as x -&gt; c <b><i>is</i></b> equal to L.
</p></blockquote>
<h2>Ok, but how do you do an epsilon-delta proof?</h2>
<p>So here&#8217;s an example of how this stuff works.</p>
<blockquote>
<pre>
Use epsilon-delta to "show" that

lim  3x - 3  =  12
x-&gt;5
</pre>
</blockquote>
<p>I know what you&#8217;re thinking.  &#8220;Can&#8217;t we just do this:&#8221;</p>
<blockquote>
<pre>

lim  3x - 3
x-&gt;5

= 15 - 3

= 12
</pre>
</blockquote>
<p>but nooooooo!  That&#8217;s not good enough for epsilon-stupid.  You must &#8220;show&#8221; it.</p>
<blockquote>
<pre>
Use epsilon-delta to "show" that

lim  3x - 3  =  12
x-&gt;5
</pre>
</blockquote>
<p>So, what we use the &#8220;definition of a limit&#8221; as stated at the top of this page (you should memorize it really for use on tests (YES they DO ALWAYS put epsilon-delta on tests . . )</p>
<p>The limit above exists if and only if for each &epsilon; &gt; 0, there exists a &delta; &gt; 0 such that:</p>
<blockquote>
<pre>
<big><big><b>IF</b></big></big>
    0 &lt; | x - c | &lt; &delta;            [ c = 5 though, plug in: ]
    0 &lt; | x - 5 | &lt; &delta;

<big><big><b>THEN</b></big></big>
      | f(x) - L | &lt; &epsilon;         [ f(x)= 3x - 3, and L = 12, plug in: ]
      | ( 3x - 3 ) - 12 | &lt; &epsilon;
</pre>
</blockquote>
<p>So read that in English as:</p>
<p>    &#8220;IF x is within &delta; units of 5 . . . &#8220;</p>
<p>    &#8220;. . . THEN ( 3x &#8211; 3 ) is within &epsilon; units of 12.&#8221;</p>
<p>The key to epsilon-delta proofs is you have to <b>relate epsilon and delta</b>.</p>
<p>You have to argue that IF 0 &lt; | x &#8211; 5 | &lt; &delta; ( x is within &delta; units of 5 ), THEN we can conclude that | ( 3x &#8211; 3 ) &#8211; 12 | &lt; &epsilon; (THEN ( 3x &#8211; 3 ) is within &epsilon; units of 12 ).</p>
<p>HMM!  Hopefully, this is starting to make some sense.  Here is how you proceed.</p>
<p>Let&#8217;s work with the THEN part (the | f(x) &#8211; L | statement), and break it down a bit:</p>
<blockquote>
<pre>
      | ( 3x - 3 ) - 12 | &lt; &epsilon;
      | 3x - 15 | &lt; &epsilon;
</pre>
<p>Let&#8217;s FACTOR (because we love to factor)</p>
<pre>
      | (3)(x - 5) | &lt; &epsilon;
     3| (x - 5) | &lt; &epsilon;
      | (x - 5) | &lt; &epsilon;/3;
</pre>
</blockquote>
<p>That looks familiar!  Suddenly, the | f(x) &#8211; L | &lt; &epsilon; looks a lot like the | x &#8211; c | &lt; &delta; statement.</p>
<p>HMM!!!</p>
<p>We can <b><i>relate</i></b> the epsilon statement and the delta statement ( 0 &lt; | x &#8211; c | &lt; &delta; ) in this way:</p>
<p>CHOOSE &delta; = &epsilon;/3.  (Get used to the idea of &#8220;CHOOSING&#8221; &delta;)</p>
<p>Then, we go:</p>
<blockquote>
<pre>
      | x - 5 | &lt; &epsilon;/3   [ CHOOSE &delta; = &epsilon;/3 ]

      | x - 5 | &lt; &delta;
</pre>
</blockquote>
<p>WOW!!!!!  How marvellous.  It will seem very very strange to you that in the middle of this &#8220;mathematical rigor&#8221;, we end up going and &#8220;choosing&#8221; &delta; = &epsilon;/3.  You&#8217;ll see that this &#8220;choice&#8221; doesn&#8217;t really hurt the &#8220;rigor&#8221; of what we&#8217;re doing though. . . just keep at it.</p>
<p>Next we have to show that this &#8220;&delta;&#8221; we&#8217;ve chosen ( &delta; = &epsilon;/3 ) &#8220;WORKS&#8221;.</p>
<p>So we go back to the original statement: </p>
<blockquote>
<pre>
<big><big><b>IF</b></big></big>
    0 &lt; | x - c | &lt; &delta;            [ c = 5, chose &delta; = &epsilon;/3 ]
    0 &lt; | x - 5 | &lt; &epsilon;/3;

<big><big><b>THEN</b></big></big>
      | f(x) - L | &lt; &epsilon;         [ f(x)= 3x - 3, and L = 12, plug in: ]
      | ( 3x - 3 ) - 12 | &lt; &epsilon;
      | 3x - 15 | &lt; &epsilon;
     3| x - 5 | &lt; &epsilon;
      | x - 5 | &lt; &epsilon;/3
</pre>
</blockquote>
<p>Wonder of wonders!  It &#8220;WORKS&#8221;, because the statement has now changed from:</p>
<p>&#8220;IF x is within &delta; units of 5 . . . THEN ( 3x &#8211; 3 ) is within &epsilon; units of 12.&#8221;</p>
<p>To:<br />
&#8220;IF x is within &epsilon;/3 units of 5, THEN x is within &epsilon;/3 units of 5.&#8221;</p>
<p>Which cannot be argued against.</p>
<p>Remember, its not stupid.  Its &#8220;rigorous&#8221;.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bobobobo.wordpress.com/82/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bobobobo.wordpress.com/82/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=82&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2008/01/20/how-to-do-epsilon-delta-proofs-1st-year-calculus/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>

		<media:content url="http://bobobobo.files.wordpress.com/2008/01/eps_delta_1.gif" medium="image">
			<media:title type="html">x lies here</media:title>
		</media:content>
	</item>
		<item>
		<title>Matlab tips and common shorthand</title>
		<link>http://bobobobo.wordpress.com/2008/01/18/matlab-tips-and-common-shorthand/</link>
		<comments>http://bobobobo.wordpress.com/2008/01/18/matlab-tips-and-common-shorthand/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 20:19:02 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/2008/01/18/matlab-tips-and-common-shorthand/</guid>
		<description><![CDATA[*This list is being expanded

The period . operator.
You put the . in front of an operator like ^ or * to get &#8220;element by element&#8221; operation behavior.  Its best explained by example.
Say you have a row matrix called &#8216;x&#8217; that has 10000 values in it.
You want a plot of y = x2, so you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=75&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>*This list is being expanded</p>
<ul>
<li>The period . operator.
<p>You put the . in front of an operator like ^ or * to get &#8220;element by element&#8221; operation behavior.  Its best explained by example.</p>
<p>Say you have a row matrix called &#8216;x&#8217; that has 10000 values in it.</p>
<p>You want a plot of y = x<sup>2</sup>, so you need to create another row vector to save values of y to put those values in.</p>
<p>Instead of writing a loop like:</p>
<blockquote><p>
for( i = 1:length(x) )<br />
    y(i) = x(i)^2;<br />
end
</p></blockquote>
<p>Just use the special . notation and write:</p>
<blockquote><p>
x = -3:0.01:3;<br />
y = x.^(2);
</p></blockquote>
<p>Here, .^ means to raise every element of x to the power of 2, not to try to raise the ENTIRE matrix to the power 2 (which clearly generates an error).</p>
<p><a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/power.html">matlab docs ref</a></p>
</li>
</ul>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bobobobo.wordpress.com/75/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bobobobo.wordpress.com/75/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=75&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2008/01/18/matlab-tips-and-common-shorthand/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>
	</item>
		<item>
		<title>matlab:  the _real_ third root</title>
		<link>http://bobobobo.wordpress.com/2008/01/18/matlab-qq-the-_real_-third-root/</link>
		<comments>http://bobobobo.wordpress.com/2008/01/18/matlab-qq-the-_real_-third-root/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 19:28:27 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/2008/01/18/matlab-qq-the-_real_-third-root/</guid>
		<description><![CDATA[In plotting a simple cube root function y = x1/3, you expect to see a graph like this:

But when you do

x = -3:0.01:3;
y = x.^(1/3);
plot(x,y)


You get:

Why?
&#8220;Pete wanted it that way.&#8221;
No, but really.  Why is the plot of the cube root complex-valued, and not real-valued?
You should know that there are in fact __3__ cube roots [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=72&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In plotting a simple cube root function y = x<sup>1/3</sup>, you expect to see a graph like this:<br />
<img src='http://bobobobo.files.wordpress.com/2008/01/tlab_real_cube.png' alt='Real cube root graph' /></p>
<p>But when you do</p>
<blockquote><p>
x = -3:0.01:3;<br />
y = x.^(1/3);<br />
plot(x,y)
</p></blockquote>
<p></p>
<p>You get:<br />
<img src='http://bobobobo.files.wordpress.com/2008/01/tlab_complex_cube.png' alt='Complex cube root graph' /></p>
<p>Why?</p>
<p>&#8220;Pete wanted it that way.&#8221;</p>
<p>No, but really.  Why is the plot of the cube root complex-valued, and not real-valued?</p>
<p>You should know that there are in fact __3__ cube roots for any number.</p>
<p>For instance, -3 has 1 real, and 2 COMPLEX cube roots:</p>
<p>The three cube roots of -3 are:</p>
<ul>
<li>0.7211 + 1.2490i</li>
<li>0.7211 &#8211; 1.2490i</li>
<li>-1.44224</li>
</ul>
<p></p>
<p>They look like this in the complex plane.  Notice that they are separated by 120 degrees.</p>
<p><img src='http://bobobobo.files.wordpress.com/2008/01/roots_of_m3.gif' alt='roots of -3' /></p>
<p>When you multiply those cube roots together, you get -3 again:</p>
<blockquote>
<pre>
(0.7211 + 1.249i)*(0.7211 - 1.249i)*(-1.44224)
= (2.08)(-1.44224)
= -3
</pre>
</blockquote>
<p></p>
<p>When you do:</p>
<blockquote><p>
x = -3:0.01:3;<br />
y = x.^(1/3);<br />
plot(x,y)
</p></blockquote>
<p></p>
<p>Matlab is putting the <em>first</em> cube root inside y (values like 0.7211 + 1.2490i as the cube root of -3), hence giving y complex values.</p>
<p>Howdya get it to give you just the real ones?  Use Matlab&#8217;s <b>nthroot</b> function.  For example, try:</p>
<blockquote><p>
x = -3:0.01:3;<br />
y = nthroot( x, 3 );<br />
plot(x,y);
</p></blockquote>
<p></p>
<p>Ref:<br />
<a href="http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/nthroot.html">just see this</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bobobobo.wordpress.com/72/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bobobobo.wordpress.com/72/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=72&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2008/01/18/matlab-qq-the-_real_-third-root/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>

		<media:content url="http://bobobobo.files.wordpress.com/2008/01/tlab_real_cube.png" medium="image">
			<media:title type="html">Real cube root graph</media:title>
		</media:content>

		<media:content url="http://bobobobo.files.wordpress.com/2008/01/tlab_complex_cube.png" medium="image">
			<media:title type="html">Complex cube root graph</media:title>
		</media:content>

		<media:content url="http://bobobobo.files.wordpress.com/2008/01/roots_of_m3.gif" medium="image">
			<media:title type="html">roots of -3</media:title>
		</media:content>
	</item>
		<item>
		<title>the slope of a curve</title>
		<link>http://bobobobo.wordpress.com/2008/01/18/the-slope-of-a-curve/</link>
		<comments>http://bobobobo.wordpress.com/2008/01/18/the-slope-of-a-curve/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 18:33:32 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/2008/01/18/the-slope-of-a-curve/</guid>
		<description><![CDATA[You can find the slope of a curve


m = lim(x-&#62;c) f(x) - f(c)
              -----------
                 x - c


       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=71&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>You can find the slope of a curve</p>
<blockquote>
<pre>
m = lim(x-&gt;c) f(x) - f(c)
              -----------
                 x - c
</pre>
</blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bobobobo.wordpress.com/71/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bobobobo.wordpress.com/71/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=71&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2008/01/18/the-slope-of-a-curve/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>
	</item>
		<item>
		<title>How to complete the square</title>
		<link>http://bobobobo.wordpress.com/2008/01/16/how-to-complete-the-square/</link>
		<comments>http://bobobobo.wordpress.com/2008/01/16/how-to-complete-the-square/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 17:32:33 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/2008/01/16/how-to-complete-the-square/</guid>
		<description><![CDATA[How to complete the square
Usually you have to complete the square when you&#8217;re trying to draw a graph of a parabola that has an equation like:
x2 + 5x + 3 = 0
You only know where the vertex of the parabola goes if you can get it in the form
(x &#8211; a)2 + C = 0
The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=65&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h1>How to complete the square</h1>
<p>Usually you have to complete the square when you&#8217;re trying to draw a graph of a parabola that has an equation like:</p>
<p>x<sup>2</sup> + 5x + 3 = 0</p>
<p>You only know where the vertex of the parabola goes if you can get it in the form</p>
<p>(x &#8211; a)<sup>2</sup> + C = 0</p>
<p>The cool thing about &#8220;completing the square&#8221; is when you do it, you actually will always be able to get any polynomial into that (x &#8211; a)<sup>2</sup> + C = 0 form.</p>
<h2>How to complete the square</h2>
<p>Working with our example x<sup>2</sup> + 5x + 3 = 0</p>
<h3>1 &gt;&gt; Take the 5 (from the 5x term) and divide it by 2.</h3>
<blockquote>
<pre>
5
-
2
</pre>
</blockquote>
<h3>2 &gt;&gt; Square it.</h3>
<blockquote>
<pre>
5<sup>2</sup>
-
2<sup>2</sup>

= 25
  --
  4
</pre>
</blockquote>
<h3>3 &gt;&gt; <em>Add</em> <big>AND</big> <em>subtract</em> that squared number from the original polynomial</h3>
<p>Now, all you have to do is take that value you just got (25/4) and ADD AND SUBTRACT 25/4 FROM THE ORIGINAL x<sup>2</sup> + 5x + 3 = 0.</p>
<p>Here is how you do it (pay special attention to WHERE I&#8217;m putting the 25/4):</p>
<blockquote>
<pre>

x<sup>2</sup> + 5x + 3 = 0

x<sup>2</sup> + 5x + 25/4 - 25/4 + 3 = 0
</pre>
</blockquote>
<p>Now the important thing to realize is that what I&#8217;ve just written is <b><em>completely 100%-ly MATHEMATICALLY EQUAL to the original</em></b></p>
<blockquote>
<pre>

x<sup>2</sup> + 5x + 25/4 - 25/4 + 3 = x<sup>2</sup> + 5x + 3
</pre>
</blockquote>
<p>OK??  Make sure you know that.</p>
<h3>4 &gt;&gt; &#8220;complete the square&#8221;</h3>
<p>Next, what you do is, you just write this: </p>
<blockquote>
<pre>

x<sup>2</sup> + 5x + 25/4 - 25/4 + 3 = 0

(x + 5/2)<sup>2</sup> - 25/4 + 3 = 0

(x + 5/2)<sup>2</sup> - 13/4 = 0
</pre>
</blockquote>
<p>Notice the 5/2 value . . . we&#8217;ve seen that before (go look where).</p>
<p>And that&#8217;s how its done.</p>
<p>We can check that the answer we&#8217;ve written is correct by multiplying back out.  We should get the original polynomial when we&#8217;re done:</p>
<blockquote>
<pre>

(x + 5/2)<sup>2</sup> - 13/4 = 0

(x + 5/2)(x + 5/2) - 13/4 = 0

x<sup>2</sup> + 2(5/2)x + (5/2)<sup>2</sup> - 13/4 = 0

x<sup>2</sup> + 5x + 25/4 - 13/4 = 0

x<sup>2</sup> + 5x + 12/4 = 0

x<sup>2</sup> + 5x + 3 = 0
</pre>
</blockquote>
<p>And that&#8217;s the same as the original polynomial.</p>
<h3>Ok, that was a specific example.  What doing this to polynomials in general?</h3>
<p>Just apply the pattern.  In general, if you have</p>
<p>x<sup>2</sup> + Bx + C = 0</p>
<p>You complete the square by doing this:</p>
<blockquote>
<pre>

x<sup>2</sup> + Bx + C = 0

( x + (B/2) )<sup>2</sup> - (B/2)<sup>2</sup> + C = 0
</pre>
</blockquote>
<p>Note also that if you have a polynomial of the form</p>
<blockquote>
<pre>

Ax<sup>2</sup> + Bx + C = 0
</pre>
</blockquote>
<p>You change it to being in the form:</p>
<blockquote>
<pre>
A(x<sup>2</sup> + (B/A)x) + C = 0
</pre>
</blockquote>
<p>So for example, given </p>
<blockquote>
<pre>
5x<sup>2</sup> + 7x + 10 = 0

5( x<sup>2</sup> + (7/5)x ) + 10 = 0

5( x + (7/10) <sup>2</sup> - (7/10)<sup>2</sup> ) + 10 = 0

5( x + (7/10) )<sup>2</sup> - 49/100 ) + 10 = 0

5( x + (7/10) )<sup>2</sup> - (5)(49)/100 + 10 = 0

5( x + (7/10) )<sup>2</sup> + 151/20 = 0
</pre>
</blockquote>
<p>Check its correct by multiplying back out.</p>
<blockquote>
<pre>

5( x + (7/10) )<sup>2</sup> + 151/20 = 0

5( x<sup>2</sup> + 2(7/10)x + 49/100 ) + 151/20 = 0

5x<sup>2</sup> + 7x + 49/20 + 151/20 = 0

5x<sup>2</sup> + 7x + 10 = 0
</pre>
</blockquote>
<p>Which is the same as the original.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bobobobo.wordpress.com/65/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bobobobo.wordpress.com/65/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=65&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2008/01/16/how-to-complete-the-square/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>
	</item>
	</channel>
</rss>