When you punch in log on your calculator

  • Context: Undergrad 
  • Thread starter Thread starter DB
  • Start date Start date
  • Tags Tags
    Calculator Log
Click For Summary

Discussion Overview

The discussion revolves around the mathematical operations performed by calculators when computing logarithms, particularly focusing on how calculators solve equations involving logarithms and exponentials. Participants explore various methods, approximations, and the underlying mathematics, including infinite series expansions and the definitions of logarithmic functions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant presents the equation \( b^x = y \) and asks how calculators solve for \( x \) when using logarithms.
  • Another participant provides a method using the change of base formula, expressing \( x \) in terms of logarithms of 81 and 3.
  • A different viewpoint suggests that calculators approximate logarithmic values using infinite polynomial expansions, citing examples of series for \( \ln(1+x) \) and \( \sin(x) \).
  • Concerns are raised about the convergence of these series, particularly for values outside the interval (-1, 1), and how this affects calculations for larger numbers.
  • Several participants discuss the notation of logarithms, with some asserting that \( \ln \) denotes the natural logarithm while others argue that \( \log \) can also represent different bases depending on context.
  • There is a mention of the CORDIC algorithm as a potential method used by calculators to compute logarithmic values.

Areas of Agreement / Disagreement

Participants express differing views on the notation and definitions of logarithms, with no consensus on whether \( \log \) should universally denote base \( e \) or base 10. Additionally, there is no agreement on the best method for calculating logarithms or the effectiveness of series expansions for different ranges of \( x \).

Contextual Notes

Participants note limitations in the convergence of series expansions for logarithmic calculations, particularly for values outside the specified range. The discussion also highlights varying conventions in mathematical notation across different educational contexts.

DB
Messages
501
Reaction score
0
b^x=y
log_b(y)=x

When you punch in log on your calculator, mathematically, how is it solving for x?

For example,
3^x=81
log_3(81)=4
How is this being solved?

Thanks
 
Mathematics news on Phys.org
I don't have a calculator where you can define the base like that.

You rewrote the original question that skipped a lot of steps.

I would do the question like this:

3^x = 81
x log(3) = log(81)
x = \frac{log(81)}{log(3)}

I don't know exactly how the calculator evalulates the value, but those are the steps you can take to see a process.
 
I used to ask this question, the answer given to me was "the calculator memorizes the values", this seemed reasonable, but lame.

The truth is that logarithms, sines, cosines, anything, can be expanded as an infinite polynomial. For example:

ln(1+x) = x - (x^2)/2 + (x^3)/3 - (x^4)/4 + ...

sin (x) = x - (x^3)/3! + (x^5)/5! - ...

Where ln is log base e and 5! means 5*4*3*2*1. These series have an infinite number of terms, so the calculator has to cut them off at some point (approximate).
 
Crosson said:
ln(1+x) = x - (x^2)/2 + (x^3)/3 - (x^4)/4 + ...

It has -1 < x < 1 after the expansion in a reference book of mine.

And, yeah, expansions is what caluculators use to find values of a given x.
 
ln(1+x) = x - (x^2)/2 + (x^3)/3 - (x^4)/4 + ...

Generally , this series converges too slowly to be of any use to calculate ln(1+x). Consider if x=100, you would need to calculate zillions of terms in the series for it to be of any use, I'm not even sure it would converge for x>1. Of course if 0<x<1, the series converges quite fast.

Consider the problem of calculating ln(1000), this is how I think your calculator does it.

ln( (1+x)/(1-x) ) = ln(1+x) - ln(1-x)

Set (1+x)/(1-x) = 1000 => x = 999/1001


therefor ln(1+999/1001) - ln(1-999/1001) = log(1000)

Now since you value of x is less than one, your calculator doen't have to use so many terms in the series to calculate an accurate answer, as convergence is acheived quite quickly.
 
Sorry, but wats ln?
 
ln = log to the base e

It's often just denoted log.
 
DeadWolfe said:
It's often just denoted log.

DB, I suggest you memorize this.
 
lol, kk thanks. I know e is approx = 2.17... so I am going to study the posts and see If I can understand, I'll probably have more questions. :rolleyes:
 
  • #10
DB said:
lol, kk thanks. I know e is approx = 2.17... so I am going to study the posts and see If I can understand, I'll probably have more questions. :rolleyes:

The reason I said that is because in calculus you will see ln denoted as log and I think it's pretty safe to say that it's generally accepted like that (I still remember that thread where we had a lengthy discussion about this).

And we're always here whenever you want to ask more questions. :cool:
 
  • #11
I frankly doubt it.I think it should be "ln" everywhere...What about logarithm to the base of 10,how would you write that ...?

Daniel.

P.S.BTW:\ln voilà...
 
  • #12
e=2.7182, not 2.17.
 
  • #13
Not really,it's an transcendental irrational #,therefore
e\approx 2.7183

Daniel.
 
  • #14
Yeah of course, and now I know the Latex code for \approx :)
 
  • #15
dextercioby said:
I frankly doubt it.I think it should be "ln" everywhere...What about logarithm to the base of 10,how would you write that ...?

Maybe like this:

\log_{10}
 
  • #16
Ha,ha,why that way,when log would mean automatically base "e"...?;bugeye:

Daniel.
 
  • #17
I thought \log_{e}{x}=\ln{x}, and \log_{10}{x}=log{x}.
 
  • #18
It would be a good option,however,we in Romania used the best:
\log would mean any base,except "e" & 10.You would have to specify the base as a subscript.E.g. \log_{8\sqrt{7\pi}}
\ln [/itex] would mean base &quot;e&quot;.<br /> \lg [/itex] would mean base 10...&lt;br /&gt; &lt;br /&gt; Daniel.
 
Last edited:
  • #19
What do you know,LATEX recognizes all three notations,hopefully with the definitions that i specified...:wink:

Daniel.
 
  • #20
I'd actually learned it as log being base 10, ln being base e, and lg being base 2...for all those wacky computer scientists, no less. :biggrin:
 
  • #21
I wasn't any "wacky computer scientist",though.I liked this part of mathematics,anyway...

Daniel.
 
  • #22
dextercioby said:
\lg [/itex] would mean base 10...
<br /> <br /> I&#039;ve never seen that before. <br /> <br /> Well, all I know is that all my calculus professors told us that \log means base e and if you wanted it to mean anything else you would have to specify the base.<br /> <br /> On a side note, Mathematica, the program we all know and love, does it that way, too. From it&#039;s help browser it states: &quot;Log[z] gives the natural logarithm of z (logarithm to base e)&quot;.
 
  • #23
Oggy said:
I thought \log_{e}{x}=\ln{x}, and \log_{10}{x}=log{x}.

That is what is taught in high schools.

Among certain groups of people, it is the standard.

Amongst mathematicians, it is not. They use log to indicate a base of e, since it's the log they use the most often. (By FAR! Really. Nothing else really is deserving of comparison.)
 
  • #24
DeadWolfe said:
That is what is taught in high schools.

Among certain groups of people, it is the standard.

Amongst mathematicians, it is not. They use log to indicate a base of e, since it's the log they use the most often. (By FAR! Really. Nothing else really is deserving of comparison.)

I didn't think I was the only one who thought this was the case.
 
  • #25
\ln makes more sense,because it comes from 'logaritmus naturalis' which automatically specifies the base...:wink:
As for mathematicians' notations,well,their definitions are unique,but their notations may vary...

Daniel.
 
  • #26
Of course the natural logarithm is used most often, and \ln the notation I like most for it.
 
  • #27
DB said:
When you punch in log on your calculator, mathematically, how is it solving for x?Thanks

Do a web search on "CORDIC."
 

Similar threads

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