<?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: Approximation relating lg, ln, and log10</title>
	<atom:link href="http://www.johndcook.com/blog/2012/11/24/approximation-relating-lg-ln-and-log/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johndcook.com/blog/2012/11/24/approximation-relating-lg-ln-and-log/</link>
	<description>John D. Cook</description>
	<lastBuildDate>Fri, 17 May 2013 17:39:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Rational approximations to e &#8212; The Endeavour</title>
		<link>http://www.johndcook.com/blog/2012/11/24/approximation-relating-lg-ln-and-log/comment-page-1/#comment-3659</link>
		<dc:creator>Rational approximations to e &#8212; The Endeavour</dc:creator>
		<pubDate>Wed, 30 Jan 2013 16:50:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12519#comment-3659</guid>
		<description><![CDATA[[...] The silver ratio Approximation relating lg, ln, and log10 [...] ]]></description>
		<content:encoded><![CDATA[<p>[...] The silver ratio Approximation relating lg, ln, and log10 [...] </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visto nel Web &#8211; 55 &#171; Ok, panico</title>
		<link>http://www.johndcook.com/blog/2012/11/24/approximation-relating-lg-ln-and-log/comment-page-1/#comment-3658</link>
		<dc:creator>Visto nel Web &#8211; 55 &#171; Ok, panico</dc:creator>
		<pubDate>Sun, 02 Dec 2012 09:06:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12519#comment-3658</guid>
		<description><![CDATA[[...] Approximation relating lg, ln, and log10 probabilmente OT, ma mi affascinano queste cose; rimpianto di non aver fatto abbastanza mate da piccolo ::: The Endeavour [...] ]]></description>
		<content:encoded><![CDATA[<p>[...] Approximation relating lg, ln, and log10 probabilmente OT, ma mi affascinano queste cose; rimpianto di non aver fatto abbastanza mate da piccolo ::: The Endeavour [...] </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Tate</title>
		<link>http://www.johndcook.com/blog/2012/11/24/approximation-relating-lg-ln-and-log/comment-page-1/#comment-3657</link>
		<dc:creator>Dave Tate</dc:creator>
		<pubDate>Tue, 27 Nov 2012 00:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12519#comment-3657</guid>
		<description><![CDATA[Kim, I&#039;m using the fact that logA(x) - logB(x) = ln(x)[ 1/ln(A) - 1/ln(B)].  If you want to approximate ln(x) using a difference of logs of other bases, you want to find integers A, B, and N such that N*[1/ln(A) - 1/ln(B)] is as close to 1 as possible.  In the example above, 1/ln(15) - 1/ln(41) is very close to 0.1.  Those values of A and B were found empirically.]]></description>
		<content:encoded><![CDATA[<p>Kim, I&#8217;m using the fact that logA(x) &#8211; logB(x) = ln(x)[ 1/ln(A) - 1/ln(B)].  If you want to approximate ln(x) using a difference of logs of other bases, you want to find integers A, B, and N such that N*[1/ln(A) - 1/ln(B)] is as close to 1 as possible.  In the example above, 1/ln(15) &#8211; 1/ln(41) is very close to 0.1.  Those values of A and B were found empirically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim</title>
		<link>http://www.johndcook.com/blog/2012/11/24/approximation-relating-lg-ln-and-log/comment-page-1/#comment-3656</link>
		<dc:creator>Kim</dc:creator>
		<pubDate>Tue, 27 Nov 2012 00:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12519#comment-3656</guid>
		<description><![CDATA[Dave, does that integers come from a fractional approximation of e?]]></description>
		<content:encoded><![CDATA[<p>Dave, does that integers come from a fractional approximation of e?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Tate</title>
		<link>http://www.johndcook.com/blog/2012/11/24/approximation-relating-lg-ln-and-log/comment-page-1/#comment-3655</link>
		<dc:creator>Dave Tate</dc:creator>
		<pubDate>Mon, 26 Nov 2012 22:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12519#comment-3655</guid>
		<description><![CDATA[OK, I shouldn&#039;t say &quot;no other approximations of this kind&quot; -- you could also do (e.g.)
ln(x) ~ 10 * [log15(x) -  log41(x)], which is only off by a factor of 0.000131 ...

But that&#039;s not nearly as cool.]]></description>
		<content:encoded><![CDATA[<p>OK, I shouldn&#8217;t say &#8220;no other approximations of this kind&#8221; &#8212; you could also do (e.g.)<br />
ln(x) ~ 10 * [log15(x) -  log41(x)], which is only off by a factor of 0.000131 &#8230;</p>
<p>But that&#8217;s not nearly as cool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Tate</title>
		<link>http://www.johndcook.com/blog/2012/11/24/approximation-relating-lg-ln-and-log/comment-page-1/#comment-3654</link>
		<dc:creator>Dave Tate</dc:creator>
		<pubDate>Mon, 26 Nov 2012 22:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12519#comment-3654</guid>
		<description><![CDATA[(I seem to be having trouble posting this reply; I suspect my attempts to type inequalities are being misconstrued as really bad HTML...)

Even more cool (to me) is the fact that there are no other approximations of this kind -- since 2 is the only integer for which ln(2) is less than 1, it&#039;s the only one that can generate a difference of ~ 1 between 1/ln(r) and 1/ln(k) for integers r and k.]]></description>
		<content:encoded><![CDATA[<p>(I seem to be having trouble posting this reply; I suspect my attempts to type inequalities are being misconstrued as really bad HTML&#8230;)</p>
<p>Even more cool (to me) is the fact that there are no other approximations of this kind &#8212; since 2 is the only integer for which ln(2) is less than 1, it&#8217;s the only one that can generate a difference of ~ 1 between 1/ln(r) and 1/ln(k) for integers r and k.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edward Kmett</title>
		<link>http://www.johndcook.com/blog/2012/11/24/approximation-relating-lg-ln-and-log/comment-page-1/#comment-3653</link>
		<dc:creator>Edward Kmett</dc:creator>
		<pubDate>Sun, 25 Nov 2012 19:19:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12519#comment-3653</guid>
		<description><![CDATA[You can of course turn this around to approximate natural log, which is much harder to compute with the two logs every computer scientist already knows how to do in their head.

ln x ~ lg x - log x

e.g.

ln 1024 ~ lg 1024 - log 1024 ~10 - 3 ~ 7 -- is close to the actual 6.931471805599453]]></description>
		<content:encoded><![CDATA[<p>You can of course turn this around to approximate natural log, which is much harder to compute with the two logs every computer scientist already knows how to do in their head.</p>
<p>ln x ~ lg x &#8211; log x</p>
<p>e.g.</p>
<p>ln 1024 ~ lg 1024 &#8211; log 1024 ~10 &#8211; 3 ~ 7 &#8212; is close to the actual 6.931471805599453</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: floh</title>
		<link>http://www.johndcook.com/blog/2012/11/24/approximation-relating-lg-ln-and-log/comment-page-1/#comment-3652</link>
		<dc:creator>floh</dc:creator>
		<pubDate>Sat, 24 Nov 2012 22:02:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12519#comment-3652</guid>
		<description><![CDATA[Oki, I didn&#039;t know that with the exception in computer science - learned something new again. :-)
Thanks so far and best regards from Germany

PS.: Great site with a lot of amazing math stuff. Please keep it up!]]></description>
		<content:encoded><![CDATA[<p>Oki, I didn&#8217;t know that with the exception in computer science &#8211; learned something new again. <img src='http://www.johndcook.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
Thanks so far and best regards from Germany</p>
<p>PS.: Great site with a lot of amazing math stuff. Please keep it up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johndcook.com/blog/2012/11/24/approximation-relating-lg-ln-and-log/comment-page-1/#comment-3651</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sat, 24 Nov 2012 21:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12519#comment-3651</guid>
		<description><![CDATA[I&#039;m quoting the formula as I found it in Knuth&#039;s book. He uses lg for log base 2, which is fairly common in computer science, at least in the US.

More explicitly, log&lt;sub&gt;2&lt;/sub&gt; x &amp;approx; log&lt;sub&gt;&lt;em&gt;e&lt;/em&gt;&lt;/sub&gt; x + log&lt;sub&gt;10&lt;/sub&gt; x.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m quoting the formula as I found it in Knuth&#8217;s book. He uses lg for log base 2, which is fairly common in computer science, at least in the US.</p>
<p>More explicitly, log<sub>2</sub> x &approx; log<sub><em>e</em></sub> x + log<sub>10</sub> x.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: floh</title>
		<link>http://www.johndcook.com/blog/2012/11/24/approximation-relating-lg-ln-and-log/comment-page-1/#comment-3650</link>
		<dc:creator>floh</dc:creator>
		<pubDate>Sat, 24 Nov 2012 21:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12519#comment-3650</guid>
		<description><![CDATA[Maybe a mistake that causes confusion!?:
 &quot;lg&quot; is the short form for &quot;log base 1o&quot; and not &quot;base 2&quot;.
But afaik &quot;log base 2&quot; has the short form &quot;ld x&quot; or &quot;lb x&quot;!?]]></description>
		<content:encoded><![CDATA[<p>Maybe a mistake that causes confusion!?:<br />
 &#8220;lg&#8221; is the short form for &#8220;log base 1o&#8221; and not &#8220;base 2&#8243;.<br />
But afaik &#8220;log base 2&#8243; has the short form &#8220;ld x&#8221; or &#8220;lb x&#8221;!?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
