<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Continued fractions with Sage</title>
	<atom:link href="http://www.johndcook.com/blog/2013/01/30/continued-fractions-with-sage/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johndcook.com/blog/2013/01/30/continued-fractions-with-sage/</link>
	<description>John D. Cook</description>
	<lastBuildDate>Wed, 19 Jun 2013 02:55:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Grace</title>
		<link>http://www.johndcook.com/blog/2013/01/30/continued-fractions-with-sage/comment-page-1/#comment-121470</link>
		<dc:creator>Grace</dc:creator>
		<pubDate>Tue, 07 May 2013 16:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12806#comment-121470</guid>
		<description><![CDATA[Sorry to join this party late, but I found this post today via Andrew Gelman&#039;s blog.

I&#039;ve never read Numerical Methods That Work, but it sounds like something I should.  I&#039;ll put it on my (ever growing) Goodreads &quot;to read&quot; list.

Subtracting out singularities before numerical integration has a long history outside of computing.  I learned the method in Complex Analysis class*.  We found the singularities or poles and drew circles in complex space about each.  We then integrated the well-behaved portions piece-wise.

Lastly, we computed the areas in the circles in the complex plane as the limit of their radii approached zero and added those areas to the piece-wise sum.

Really so elegant.

* I took the CA class/seminar with Stephen Smale.  He seemed a bit distant and distracted and I thought that was just his personality.  I had no idea he was embroiled in this mess at the same time.  (Scroll to the link at the bottom.)
http://badmomgoodmom.blogspot.com/2007/08/gaia-girl-named-me-rockin-girl-blogger.html]]></description>
		<content:encoded><![CDATA[<p>Sorry to join this party late, but I found this post today via Andrew Gelman&#8217;s blog.</p>
<p>I&#8217;ve never read Numerical Methods That Work, but it sounds like something I should.  I&#8217;ll put it on my (ever growing) Goodreads &#8220;to read&#8221; list.</p>
<p>Subtracting out singularities before numerical integration has a long history outside of computing.  I learned the method in Complex Analysis class*.  We found the singularities or poles and drew circles in complex space about each.  We then integrated the well-behaved portions piece-wise.</p>
<p>Lastly, we computed the areas in the circles in the complex plane as the limit of their radii approached zero and added those areas to the piece-wise sum.</p>
<p>Really so elegant.</p>
<p>* I took the CA class/seminar with Stephen Smale.  He seemed a bit distant and distracted and I thought that was just his personality.  I had no idea he was embroiled in this mess at the same time.  (Scroll to the link at the bottom.)<br />
<a href="http://badmomgoodmom.blogspot.com/2007/08/gaia-girl-named-me-rockin-girl-blogger.html" rel="nofollow">http://badmomgoodmom.blogspot.com/2007/08/gaia-girl-named-me-rockin-girl-blogger.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Bolker</title>
		<link>http://www.johndcook.com/blog/2013/01/30/continued-fractions-with-sage/comment-page-1/#comment-118489</link>
		<dc:creator>Ben Bolker</dc:creator>
		<pubDate>Mon, 29 Apr 2013 17:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12806#comment-118489</guid>
		<description><![CDATA[A version of this algorithm is implemented in R&#039;s &quot;MASS&quot; package, as the &quot;fractions()&quot; (some of the guts are in &quot;MASS:::.rat&quot;).

For example, fractions(exp(1)-2) gives 719/1001, which agrees with the 2721/1001 = 2002 + 719/1001 answer above.  Higher values of the &quot;cycle&quot; argument work too.]]></description>
		<content:encoded><![CDATA[<p>A version of this algorithm is implemented in R&#8217;s &#8220;MASS&#8221; package, as the &#8220;fractions()&#8221; (some of the guts are in &#8220;MASS:::.rat&#8221;).</p>
<p>For example, fractions(exp(1)-2) gives 719/1001, which agrees with the 2721/1001 = 2002 + 719/1001 answer above.  Higher values of the &#8220;cycle&#8221; argument work too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt D.</title>
		<link>http://www.johndcook.com/blog/2013/01/30/continued-fractions-with-sage/comment-page-1/#comment-108778</link>
		<dc:creator>Matt D.</dc:creator>
		<pubDate>Sat, 27 Apr 2013 15:50:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12806#comment-108778</guid>
		<description><![CDATA[&gt; I’m always using integration techniques I learned from that book, such as subtracting off a singularity before doing numerical integration then adding back the analytic integral of the singular part.

I&#039;m wondering, is there a connection between this and the so-called control variates (this approach sounds very similar, I have a vague recollection this analogy might have been mentioned in the &quot;Numerical Recipes&quot; book as smoothing out the integrand graph, but I&#039;m not sure if there are any formal equivalence theorems or the like), http://en.wikipedia.org/wiki/Control_variates#Example]]></description>
		<content:encoded><![CDATA[<p>&gt; I’m always using integration techniques I learned from that book, such as subtracting off a singularity before doing numerical integration then adding back the analytic integral of the singular part.</p>
<p>I&#8217;m wondering, is there a connection between this and the so-called control variates (this approach sounds very similar, I have a vague recollection this analogy might have been mentioned in the &#8220;Numerical Recipes&#8221; book as smoothing out the integrand graph, but I&#8217;m not sure if there are any formal equivalence theorems or the like), <a href="http://en.wikipedia.org/wiki/Control_variates#Example" rel="nofollow">http://en.wikipedia.org/wiki/Control_variates#Example</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johndcook.com/blog/2013/01/30/continued-fractions-with-sage/comment-page-1/#comment-315</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 31 Jan 2013 11:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12806#comment-315</guid>
		<description><![CDATA[Andrew: Numerical Methods That Work is fantastic. And I still recommend people read it. The specific computing limitations he mentions are now quaint, but the principles are still valid. You&#039;ll still run into the same problems, just at different places. 

For example, Acton talks about catastrophic loss of precision with single precisions arithmetic. Now everything is done in double precision, and that&#039;s enough to save you from the specific problem he gives. But with a minor change to the problem you&#039;ll have the same problem in double precision.

I&#039;m always using integration techniques I learned from that book, such as subtracting off a singularity before doing numerical integration then adding back the analytic integral of the singular part.

As for continued fractions, I used to think they were just for recreational math, an amusing typographical novelty. And yet I continually run into them. They often give the best numerical algorithm for evaluating some function.]]></description>
		<content:encoded><![CDATA[<p>Andrew: Numerical Methods That Work is fantastic. And I still recommend people read it. The specific computing limitations he mentions are now quaint, but the principles are still valid. You&#8217;ll still run into the same problems, just at different places. </p>
<p>For example, Acton talks about catastrophic loss of precision with single precisions arithmetic. Now everything is done in double precision, and that&#8217;s enough to save you from the specific problem he gives. But with a minor change to the problem you&#8217;ll have the same problem in double precision.</p>
<p>I&#8217;m always using integration techniques I learned from that book, such as subtracting off a singularity before doing numerical integration then adding back the analytic integral of the singular part.</p>
<p>As for continued fractions, I used to think they were just for recreational math, an amusing typographical novelty. And yet I continually run into them. They often give the best numerical algorithm for evaluating some function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Gelman</title>
		<link>http://www.johndcook.com/blog/2013/01/30/continued-fractions-with-sage/comment-page-1/#comment-314</link>
		<dc:creator>Andrew Gelman</dc:creator>
		<pubDate>Thu, 31 Jan 2013 04:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12806#comment-314</guid>
		<description><![CDATA[P.S.  I just looked up Acton in Wikipedia and was surprised to see he&#039;s still alive.  And he wrote a second book (published at the age of 77!).  I wonder if it&#039;s any good.  It&#039;s sobering to read Numerical Methods That Work:  it&#039;s so wonderful and so readable, yet in this modern era there&#039;s really not much reason to read it.  Perhaps William Goldman (hey, I checked:  he&#039;s still alive too!) or some equivalent could prepare a 50-page &quot;good parts&quot; version that could be still be useful as a basic textbook.]]></description>
		<content:encoded><![CDATA[<p>P.S.  I just looked up Acton in Wikipedia and was surprised to see he&#8217;s still alive.  And he wrote a second book (published at the age of 77!).  I wonder if it&#8217;s any good.  It&#8217;s sobering to read Numerical Methods That Work:  it&#8217;s so wonderful and so readable, yet in this modern era there&#8217;s really not much reason to read it.  Perhaps William Goldman (hey, I checked:  he&#8217;s still alive too!) or some equivalent could prepare a 50-page &#8220;good parts&#8221; version that could be still be useful as a basic textbook.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Gelman</title>
		<link>http://www.johndcook.com/blog/2013/01/30/continued-fractions-with-sage/comment-page-1/#comment-313</link>
		<dc:creator>Andrew Gelman</dc:creator>
		<pubDate>Thu, 31 Jan 2013 04:12:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12806#comment-313</guid>
		<description><![CDATA[If you like continued fractions, I recommend you read the relevant parts of the classic Numerical Methods That Work.  The details are probably obsolete but it&#039;s fun reading (at least, if you think that sort of thing is fun to read).]]></description>
		<content:encoded><![CDATA[<p>If you like continued fractions, I recommend you read the relevant parts of the classic Numerical Methods That Work.  The details are probably obsolete but it&#8217;s fun reading (at least, if you think that sort of thing is fun to read).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
