LOG Base: 10, e, or Other - What Does it Mean?

  • Context: High School 
  • Thread starter Thread starter tony873004
  • Start date Start date
  • Tags Tags
    Base Log
Click For Summary

Discussion Overview

The discussion revolves around the ambiguity of the logarithm base when the term "LOG" is used without specification. Participants explore the conventions in different fields such as mathematics, computer science, and engineering, and how these conventions affect the interpretation of logarithmic functions.

Discussion Character

  • Debate/contested
  • Conceptual clarification
  • Technical explanation

Main Points Raised

  • Some participants note that "LOG" can refer to different bases depending on the context, with programming languages often assuming base e, while calculators may assume base 10.
  • One participant suggests that in computer science, base 2 is commonly preferred, sometimes denoted as lg, while high school and basic calculus contexts typically use base 10.
  • Another viewpoint indicates that mathematicians generally use base e, as it is often the most relevant for their work, whereas engineers and astronomers may prefer base 10 for practical applications.
  • Some participants propose testing the base of LOG in software by checking specific values, such as LOG(b)=1, to determine which base is being used.
  • There is mention of the inconsistency across different software and programming languages regarding the base of LOG, emphasizing the need to consult documentation for clarification.
  • One participant shares a method of using the change of base formula, log(x) / log(base), to avoid confusion about the implied base in unfamiliar calculators or programs.
  • A metaphorical analogy is drawn comparing the choice of musical keys to the choice of logarithmic bases, highlighting that different fields have their own conventions and preferences.

Areas of Agreement / Disagreement

Participants express a lack of consensus on a single standard for the base of LOG, with multiple competing views on what base should be assumed in various contexts. The discussion remains unresolved regarding a definitive answer to the ambiguity of LOG.

Contextual Notes

Limitations include the absence of a universally accepted definition for LOG, dependence on specific fields of study, and the variability in software implementations that may lead to different interpretations of the base.

tony873004
Science Advisor
Gold Member
Messages
1,753
Reaction score
143
If I see a formula that contains LOG, but does not specify as base, how do I know what base they're referring to? Programming languages assume LOG means base e. My calculator assumes LOG means base 10. I've seen math teachers assume it meant base e. If its base anything other than 10 or e, the base is always specified as a subscript. We've got LN to unambiguously describe base e. Why the ambiguity with LOG?
 
Physics news on Phys.org
The symbol "log" means the logarithim to the preferred base of the person writing is, or that preferred in the dicipline of study.
In computer science base 2 is preferred though that is sometimes denoted lg.
In garbage subjects like high school, calculator, and ap calculus exams base 10 is prefered.
The base b (often b=10 or 2 or 16) is used when logarithims are being used as a computational aid, though this is seldom done anymore.
In resonable discourse the base e is used because that base is natural.
As to how to know which base is being used at the beginning of a work it should be noted. One might guess based on above criteria. One might look for a give away like log(e)=1 or log'(1)=1. Sometimes it does not much matter.
 
Mathematicians seem to assume base e, since they have no other need for any other base. However, engineers and astronomers sometimes like base 10.
 
Base 10 is most useful for doing arithmetic. Base e is preferred for mathematical analysis.
 
You could always just run a test to determine which base your LOG on the machine uses. Either LOG(b)=1 or LOG(b)<>1; because b^1 = b. You could just test using the different expected values for b, the base, being either 10 or 2.1828...
 
Unfortunately, there doesn’t seem to be any real consistency on this issue.

For software and computer languages, you pretty much have to check the documentation to be sure what base LOG is using. For example, in Excel, LOG10 is used for logarithms base 10 and LN is base e, however, in .NET programming languages, Math.Log is base e and Math.Log10 is base 10.
 
Whenever I use a calculator or computer program I'm not familiar with, I always enter logs like this:

log(x) / log(base)

where x is the value I want the log of, and base is the base I want to use. It no longer matters what base is implied by the log() operator. Checking documentation is too time-consuming.

- Warren
 
Why isn't every song written in the key of C? After all, every other major scale is isomorphic to it.

From the perspective of a piano student looking at a keyboard, this is a totally legitimate question. Why would you ever write anything in a key like F#, with more sharps than there are black keys?

The reason, the student later learns, is that the world leaves little place for absolute standards. The piano isn't the only instrument. Other instruments have other considerations. Each instrument has its own preferred key. Each singer has their own limits on range. Similarly, every group who make use of logs have their own purpose. Mathematicians have a simple definition for log_e. Scientists can estimate log_10's very easily. Computer scientists like log_2, because it tells you how many bits it takes to store an integer. Even allowing for the convention that ln = log_e, whose to decide between log = log_10 and log = log_2?

Naming conventions are a cultural phenomenon. And, like any human creation, it's going to have historical facets. Yeah, there are ambiguities and inconsistencies, but that is how the world is ;-)
 
Last edited:
chroot said:
Whenever I use a calculator or computer program I'm not familiar with, I always enter logs like this:

log(x) / log(base)

where x is the value I want the log of, and base is the base I want to use. It no longer matters what base is implied by the log() operator. Checking documentation is too time-consuming.

- Warren

That's what i do too ..
and I'm used to use the base 10 for the log .. unless it's another constant i change te base
e.g.. log5 6 = 1/ log6 5
 
  • #10
Excellent analogy, Tac-Tics. I'm going to have to remember that one!
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 44 ·
2
Replies
44
Views
5K
  • · Replies 6 ·
Replies
6
Views
16K
  • · Replies 15 ·
Replies
15
Views
18K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 4 ·
Replies
4
Views
9K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 9 ·
Replies
9
Views
4K