<?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: The most interesting logs in the world</title>
	<atom:link href="http://www.johndcook.com/blog/2012/11/15/logarithms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johndcook.com/blog/2012/11/15/logarithms/</link>
	<description>John D. Cook</description>
	<lastBuildDate>Tue, 18 Jun 2013 20:32:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Spotting sensitivity in an equation &#8212; The Endeavour</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-2/#comment-3551</link>
		<dc:creator>Spotting sensitivity in an equation &#8212; The Endeavour</dc:creator>
		<pubDate>Sat, 22 Dec 2012 14:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3551</guid>
		<description><![CDATA[[...] We&#8217;ll convert θ to radians because that&#8217;s what we do. (Explanation at the bottom of this post.) We [...] ]]></description>
		<content:encoded><![CDATA[<p>[...] We&#8217;ll convert θ to radians because that&#8217;s what we do. (Explanation at the bottom of this post.) We [...] </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JFPuget</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-2/#comment-3550</link>
		<dc:creator>JFPuget</dc:creator>
		<pubDate>Fri, 30 Nov 2012 21:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3550</guid>
		<description><![CDATA[@Anton, complexity usually means worst case complexity.  In the worst case you would need O(nlog(n)) comparisons to sort n numbers with an algorithm like quick sort.  And O(n^2) with bubble sort.  If we want to be picky,  the cost of a comparison between two numbers is proportional to the number of bits to express those numbers, ie log(N) where N is an upper bound on these numbers.  Hence, if we are sorting non negative integers that are bounded by N, then quicksort would run in O(Nlog(N)Log(N)) .  Note that in this case, radix sort complexity would be better, O(Nlog(N)).  It is better than the complexity derived by @pseudonym because radix sort isn&#039;t based on comparison.]]></description>
		<content:encoded><![CDATA[<p>@Anton, complexity usually means worst case complexity.  In the worst case you would need O(nlog(n)) comparisons to sort n numbers with an algorithm like quick sort.  And O(n^2) with bubble sort.  If we want to be picky,  the cost of a comparison between two numbers is proportional to the number of bits to express those numbers, ie log(N) where N is an upper bound on these numbers.  Hence, if we are sorting non negative integers that are bounded by N, then quicksort would run in O(Nlog(N)Log(N)) .  Note that in this case, radix sort complexity would be better, O(Nlog(N)).  It is better than the complexity derived by @pseudonym because radix sort isn&#8217;t based on comparison.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-2/#comment-3549</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Fri, 30 Nov 2012 19:34:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3549</guid>
		<description><![CDATA[&lt;b&gt;Pseudonym,&lt;/b&gt; I do not fully believe your explanation of sorting complexity.

You say «You need at least lg (n!) + O(1) bits of information to discover this number, and therefore need at least lg (n!) + O(1) comparisons to do the sort».

But, for example, we can check that array is sorted in n-1 comparisons, which means that some permutations can be “discovered” in O(n) comparisons, not in O(n × lg(n)) as stated. And who knows, may be some other permutations need maximum possible n×(n-1) / 2 = O(n^2) comparisons to discover.

The problem come from statement «A binary comparison gives you one bit of information». I think that is wrong, because the amount of information the comaprison gives you depends on comparisions you done before.]]></description>
		<content:encoded><![CDATA[<p><b>Pseudonym,</b> I do not fully believe your explanation of sorting complexity.</p>
<p>You say «You need at least lg (n!) + O(1) bits of information to discover this number, and therefore need at least lg (n!) + O(1) comparisons to do the sort».</p>
<p>But, for example, we can check that array is sorted in n-1 comparisons, which means that some permutations can be “discovered” in O(n) comparisons, not in O(n × lg(n)) as stated. And who knows, may be some other permutations need maximum possible n×(n-1) / 2 = O(n^2) comparisons to discover.</p>
<p>The problem come from statement «A binary comparison gives you one bit of information». I think that is wrong, because the amount of information the comaprison gives you depends on comparisions you done before.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Canageek</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-2/#comment-3548</link>
		<dc:creator>Canageek</dc:creator>
		<pubDate>Sun, 25 Nov 2012 17:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3548</guid>
		<description><![CDATA[Alright, obviously this can&#039;t be solved with anecdotes. What we should do is have someone write a script that will scan papers in various languages for the use of log, ln, lg, lb, etc. Then we can get a proper statistical overview of how it is used. For example, I suspect that physical chemistry leans towards log as log_e, since it borrows heavily from physics.

I am curious as to why people don&#039;t like the ln notation; It could be my Asperger&#039;s talking, but explicit seems better then implicit to me.]]></description>
		<content:encoded><![CDATA[<p>Alright, obviously this can&#8217;t be solved with anecdotes. What we should do is have someone write a script that will scan papers in various languages for the use of log, ln, lg, lb, etc. Then we can get a proper statistical overview of how it is used. For example, I suspect that physical chemistry leans towards log as log_e, since it borrows heavily from physics.</p>
<p>I am curious as to why people don&#8217;t like the ln notation; It could be my Asperger&#8217;s talking, but explicit seems better then implicit to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicolas</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-2/#comment-3547</link>
		<dc:creator>nicolas</dc:creator>
		<pubDate>Sun, 25 Nov 2012 15:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3547</guid>
		<description><![CDATA[to complicate things further, I think there was some changes in the french eudcation system back in 1992. anyway, french did not have, thank god, that &#039;non-negative&#039; terminology which is an absolute nightmare (not non negative  negative ) and a logical inconsistency (the weakest concept should always be assume unless specified)]]></description>
		<content:encoded><![CDATA[<p>to complicate things further, I think there was some changes in the french eudcation system back in 1992. anyway, french did not have, thank god, that &#8216;non-negative&#8217; terminology which is an absolute nightmare (not non negative  negative ) and a logical inconsistency (the weakest concept should always be assume unless specified)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JFPuget</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-2/#comment-3546</link>
		<dc:creator>JFPuget</dc:creator>
		<pubDate>Sun, 25 Nov 2012 12:10:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3546</guid>
		<description><![CDATA[Mathworld entry is quite interesting http://mathworld.wolfram.com/NaturalLogarithm.html.  It claims log is used for log_e in the mathematics community, and ln is used in in physics or engineering.  It is consistent with John&#039;s claim as long as one agrees that neither physicists nor engineers use advanced mathematics ;-)]]></description>
		<content:encoded><![CDATA[<p>Mathworld entry is quite interesting <a href="http://mathworld.wolfram.com/NaturalLogarithm.html" rel="nofollow">http://mathworld.wolfram.com/NaturalLogarithm.html</a>.  It claims log is used for log_e in the mathematics community, and ln is used in in physics or engineering.  It is consistent with John&#8217;s claim as long as one agrees that neither physicists nor engineers use advanced mathematics <img src='http://www.johndcook.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-2/#comment-3545</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sat, 24 Nov 2012 20:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3545</guid>
		<description><![CDATA[Kevin: it&#039;s true that exponential(ix) = cosine( x radians ) + i sine( x radians ) for all x.  But if exponential means an exponent of anything other than &lt;em&gt;e&lt;/em&gt;, it&#039;s not true. And exp(ix) does NOT equal cos(x degrees) + i sin(x degrees).]]></description>
		<content:encoded><![CDATA[<p>Kevin: it&#8217;s true that exponential(ix) = cosine( x radians ) + i sine( x radians ) for all x.  But if exponential means an exponent of anything other than <em>e</em>, it&#8217;s not true. And exp(ix) does NOT equal cos(x degrees) + i sin(x degrees).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-2/#comment-3544</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Sat, 24 Nov 2012 19:58:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3544</guid>
		<description><![CDATA[&gt;Euler’s formula exp(ix) = cos(x) + i sin(x) is only true when we use the natural base e and radian measure.

But isn&#039;t this equation true for ALL x ? Independent of whatever x may represent.]]></description>
		<content:encoded><![CDATA[<p>&gt;Euler’s formula exp(ix) = cos(x) + i sin(x) is only true when we use the natural base e and radian measure.</p>
<p>But isn&#8217;t this equation true for ALL x ? Independent of whatever x may represent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-2/#comment-3543</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sat, 24 Nov 2012 19:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3543</guid>
		<description><![CDATA[F Doss: Good example. Knuth&#039;s notation is unambiguous, and a good choice since his books are read by a wide audience with mixed backgrounds. Also, he deals with a variety of number systems.

However, this is not a case of an advanced source writing &quot;log&quot; and implicitly meaning log_10. This is what I&#039;m claiming essentially never happens.]]></description>
		<content:encoded><![CDATA[<p>F Doss: Good example. Knuth&#8217;s notation is unambiguous, and a good choice since his books are read by a wide audience with mixed backgrounds. Also, he deals with a variety of number systems.</p>
<p>However, this is not a case of an advanced source writing &#8220;log&#8221; and implicitly meaning log_10. This is what I&#8217;m claiming essentially never happens.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: F Doss</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-2/#comment-3542</link>
		<dc:creator>F Doss</dc:creator>
		<pubDate>Sat, 24 Nov 2012 18:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3542</guid>
		<description><![CDATA[Knuth uses &#039;ln&#039; for natural logs and requires a subscript for &#039;log&#039;.  See
 TAOCP V1 p 23 where it&#039;s defined, or any of the appendix B &#039;Index to notations&#039;.]]></description>
		<content:encoded><![CDATA[<p>Knuth uses &#8216;ln&#8217; for natural logs and requires a subscript for &#8216;log&#8217;.  See<br />
 TAOCP V1 p 23 where it&#8217;s defined, or any of the appendix B &#8216;Index to notations&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3541</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sat, 24 Nov 2012 18:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3541</guid>
		<description><![CDATA[I&#039;m a mathematician and a programmer, so I use the conventions of mathematics and programming. Both professional communities have standardized on &quot;log&quot; for natural log.

Aside from Excel macros, every programming language I know of uses &quot;log&quot; to mean natural log. And so does every &lt;b&gt;advanced&lt;/b&gt; math book I can recall.

I have occasionally seen ln for natural log; I saw it a couple weeks ago in an article written for an undergraduate audience. But I have never seen a math article that writes &quot;log&quot; and assumes the reader knows that the author intends this to mean log_10. On the other hand, I often see things like &quot;log(1 + x) &amp;approx; x for small x&quot; which implies natural logs.

Numerous people have commented that they learned to use &quot;log&quot; for log_10, that&#039;s it&#039;s common in their country or profession, etc. But nobody has cited an advanced math source that makes this implicit assumption.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m a mathematician and a programmer, so I use the conventions of mathematics and programming. Both professional communities have standardized on &#8220;log&#8221; for natural log.</p>
<p>Aside from Excel macros, every programming language I know of uses &#8220;log&#8221; to mean natural log. And so does every <b>advanced</b> math book I can recall.</p>
<p>I have occasionally seen ln for natural log; I saw it a couple weeks ago in an article written for an undergraduate audience. But I have never seen a math article that writes &#8220;log&#8221; and assumes the reader knows that the author intends this to mean log_10. On the other hand, I often see things like &#8220;log(1 + x) &approx; x for small x&#8221; which implies natural logs.</p>
<p>Numerous people have commented that they learned to use &#8220;log&#8221; for log_10, that&#8217;s it&#8217;s common in their country or profession, etc. But nobody has cited an advanced math source that makes this implicit assumption.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lex spoon</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3540</link>
		<dc:creator>Lex spoon</dc:creator>
		<pubDate>Sat, 24 Nov 2012 17:13:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3540</guid>
		<description><![CDATA[Very cute photos! That said, as others have posted, you&#039;d have a lot less to explain to people if you used &quot;ln&quot; instead of &quot;log&quot;. It appears to be unambiguous, and it&#039;s also shorter.

Growing up in the South in the U.S., we used &quot;ln&quot; for base-e, and &quot;log&quot; for either base 10 or base 2. This appears to be pretty common. I have worked with people all over the world since then, and I haven&#039;t run into any trouble or confusion with these conventions.

It&#039;s true that this approach means that &quot;log&quot; is ambiguous. In this case that&#039;s a good thing. It means that each author can pick the convention that works best for what they are working on, rather than people using the &quot;wrong&quot; convention having to noise up their formulas with a bunch of constants.]]></description>
		<content:encoded><![CDATA[<p>Very cute photos! That said, as others have posted, you&#8217;d have a lot less to explain to people if you used &#8220;ln&#8221; instead of &#8220;log&#8221;. It appears to be unambiguous, and it&#8217;s also shorter.</p>
<p>Growing up in the South in the U.S., we used &#8220;ln&#8221; for base-e, and &#8220;log&#8221; for either base 10 or base 2. This appears to be pretty common. I have worked with people all over the world since then, and I haven&#8217;t run into any trouble or confusion with these conventions.</p>
<p>It&#8217;s true that this approach means that &#8220;log&#8221; is ambiguous. In this case that&#8217;s a good thing. It means that each author can pick the convention that works best for what they are working on, rather than people using the &#8220;wrong&#8221; convention having to noise up their formulas with a bunch of constants.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maël Primet</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3539</link>
		<dc:creator>Maël Primet</dc:creator>
		<pubDate>Sat, 24 Nov 2012 15:05:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3539</guid>
		<description><![CDATA[@EricWilson @JeanFrancoisPuget

Yes I think the debate here is really about national conventions, I&#039;m also a PhD, also from the Ecole Normale Supérieure in Paris (I remind you that Americans are still measuring sticks with inches...) and in France we actually consider poor education to use `log` without subscript (as the log without base is only defined up to a constant, as it was remarked), and we will always use `ln` to denote the natural logarithm.]]></description>
		<content:encoded><![CDATA[<p>@EricWilson @JeanFrancoisPuget</p>
<p>Yes I think the debate here is really about national conventions, I&#8217;m also a PhD, also from the Ecole Normale Supérieure in Paris (I remind you that Americans are still measuring sticks with inches&#8230;) and in France we actually consider poor education to use `log` without subscript (as the log without base is only defined up to a constant, as it was remarked), and we will always use `ln` to denote the natural logarithm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PiFan</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3538</link>
		<dc:creator>PiFan</dc:creator>
		<pubDate>Sat, 24 Nov 2012 14:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3538</guid>
		<description><![CDATA[I agree with your comments completely, but I think you left one item out.

In the interest of consistency (&quot;use what makes the most sense&quot;) then you should define &lt;a href=&quot;http://www.math.utah.edu/~palais/pi.html&quot; rel=&quot;nofollow&quot;&gt;Pi as 3.283...&lt;/a&gt;.

It fits much more naturally into the world of logs of e and radian measurement.]]></description>
		<content:encoded><![CDATA[<p>I agree with your comments completely, but I think you left one item out.</p>
<p>In the interest of consistency (&#8220;use what makes the most sense&#8221;) then you should define <a href="http://www.math.utah.edu/~palais/pi.html" rel="nofollow">Pi as 3.283&#8230;</a>.</p>
<p>It fits much more naturally into the world of logs of e and radian measurement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Feuer</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3537</link>
		<dc:creator>David Feuer</dc:creator>
		<pubDate>Fri, 23 Nov 2012 00:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3537</guid>
		<description><![CDATA[Yuliya, as others have noted, following the ISO standard doesn&#039;t really help anything in this case, as log_2 is most often written ld, lg, or (when specified) log, but the ISO standard specifies lb for this, which few will recognize, and lg for log_10, which many will mistake for log_2. It seems that must have been an after-the-pub kind of decision.]]></description>
		<content:encoded><![CDATA[<p>Yuliya, as others have noted, following the ISO standard doesn&#8217;t really help anything in this case, as log_2 is most often written ld, lg, or (when specified) log, but the ISO standard specifies lb for this, which few will recognize, and lg for log_10, which many will mistake for log_2. It seems that must have been an after-the-pub kind of decision.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuliya</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3536</link>
		<dc:creator>Yuliya</dc:creator>
		<pubDate>Thu, 22 Nov 2012 12:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3536</guid>
		<description><![CDATA[Wow, it&#039;s absolutely unexpected to see so much confusion about these things!
I guess national specifics does have a role. E.g. in former USSR countries:
log is for any base
lg is for base 10
ln is for base e

On my scentific calculator (made in China, obviously), there are separate buttons which are marked as follows:

log_a so that one could specify any base,
log for base 10
ln for base e

The Wikipedia article about the decadic logarithm says this:

On calculators it is usually &quot;log&quot;, but mathematicians usually mean natural logarithm rather than common logarithm when they write &quot;log&quot;. To mitigate this ambiguity the ISO specification is that log_10(x) should be lg (x) and log_e(x) should be ln (x).

I admit I don&#039;t do math daily but I would stick with these standards so as not to complicate things.]]></description>
		<content:encoded><![CDATA[<p>Wow, it&#8217;s absolutely unexpected to see so much confusion about these things!<br />
I guess national specifics does have a role. E.g. in former USSR countries:<br />
log is for any base<br />
lg is for base 10<br />
ln is for base e</p>
<p>On my scentific calculator (made in China, obviously), there are separate buttons which are marked as follows:</p>
<p>log_a so that one could specify any base,<br />
log for base 10<br />
ln for base e</p>
<p>The Wikipedia article about the decadic logarithm says this:</p>
<p>On calculators it is usually &#8220;log&#8221;, but mathematicians usually mean natural logarithm rather than common logarithm when they write &#8220;log&#8221;. To mitigate this ambiguity the ISO specification is that log_10(x) should be lg (x) and log_e(x) should be ln (x).</p>
<p>I admit I don&#8217;t do math daily but I would stick with these standards so as not to complicate things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3535</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 21 Nov 2012 12:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3535</guid>
		<description><![CDATA[Pseudonym: Elegant explanation of sorting complexity. Thanks.]]></description>
		<content:encoded><![CDATA[<p>Pseudonym: Elegant explanation of sorting complexity. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pseudonym</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3534</link>
		<dc:creator>Pseudonym</dc:creator>
		<pubDate>Wed, 21 Nov 2012 04:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3534</guid>
		<description><![CDATA[(In what follows, I&#039;m using ln to mean log base e, and lg to mean log base 2.)

Actually, g, the number of comparisons required to sort n items using only binary comparisons is n lg n plus low order terms, not n ln n.

This follows from basic information theory. You are trying to &quot;discover&quot; a number between 1 and n!.  A binary comparison gives you one bit of information. You need at least lg (n!) + O(1) bits of information to discover this number, and therefore need at least lg (n!) + O(1) comparisons to do the sort.

It&#039;s then a matter of using Stirling&#039;s approximation or something similar to get this in whatever form you need:

   lg (n!) + O(1) = n lg n + O(n) = (1 + o(1)) n lg n]]></description>
		<content:encoded><![CDATA[<p>(In what follows, I&#8217;m using ln to mean log base e, and lg to mean log base 2.)</p>
<p>Actually, g, the number of comparisons required to sort n items using only binary comparisons is n lg n plus low order terms, not n ln n.</p>
<p>This follows from basic information theory. You are trying to &#8220;discover&#8221; a number between 1 and n!.  A binary comparison gives you one bit of information. You need at least lg (n!) + O(1) bits of information to discover this number, and therefore need at least lg (n!) + O(1) comparisons to do the sort.</p>
<p>It&#8217;s then a matter of using Stirling&#8217;s approximation or something similar to get this in whatever form you need:</p>
<p>   lg (n!) + O(1) = n lg n + O(n) = (1 + o(1)) n lg n</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3533</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 20 Nov 2012 12:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3533</guid>
		<description><![CDATA[My, what a lot of comments! Out of curiosity I did a very unscientific poll of the first few articles (in English) I had access to when doing a Google Search of &quot;logarithm&quot;. Two were on discrete logs, the other two used log base e. Of the two that used log base e, one used the notation &quot;log&quot; without writing the base. The other used &quot;ln&quot;. None referred to log base 10.]]></description>
		<content:encoded><![CDATA[<p>My, what a lot of comments! Out of curiosity I did a very unscientific poll of the first few articles (in English) I had access to when doing a Google Search of &#8220;logarithm&#8221;. Two were on discrete logs, the other two used log base e. Of the two that used log base e, one used the notation &#8220;log&#8221; without writing the base. The other used &#8220;ln&#8221;. None referred to log base 10.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mirc</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3532</link>
		<dc:creator>Mirc</dc:creator>
		<pubDate>Tue, 20 Nov 2012 11:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3532</guid>
		<description><![CDATA[No, I think you&#039;re plain weird. We also use ln in Romania. What you&#039;re stating is just an expression of the English way of refusing standards.]]></description>
		<content:encoded><![CDATA[<p>No, I think you&#8217;re plain weird. We also use ln in Romania. What you&#8217;re stating is just an expression of the English way of refusing standards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3531</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 20 Nov 2012 10:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3531</guid>
		<description><![CDATA[Marko: Please note that I said &lt;strong&gt;advanced&lt;/strong&gt; mathematics.

Elementary math books often use log as you say, in English speaking countries and around the world. But I have never seen a mathematics journal article, for example, that writes &quot;log&quot; and implicitly means &quot;log_10&quot;.]]></description>
		<content:encoded><![CDATA[<p>Marko: Please note that I said <strong>advanced</strong> mathematics.</p>
<p>Elementary math books often use log as you say, in English speaking countries and around the world. But I have never seen a mathematics journal article, for example, that writes &#8220;log&#8221; and implicitly means &#8220;log_10&#8243;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3530</link>
		<dc:creator>Marko</dc:creator>
		<pubDate>Tue, 20 Nov 2012 07:57:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3530</guid>
		<description><![CDATA[In Croatia we use &quot;log&quot;  for base 10, and &quot;ln&quot; for base e.

As far as I know your statement &quot;(log  log base 10) is the UNIVERSAL convention in advanced mathematics.&quot; is true only if the UNIVERSAL is equivalent to &quot;english speaking world&quot;.]]></description>
		<content:encoded><![CDATA[<p>In Croatia we use &#8220;log&#8221;  for base 10, and &#8220;ln&#8221; for base e.</p>
<p>As far as I know your statement &#8220;(log  log base 10) is the UNIVERSAL convention in advanced mathematics.&#8221; is true only if the UNIVERSAL is equivalent to &#8220;english speaking world&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Feuer</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3529</link>
		<dc:creator>David Feuer</dc:creator>
		<pubDate>Sat, 17 Nov 2012 03:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3529</guid>
		<description><![CDATA[I&#039;m only an undergrad (studying math), but I tend to use &quot;ln&quot; for natural logarithms. I don&#039;t remember the last time I saw a base-10 logarithm—I mostly see log used to mean base 2, when I read CS papers. It seems to me that within CS, where the vast majority of logarithms are either natural or base 2, that it would be awfully nice to adopt a convention for writing base 2 logarithms to avoid the boilerplate &quot;All logarithms in this article are base 2 unless otherwise specified.&quot; I also see no reason to prefer the generic &quot;log&quot; to the specific &quot;ln&quot;, aside from snootery: if it&#039;s more important to you to insist that log means log_e than to make yourself clear even to people beneath your lofty heights, then maybe you should switch from math to literary criticism, where such behavior is more widely appreciated.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m only an undergrad (studying math), but I tend to use &#8220;ln&#8221; for natural logarithms. I don&#8217;t remember the last time I saw a base-10 logarithm—I mostly see log used to mean base 2, when I read CS papers. It seems to me that within CS, where the vast majority of logarithms are either natural or base 2, that it would be awfully nice to adopt a convention for writing base 2 logarithms to avoid the boilerplate &#8220;All logarithms in this article are base 2 unless otherwise specified.&#8221; I also see no reason to prefer the generic &#8220;log&#8221; to the specific &#8220;ln&#8221;, aside from snootery: if it&#8217;s more important to you to insist that log means log_e than to make yourself clear even to people beneath your lofty heights, then maybe you should switch from math to literary criticism, where such behavior is more widely appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ezra abrams</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3528</link>
		<dc:creator>ezra abrams</dc:creator>
		<pubDate>Sat, 17 Nov 2012 01:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3528</guid>
		<description><![CDATA[isn&#039;t it surprising how every specialist has some reason why there way is the right way , and why there speciality is somehow better then others
I read several times in my undergrad math/chem/biol/physics books about how X was the supreme achievement of the human mind.....

Respectfully, take a chill pill here - what matters, at least for the 98% of non math majors, is that the world have a consistent and universally applied standard; it doesn&#039;t matter all that much what it is.
In my world, biology, Log = base10 and Ln= base 2 or e
please, why don&#039;t you get together with the guys who think differently, toss a coin, and decide on a standard.]]></description>
		<content:encoded><![CDATA[<p>isn&#8217;t it surprising how every specialist has some reason why there way is the right way , and why there speciality is somehow better then others<br />
I read several times in my undergrad math/chem/biol/physics books about how X was the supreme achievement of the human mind&#8230;..</p>
<p>Respectfully, take a chill pill here &#8211; what matters, at least for the 98% of non math majors, is that the world have a consistent and universally applied standard; it doesn&#8217;t matter all that much what it is.<br />
In my world, biology, Log = base10 and Ln= base 2 or e<br />
please, why don&#8217;t you get together with the guys who think differently, toss a coin, and decide on a standard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3527</link>
		<dc:creator>Jorge</dc:creator>
		<pubDate>Fri, 16 Nov 2012 21:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3527</guid>
		<description><![CDATA[Spanish Maths grad here. In high school, we get taught to use ln as natural logarithm (we call that «logaritmo neperiano»), and log as base 10 log. However, as you enter university log starts meaning natural logarithm and you rarely see ln. That&#039;s unfortunate because ln is more accurate (and shorter!), it&#039;s also confusing for students in their first year, and in non-maths subjects you can&#039;t really know the convention they&#039;re using (frequently log = base10, like in chemistry as pointed out by @Canageek).]]></description>
		<content:encoded><![CDATA[<p>Spanish Maths grad here. In high school, we get taught to use ln as natural logarithm (we call that «logaritmo neperiano»), and log as base 10 log. However, as you enter university log starts meaning natural logarithm and you rarely see ln. That&#8217;s unfortunate because ln is more accurate (and shorter!), it&#8217;s also confusing for students in their first year, and in non-maths subjects you can&#8217;t really know the convention they&#8217;re using (frequently log = base10, like in chemistry as pointed out by @Canageek).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luk Vizner</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3526</link>
		<dc:creator>Luk Vizner</dc:creator>
		<pubDate>Fri, 16 Nov 2012 20:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3526</guid>
		<description><![CDATA[John you are using a simple math, so there is no reason to use log without the base notation.]]></description>
		<content:encoded><![CDATA[<p>John you are using a simple math, so there is no reason to use log without the base notation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A. Webb</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3525</link>
		<dc:creator>A. Webb</dc:creator>
		<pubDate>Fri, 16 Nov 2012 16:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3525</guid>
		<description><![CDATA[Perhaps we pay homage to their inventor and do our logs as log(10^7 / x) / log (10^7 / (10^7-1) ), then both camps can be equally unhappy.]]></description>
		<content:encoded><![CDATA[<p>Perhaps we pay homage to their inventor and do our logs as log(10^7 / x) / log (10^7 / (10^7-1) ), then both camps can be equally unhappy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: g</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3524</link>
		<dc:creator>g</dc:creator>
		<pubDate>Fri, 16 Nov 2012 15:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3524</guid>
		<description><![CDATA[Olin, there are other reasons for preferring the natural log that don&#039;t involve calculus. Our host already mentioned one -- the relationship between exponential and trigonometric functions. Here are a few other things that come out nicely with natural logs and don&#039;t with logs to other bases. The number of comparisons to sort n numbers is n log n plus lower-order terms. If you have some money earning a small rate of compound interest, so that every year it multiplies by 1+h, then it takes about log(K)/h years to multiply your money by a factor K. 1 + 1/2 + 1/3 + ... + 1/n is log n plus lower-order terms. The n&#039;th prime number is approximately n log n plus lower order terms.

That doesn&#039;t mean there are no situations in which other bases might be preferable, of course, but it isn&#039;t at all the case that the only reason anyone has for preferring natural logs is that they make calculus nicer.]]></description>
		<content:encoded><![CDATA[<p>Olin, there are other reasons for preferring the natural log that don&#8217;t involve calculus. Our host already mentioned one &#8212; the relationship between exponential and trigonometric functions. Here are a few other things that come out nicely with natural logs and don&#8217;t with logs to other bases. The number of comparisons to sort n numbers is n log n plus lower-order terms. If you have some money earning a small rate of compound interest, so that every year it multiplies by 1+h, then it takes about log(K)/h years to multiply your money by a factor K. 1 + 1/2 + 1/3 + &#8230; + 1/n is log n plus lower-order terms. The n&#8217;th prime number is approximately n log n plus lower order terms.</p>
<p>That doesn&#8217;t mean there are no situations in which other bases might be preferable, of course, but it isn&#8217;t at all the case that the only reason anyone has for preferring natural logs is that they make calculus nicer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean Francois Puget</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3523</link>
		<dc:creator>Jean Francois Puget</dc:creator>
		<pubDate>Fri, 16 Nov 2012 07:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3523</guid>
		<description><![CDATA[@eric wilson
I have a PhD and I am an alumni of Ecole Normale Superieure from Paris.  you know, this school with eleven Fields medals.

I guess I qualify as having done math past basic calculus.

Note that even wikipedia entry on logarithm uses ln for log_e

What seems clear is that (as often) US have a different convention than the rest of the world.]]></description>
		<content:encoded><![CDATA[<p>@eric wilson<br />
I have a PhD and I am an alumni of Ecole Normale Superieure from Paris.  you know, this school with eleven Fields medals.</p>
<p>I guess I qualify as having done math past basic calculus.</p>
<p>Note that even wikipedia entry on logarithm uses ln for log_e</p>
<p>What seems clear is that (as often) US have a different convention than the rest of the world.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pseudonym</title>
		<link>http://www.johndcook.com/blog/2012/11/15/logarithms/comment-page-1/#comment-3522</link>
		<dc:creator>Pseudonym</dc:creator>
		<pubDate>Fri, 16 Nov 2012 00:18:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=12471#comment-3522</guid>
		<description><![CDATA[Quick response to Robert Talbert.

&lt;blockquote&gt;In computer science of course you just say “log”, without reference to the base, because all logs have the same big-O behavior due to that handy proportionality fact John referenced.&lt;/blockquote&gt;
If you&#039;re reporting big-O behaviour, you just say &quot;log&quot;. However, this is only a small part of computer science.

Big-O makes sense for reporting the time that an algorithm theoretically takes, because faster computers are always being produced. Of course, constant factors actually matter; Sedgewick points out that something like 80% of algorithms published in SODA are &quot;galactic algorithms&quot;, in the sense that they are asymptotically faster than the algorithms used today, but the constant factors mean that the speedup will only be realised if you feed it a galaxy&#039;s worth of data.

However, space requirements are a different matter. A bit can be (and regularly is) made physically smaller, but they can&#039;t be theoretically smaller.

Information theory gives us hard limits on how many bits are required to transmit a member of a family of data structures across a communications channel. Transmitting the number N, for example, &lt;i&gt;requires&lt;/i&gt; lg N + O(1) bits. The low-order terms are &quot;within a constant factor&quot;, but the high order terms are not.

You can halve the amount of time it takes to transmit, and you can halve the physical size of a container to store it in, but you can&#039;t reduce the number of bits.

And that&#039;s why the base of logarithms still matters in computer science.]]></description>
		<content:encoded><![CDATA[<p>Quick response to Robert Talbert.</p>
<blockquote><p>In computer science of course you just say “log”, without reference to the base, because all logs have the same big-O behavior due to that handy proportionality fact John referenced.</p></blockquote>
<p>If you&#8217;re reporting big-O behaviour, you just say &#8220;log&#8221;. However, this is only a small part of computer science.</p>
<p>Big-O makes sense for reporting the time that an algorithm theoretically takes, because faster computers are always being produced. Of course, constant factors actually matter; Sedgewick points out that something like 80% of algorithms published in SODA are &#8220;galactic algorithms&#8221;, in the sense that they are asymptotically faster than the algorithms used today, but the constant factors mean that the speedup will only be realised if you feed it a galaxy&#8217;s worth of data.</p>
<p>However, space requirements are a different matter. A bit can be (and regularly is) made physically smaller, but they can&#8217;t be theoretically smaller.</p>
<p>Information theory gives us hard limits on how many bits are required to transmit a member of a family of data structures across a communications channel. Transmitting the number N, for example, <i>requires</i> lg N + O(1) bits. The low-order terms are &#8220;within a constant factor&#8221;, but the high order terms are not.</p>
<p>You can halve the amount of time it takes to transmit, and you can halve the physical size of a container to store it in, but you can&#8217;t reduce the number of bits.</p>
<p>And that&#8217;s why the base of logarithms still matters in computer science.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
