Binary Representation: Log or Ln?

  • Context: High School 
  • Thread starter Thread starter Dominic M Sangma
  • Start date Start date
  • Tags Tags
    Difference Ln Log
Click For Summary

Discussion Overview

The discussion centers around the differences between logarithmic functions, specifically the common logarithm (log) and the natural logarithm (ln), with a focus on their applications in various fields such as mathematics, physics, and computer science. Participants explore the conventions surrounding the use of these logarithms and their implications in binary representation.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • Some participants note that log typically refers to base 10 in physics, base e in mathematics, and base 2 in computer science, suggesting that context is crucial.
  • Others argue that the distinction between log and ln has become less clear, with some proposing that ln is becoming outdated and advocating for the use of base e even in computer science contexts.
  • A participant emphasizes that the base of the logarithm is significant when calculating the number of bits needed for binary representation.
  • Another participant expresses a nonchalant attitude towards the hardware implications of logarithmic bases, suggesting that the differences may not be critical in certain scenarios.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the use of log versus ln, as multiple competing views regarding their definitions and applications remain present throughout the discussion.

Contextual Notes

There are limitations regarding the clarity of definitions and conventions used by different authors, as well as the potential impact of these choices on calculations in various fields.

Dominic M Sangma
Messages
1
Reaction score
0
What is the difference between log and ln??

[Thread moved to General Math forum by moderator]
 
Last edited by a moderator:
Mathematics news on Phys.org
Log is based on powers of 10, often called Common Log. Ln is based on powers of e (that's 2.71828...), called Natural Log.

By the way, questions should be asked in one of the main Forums. This section is for New Member Introductions. Please read the general information about how things are normally done here. Click on the INFO at the top right of the page.

Oh! And welcome to PF. Hope you find it useful.

Tom
 
Last edited:
Tom.G said:
Log is based on powers of 10
That depends on the context.
In physics it is typically base 10, in mathematics it is usually base e, and in computer science it is base 2.

If you want to make the base clear, use lg (10), ln (e) or ld (2).
 
  • Like
Likes   Reactions: fresh_42
I think ##\log = \ln## became more and more the standard, and ##\ln## is a bit old fashioned. A clear line or convention cannot be drawn as it depends on the author what he uses. If no base is mentioned, I'll always vote for base ##\mathbf{e}##, even in CS, because they vary only by a constant factor which usually doesn't play a role, e.g. in runtime calculations.
 
The base matters if you want to determine e.g. how many bits you need to represent something in binary.
 
mfb said:
The base matters if you want to determine e.g. how many bits you need to represent something in binary.
Yeah, all O(1) to me. :cool:

I must admit it's a bit of a Bill Gates attitude: "I don't care the hardware."
 
  • Like
Likes   Reactions: jbriggs444

Similar threads

  • · Replies 44 ·
2
Replies
44
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K