<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 - Discussions by brianbec</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Niners/brianbec/Discussions/RSS"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 - Discussions by brianbec</title>
		<link>http://channel9.msdn.com/Niners/brianbec/Discussions</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Niners/brianbec/Discussions</link>
	<language>en</language>
	<pubDate>Wed, 19 Jun 2013 20:45:57 GMT</pubDate>
	<lastBuildDate>Wed, 19 Jun 2013 20:45:57 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>0</c9:totalResults>
	<c9:pageCount>0</c9:pageCount>
	<c9:pageSize>0</c9:pageSize>
	<item>
		<title>Tech Off - designing functions in Mathematica </title>
		<description><![CDATA[<p>Hi c_str -- yes, that's about it. I will often write my algorithms in Mathematica, prove them correct using a combination of symbolic, graphical, and numerical methods, and then rewrite the algorithms by hand in C or C# or JavaScript or whatever is needed with more than usual confidence. I am currently blogging a series of exercises in this technique using three languages: Prolog, Mathematica, and LINQ / C# at rebcabin.wordpress.com. You're invited to pop over there and play along.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/designing-functions-in-Mathematica/644ceb7dc38e436bb5e4a0c200eb5e37#644ceb7dc38e436bb5e4a0c200eb5e37</link>
		<pubDate>Tue, 04 Sep 2012 14:16:56 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/designing-functions-in-Mathematica/644ceb7dc38e436bb5e4a0c200eb5e37#644ceb7dc38e436bb5e4a0c200eb5e37</guid>
		<dc:creator>brianbec</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/brianbec/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Math Quiz: 9 is number one</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">iStation said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">algorith said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>OK!<br>
Another one,</p>
<p>&nbsp;</p>
<p>lim x-&gt;0 [{sin(9x)}/x] = ?</p>
<p>&nbsp;</p>
</div></blockquote>
<p>Nice one. Here's another</p>
<p>&nbsp;</p>
<p>Find the first positive real value of t for which the following is zero</p>
<p>&nbsp;</p>
<p>256 cos^9(pi t / 162) - 576&nbsp;cos^7(pi t / 162) &#43; 432 cos^5(pi t / 162) -120 cos^3(pi t/162) &#43; 9 cos(pi t / 162)</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/541127-Math-Quiz-9-is-number-one/64072327cc614f8990c09deb00de8976#64072327cc614f8990c09deb00de8976</link>
		<pubDate>Sun, 04 Apr 2010 05:13:26 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/541127-Math-Quiz-9-is-number-one/64072327cc614f8990c09deb00de8976#64072327cc614f8990c09deb00de8976</guid>
		<dc:creator>brianbec</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/brianbec/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Math Quiz: 9 is number one</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">bureX said:</div><div class="quoteText">
<p>There's a&nbsp;a^2 - ab&nbsp;≠ 0 missing somewhere, I think <img src="http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-5.gif" alt="Wink"></p>
<p>(by the way, I suck at math)</p>
</div></blockquote>
<p>if a == b, then a^2 == ab and a^2-ab==0. Division by zero is not permitted here <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /> &nbsp;You can get any answer you want if you divide by zero, just as you can &quot;prove&quot; any proposition if you accept a contradiction, just as any statement about members of the empty
 set is logically true!</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/541127-Math-Quiz-9-is-number-one/6629e65646934dfaac4f9deb00de891f#6629e65646934dfaac4f9deb00de891f</link>
		<pubDate>Sun, 04 Apr 2010 01:29:32 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/541127-Math-Quiz-9-is-number-one/6629e65646934dfaac4f9deb00de891f#6629e65646934dfaac4f9deb00de891f</guid>
		<dc:creator>brianbec</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/brianbec/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Nicely done, Channel 9 (posted by Dr Herbie).</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Charles said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">brianbec said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>How does WolframAlpha get to <a href="http://www.wolframalpha.com/input/?i=3&#43;%2B&#43;(product&#43;((1&#43;%2B&#43;1/k)^3)/(1&#43;%2B&#43;3/k)&#43;k%3D1&#43;to&#43;infinity)">
9</a> so fast? <br>
C</p>
</div></blockquote>
<p>They analyze the formula symbolically, look it up, and &quot;know&quot; it's factorial in disguise. They have a huge internal database of series and products -- tens of thousands.
</p>
<p>&nbsp;</p>
<p>(I was at Caltech when Wolfram started up the Mathematica project circa 1979 (it was called SMP, then)&nbsp;-- they've been keyboarding in mathematical knowledge for 30&#43; years, now; that's how they got such a huge body of info)</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/540514-Nicely-done-Charles/9b11342ecb1745909f1f9deb00de4876#9b11342ecb1745909f1f9deb00de4876</link>
		<pubDate>Fri, 02 Apr 2010 16:50:59 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/540514-Nicely-done-Charles/9b11342ecb1745909f1f9deb00de4876#9b11342ecb1745909f1f9deb00de4876</guid>
		<dc:creator>brianbec</dc:creator>
		<slash:comments>98</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/brianbec/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Nicely done, Channel 9 (posted by Dr Herbie).</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Sven Groot said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">brianbec said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>My method was meant to be inefficient. I was deliberately going for the most over the top complex way to attack the problem. It was a response to bureX's suggestion of making a steampunk version.</p>
<p>&nbsp;</p>
<p>Also I suck at math. Brute force all the way, baby. <img src="http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-4.gif" alt="Tongue Out"></p>
</div></blockquote>
<p>I understand! I was just offering a potentially even more inefficient way to go about it!</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/540514-Nicely-done-Charles/7088588bf89b45f2979a9deb00de481f#7088588bf89b45f2979a9deb00de481f</link>
		<pubDate>Fri, 02 Apr 2010 16:32:25 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/540514-Nicely-done-Charles/7088588bf89b45f2979a9deb00de481f#7088588bf89b45f2979a9deb00de481f</guid>
		<dc:creator>brianbec</dc:creator>
		<slash:comments>98</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/brianbec/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Nicely done, Channel 9 (posted by Dr Herbie).</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Sven Groot said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">Sven Groot said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>Some results with various maximum values of k:</p>
<p>&nbsp;</p>
<pre>Max. value of k     Formula value                    Execution time
100,000,000         5.9999998200000059999997770956   15s<br>10,000,000,000      5.9999999982000000009369275168   208s
50,000,000,000      5.9999999996400000005856836804   1069s
</pre>
<p>&nbsp;</p>
<p>This is done using decimal. If that's precise enough, and my code has no bugs, we can conclude the product converges quite slowly. Again, this was done on a cluster with 56 nodes (most of which aren't very fast, though). Done locally, it wouldn't taken me
 about 33 hours. Note that the 100,000,000 job (the first one) takes unnecessarily long because the system I'm using isn't optimized for short jobs.</p>
<p>&nbsp;</p>
<p>There, I think I can now safely claim the most elaborate solution to this problem.
<img src="http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-4.gif" alt="Tongue Out"></p>
</div></blockquote>
<p>Take the log of the big product. Each term looks like [ n log(k&#43;1) &#43; (1 - n) log(k) - log(k &#43; n) ], (n is 3, in our example) and the big product is replaced by a big sum. Now investigate the convergence rate of the big sum, taking a look at
<a href="http://en.wikipedia.org/wiki/Rate_of_convergence">http://en.wikipedia.org/wiki/Rate_of_convergence</a>&nbsp;</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/540514-Nicely-done-Charles/c401507b2ec640e38cea9deb00de479b#c401507b2ec640e38cea9deb00de479b</link>
		<pubDate>Fri, 02 Apr 2010 15:36:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/540514-Nicely-done-Charles/c401507b2ec640e38cea9deb00de479b#c401507b2ec640e38cea9deb00de479b</guid>
		<dc:creator>brianbec</dc:creator>
		<slash:comments>98</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/brianbec/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Nicely done, Channel 9 (posted by Dr Herbie).</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">Richard.Hein said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">brianbec said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>The second problem is&nbsp;n &#43; the gamma function, Γ(n&#43;1), with n&nbsp;= 3.</p>
<p>&nbsp;</p>
<p>Here's a graph of the absolute value of the Gamma function on the complex plane, from Wikipedia:</p>
<p>&nbsp;</p>
<p><a href="http://www.wolframalpha.com/input/?i=gamma&#43;function&#43;church&#43;numerals"><img class="thumbimage" src="http://upload.wikimedia.org/wikipedia/en/thumb/c/cc/GammaAbsSmallPlot.png/220px-GammaAbsSmallPlot.png" alt="" width="266" height="189"></a></p>
<p>&nbsp; </p>
</div></blockquote>
<p>A&#43;</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/540514-Nicely-done-Charles/7cb48b60db904ec69b729deb00de433f#7cb48b60db904ec69b729deb00de433f</link>
		<pubDate>Thu, 01 Apr 2010 19:14:26 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/540514-Nicely-done-Charles/7cb48b60db904ec69b729deb00de433f#7cb48b60db904ec69b729deb00de433f</guid>
		<dc:creator>brianbec</dc:creator>
		<slash:comments>98</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/brianbec/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Nicely done, Channel 9 (posted by Dr Herbie).</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">CreamFilling512 said:</div><div class="quoteText">
<p>I put the second problem into Wolfram alpha:</p>
<p>&nbsp;</p>
<p><a href="&lt;a href=">http://www.wolframalpha.com/input/?i=3&#43;%2B&#43;(product&#43;((1&#43;%2B&#43;1/k</a>)^3)/(1&#43;%2B&#43;3/k)&#43;k%3D1&#43;to&#43;infinity)&quot;&gt;<a href="http://www.wolframalpha.com/input/?i=3&#43;%2B&#43;(product&#43;((1&#43;%2B&#43;1/k">http://www.wolframalpha.com/input/?i=3&#43;%2B&#43;(product&#43;((1&#43;%2B&#43;1/k</a>)^3)/(1&#43;%2B&#43;3/k)&#43;k%3D1&#43;to&#43;infinity)</p>
</div></blockquote>
<p>Now, for a little secret: type the same thing into Wolfram Alpha, just replacing &quot;3&quot; with &quot;n&quot; (and, for even more secrets, leave off the first &quot;n &#43; &quot; -- just type in the big infinite product</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/540514-Nicely-done-Charles/494fa0e9848249aeaff89deb00de40b0#494fa0e9848249aeaff89deb00de40b0</link>
		<pubDate>Thu, 01 Apr 2010 15:46:22 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/540514-Nicely-done-Charles/494fa0e9848249aeaff89deb00de40b0#494fa0e9848249aeaff89deb00de40b0</guid>
		<dc:creator>brianbec</dc:creator>
		<slash:comments>98</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/brianbec/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>