Binary Representation: Log or Ln?

  • Thread starter Thread starter Dominic M Sangma
  • Start date Start date
  • Tags Tags
    Difference Ln Log
Click For Summary
Logarithms can be based on different bases: log typically refers to base 10, ln refers to base e (approximately 2.71828), and in computer science, log can also refer to base 2. The choice of base often depends on the context, with physics favoring base 10, mathematics leaning towards base e, and computer science sometimes using base 2. It's suggested to clarify the base by using notations like lg for base 10, ln for base e, and ld for base 2. While there is some debate about which base is standard, many prefer using base e for calculations, especially in runtime analysis. Understanding the base is crucial when determining binary representation requirements.
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 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 jbriggs444
Here is a little puzzle from the book 100 Geometric Games by Pierre Berloquin. The side of a small square is one meter long and the side of a larger square one and a half meters long. One vertex of the large square is at the center of the small square. The side of the large square cuts two sides of the small square into one- third parts and two-thirds parts. What is the area where the squares overlap?

Similar threads

  • · Replies 44 ·
2
Replies
44
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 6 ·
Replies
6
Views
5K
Replies
12
Views
2K
Replies
4
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K