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

<channel>
	<title>theconsultant.net &#187; Mathematics</title>
	<atom:link href="http://www.theconsultant.net/category/mathematics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theconsultant.net</link>
	<description>Simplicity is complicated.</description>
	<lastBuildDate>Thu, 17 Sep 2009 17:00:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Elliptic Cryptography textbook</title>
		<link>http://www.theconsultant.net/2007/03/212/</link>
		<comments>http://www.theconsultant.net/2007/03/212/#comments</comments>
		<pubDate>Wed, 07 Mar 2007 21:58:06 +0000</pubDate>
		<dc:creator>stany</dc:creator>
				<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.theconsultant.net/archives/2007/03/07/212/</guid>
		<description><![CDATA[Looked some more at AACS specs.  Realized that I don&#8217;t know jack about elliptic cryptography.    Asked Yuly Billig what he recommends as a gentle introduction to elliptic cryptography for dummies with limited algebra skills. 

He recommended &#8220;A Course in Number Theory and Cryptography&#8221; by N. Koblitz, QA 241.K672.    [...]]]></description>
			<content:encoded><![CDATA[<p>Looked some more at AACS specs.  Realized that I don&#8217;t know jack about elliptic cryptography.    Asked <a HREF="http://www.math.carleton.ca/~billig/">Yuly Billig</a> what he recommends as a gentle introduction to elliptic cryptography for dummies with limited algebra skills. </p>
<p>
He recommended &#8220;<a HREF="http://www.amazon.com/Course-Number-Cryptography-Graduate-Mathematics/dp/0387942939">A Course in Number Theory and Cryptography</a>&#8221; by N. Koblitz, QA 241.K672.    Carleton library has two copies, so next time I am on campus, I shall sign one out.     I guess we&#8217;ll find out how much of a dummy with limited algebra skills I am.
</p>
<p>
It&#8217;s all about copious spare time.
</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.theconsultant.net/2007/03/212/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proof that any self-adjoint matrix is diagonalizable.</title>
		<link>http://www.theconsultant.net/2007/03/a-proof-of-diagonalizability-of-self-adjoint-matrices-though-a-invariance-ugly-as-sin/</link>
		<comments>http://www.theconsultant.net/2007/03/a-proof-of-diagonalizability-of-self-adjoint-matrices-though-a-invariance-ugly-as-sin/#comments</comments>
		<pubDate>Thu, 01 Mar 2007 04:50:16 +0000</pubDate>
		<dc:creator>stany</dc:creator>
				<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.theconsultant.net/archives/2007/03/01/prove-that-any-self-adjoint-matrix-is-diagonalizable/</guid>
		<description><![CDATA[(Sorry.  If you don&#8217;t know what this is, please ignore it.  It&#8217;s not important.  Really.)
Setup: If A is self-adjoint, and W is an A-invariant subspace ⇒ W⊥ is A-invariant.
Want:  ∀ x∈W⊥, Ax ∈ W⊥〈Ax,w〉 = 0 ∀ w ∈ W ⇐ Orthonormal
Given:〈Ax,w) =〈x,Aw〉 ⇐ Self-Adjoint
Aw∈W ⇐ W is A-invariant
then〈x∈W⊥, Aw∈W〉= 0
Since [...]]]></description>
			<content:encoded><![CDATA[<p>(Sorry.  If you don&#8217;t know what this is, please ignore it.  It&#8217;s not important.  Really.)</p>
<p><strong>Setup</strong>: If A is self-adjoint, and W is an A-invariant subspace ⇒ W<sup>⊥</sup> is A-invariant.</p>
<p><strong>Want:</strong>  ∀ x∈W<sup>⊥</sup>, Ax ∈ W<sup>⊥</sup>〈Ax,w〉 = 0 ∀ w ∈ W ⇐ Orthonormal</p>
<p><strong>Given:</strong>〈Ax,w) =〈x,Aw〉 ⇐ Self-Adjoint</p>
<p>Aw∈W ⇐ W is A-invariant</p>
<p>then〈x∈W<sup>⊥</sup>, Aw∈W〉= 0</p>
<p>Since any self-adjoint matrix is ortho-diagonalizable, if A is self-adjoint, then  ∃ an orthonormal basis B∈ℂ<sup>n</sup> made out of eigenvectors such that [A]<sub>B</sub></p>
<p>
<strong>Want:</strong> k=n (that is, an orthonormal basis made out of eigenvectors).</p>
<p><strong>Proof by contradiction:</strong> Suppose k less then n</p>
<p><strong>Given:</strong></p>
<p>W=span(v<sub>1</sub>, v<sub>2</sub>, .. v<sub>k</sub>), A-invariant (this is trivial, but see Appendix A)</p>
<p>then W⊥ is A-invariant, then A is restricted to subspace W<sup>⊥</sup></p>
<p>A<sub>W<sup>⊥</sup></sub>: W<sup>⊥</sup> → W<sup>⊥</sup></p>
<p>Then ∃ v∈W<sup>⊥</sup>, an eigenvector of A<sub>W<sup>⊥</sup></sub>.</p>
<p>But since A<sub>W<sup>⊥</sup></sub>v = A<sub>v</sub>, v is an eignevector to of A perpendicular to W.</p>
<p>We assumed that S is maximal, but we ended up with a contradiction, since the set {v<sub>1</sub>, v<sub>2</sub>, .. ,v<sub>k</sub>, v/ ||v||} is an orthogonal set of eigenvectors.</p>
<p>So k must be equal to n.  As a result, A is orthodiagonalizable. </p>
<p><h3>Conclusion</h3>
<p>HTML is really <strong>not</strong> suited for doing math.
</p>
<p><strong>Appendix A</strong></p>
<p>If  λ<sub>1</sub>≠λ<sub>2</sub>,〈v<sub>1</sub>,v<sub>2</sub>〉must be 0</p>
<p>Here is how: Av<sub>1</sub>=λ<sub>1</sub>v<sub>1</sub>, Av<sub>2</sub>=λ<sub>2</sub>v<sub>2</sub></p>
<p>Given that: λ<sub>1</sub>〈v<sub>1</sub>,v<sub>2</sub>〉 = 〈λ<sub>1</sub>v<sub>1</sub>,v<sub>2</sub>〉= 〈Av<sub>1</sub>,v<sub>2</sub>〉= 〈v<sub>1</sub>,Av<sub>2</sub>〉= 〈v<sub>1</sub>,λ<sub>2</sub>v<sub>2</sub>〉=λ<sub>2</sub>〈v<sub>1</sub>,v<sub>2</sub>〉⇒ λ<sub>1</sub>〈v<sub>1</sub>,v<sub>2</sub>〉= λ<sub>2</sub>〈v<sub>1</sub>,v<sub>2</sub>〉</p>
<p>Since λ<sub>1</sub>≠λ<sub>2</sub>,  〈v<sub>1</sub>,v<sub>2</sub>〉=0</p>
<p>.</p>
<p>QED</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theconsultant.net/2007/03/a-proof-of-diagonalizability-of-self-adjoint-matrices-though-a-invariance-ugly-as-sin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show that if b ∈ R, R is a Eucledian domain and a is a non-zero non-unit, then bR/aR = {r + Ra : r ∈ bR} is an ideal in R/aR.</title>
		<link>http://www.theconsultant.net/2006/03/show-that-if-b-%e2%88%88-r-r-is-a-eucledian-domain-and-a-is-a-non-zero-non-unit-then-brar-r-ra-r-%e2%88%88-br-is-an-ideal-in-rar/</link>
		<comments>http://www.theconsultant.net/2006/03/show-that-if-b-%e2%88%88-r-r-is-a-eucledian-domain-and-a-is-a-non-zero-non-unit-then-brar-r-ra-r-%e2%88%88-br-is-an-ideal-in-rar/#comments</comments>
		<pubDate>Fri, 10 Mar 2006 06:47:28 +0000</pubDate>
		<dc:creator>stany</dc:creator>
				<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.theconsultant.net/?p=152</guid>
		<description><![CDATA[Suppose that R is a Euclidean domain and a ∈ R is a non-zero non-unit. 
For an element b ∈ R consider the subset bR/aR = {r + Ra : r ∈ bR} of R/aR. 
Let r + Ra, s + Ra ∈ bR/aR so that r, s ∈ bR, then r + s ∈ [...]]]></description>
			<content:encoded><![CDATA[<p>Suppose that R is a Euclidean domain and a ∈ R is a non-zero non-unit. </p>
<p>For an element b ∈ R consider the subset bR/aR = {r + Ra : r ∈ bR} of R/aR. </p>
<p>Let r + Ra, s + Ra ∈ bR/aR so that r, s ∈ bR, then r + s ∈ bR which gives (r + Ra) + (s + Ra) = (r + s) + Ra ∈ bR/aR. </p>
<p>Let r ∈ Ra ∈ R/aR and s + Ra ∈ bR/aR so that s ∈ bR, then rs ∈ bR implies that (r + Ra) · (s + Ra) = (rs) + Ra ∈ bR/aR. </p>
<p>Hence bR/aR is an ideal in R/aR</p>
<p>Just in case you weren&#8217;t sure that it was.</p>
<p>It&#8217;s almost 2 am, what do you expect?</p>
<p>Oh, and I goofed while writing a <a HREF="http://guru.math.carleton.ca/4807(2pp)AnsMidtermMar2.pdf">game theory midterm</a> last week, and only got 92/100.  </p>
<p>I forgot to do part II of question 1, inspite of the note on the test paper saying &#8220;Don&#8217;t forget to do part (ii) below&#8221;.  </p>
<p>Argh!</p>
<p>Oh, and should I do a blurb on the math behind error correction, specifically, as it&#8217;s implemented on CDs?  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.theconsultant.net/2006/03/show-that-if-b-%e2%88%88-r-r-is-a-eucledian-domain-and-a-is-a-non-zero-non-unit-then-brar-r-ra-r-%e2%88%88-br-is-an-ideal-in-rar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Floating Point numbers Part I</title>
		<link>http://www.theconsultant.net/2006/03/floating-point-numbers-part-i/</link>
		<comments>http://www.theconsultant.net/2006/03/floating-point-numbers-part-i/#comments</comments>
		<pubDate>Thu, 02 Mar 2006 04:19:12 +0000</pubDate>
		<dc:creator>stany</dc:creator>
				<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.theconsultant.net/?p=143</guid>
		<description><![CDATA[Here is an easy example to see if your mathematical software deals with floating point correctly. 
You want to divide two thirds by five sixths.  So you use GNU bc

stany@Gilva:~[11:13 PM]$ echo  "(2/3) / (5/6)" &#124; bc -l
.79999999999999999999
stany@Gilva:~[11:14 PM]$

Matlab, which is arguably better at math then bc is, gives me this:

EDU>> (2/3) / [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an easy example to see if your mathematical software deals with floating point correctly. </p>
<p>You want to divide two thirds by five sixths.  So you use GNU <i>bc</i></p>
<pre>
stany@Gilva:~[11:13 PM]$ echo  "(2/3) / (5/6)" | bc -l
.79999999999999999999
stany@Gilva:~[11:14 PM]$
</pre>
<p>Matlab, which is arguably better at math then <i>bc</i> is, gives me this:</p>
<pre>
EDU>> (2/3) / (5/6)

ans =

    0.8000

EDU>>
</pre>
<p>2*6 / 3*5 = 12/15 = 4/5 = 0.8  so Matlab is correct, and bc is wrong.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theconsultant.net/2006/03/floating-point-numbers-part-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JFLAP</title>
		<link>http://www.theconsultant.net/2005/12/jflap/</link>
		<comments>http://www.theconsultant.net/2005/12/jflap/#comments</comments>
		<pubDate>Tue, 13 Dec 2005 09:33:28 +0000</pubDate>
		<dc:creator>stany</dc:creator>
				<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.theconsultant.net/archives/2005/12/13/jflap/</guid>
		<description><![CDATA[Mental note: If for some really bizzare reason I might need to draw lines pointing at circles, or try to figure out if
S -> aSb&#124;aS&#124;ε actually matches L={a^ib^j&#124; i>=j}, I will try to solve the problem by hand first.    However, in event I am really lazy, and forgot how to convert an [...]]]></description>
			<content:encoded><![CDATA[<p><b>Mental note</b>: If for some really bizzare reason I might need to <a HREF="http://en.wikipedia.org/wiki/Automata_Theory">draw lines pointing at circles</a>, or try to figure out if<br />
S -> aSb|aS|ε actually matches L={a^ib^j| i>=j}, I will try to solve the problem by hand first.    However, in event I am really lazy, and forgot how to convert an <a HREF="http://en.wikipedia.org/wiki/Nondeterministic_finite_state_machine">NFA</a> to <a HREF="http://en.wikipedia.org/wiki/Deterministic_finite_state_machine">DFA</a> or actually want to trace the stack of a <a HREF="http://en.wikipedia.org/wiki/Push-down_automata">PDA</a> matching a <a HREF="http://en.wikipedia.org/wiki/Context-free_grammar">CFG</a>, I will <a HREF="http://www.jflap.org/jflaptmp/">download</a> <a HREF="http://www.jflap.org/">JFLAP</a> and use it.   </p>
<p>Now, why did I discover this thing after I wrote my final exam?    So that I could learn how to do it by hand, that&#8217;s why.   It would have rocked my world about 3 months ago, but I probably would have failed the exams, relaying on it to do everything for me.  </p>
<p>Oh, and notation it uses for CFG/PDA is somewhat different from one used in <a HREF="http://www-math.mit.edu/~sipser/book.html">Sipser</a> (Which is a damn fine book, BTW. Unlike <a HREF="http://www.ma.hw.ac.uk/~markl/">Lawson</a> it actually covers CFLs.).</p>
<p><b>P.S</b> Mark Lawson actually makes reasonably good notes <a HREF="http://www.ma.hw.ac.uk/~markl/teaching/F14ZA1/kleene.pdf">available</a> on his page about basic automata.  It still doesn&#8217;t go into CFLs/PDAs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theconsultant.net/2005/12/jflap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
