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
SUMMARY

The discussion centers on how calculators compute logarithmic values, specifically using the example of solving for x in the equation 3^x = 81. Participants explain that calculators utilize logarithmic identities, such as log_b(y) = x, and numerical methods like Taylor series expansions for functions like ln(1+x) to approximate values. The conversation also touches on the conventions of logarithmic notation, with distinctions made between natural logarithms (ln) and common logarithms (log). The importance of understanding these concepts is emphasized for effective use of calculators in mathematical computations.

PREREQUISITES
  • Understanding of logarithmic functions and identities
  • Familiarity with Taylor series expansions
  • Basic knowledge of calculator functions and capabilities
  • Awareness of mathematical notation conventions (ln vs. log)
NEXT STEPS
  • Study the properties of logarithms and their applications in solving equations
  • Learn about Taylor series and their convergence properties
  • Explore the CORDIC algorithm for efficient computation of trigonometric and logarithmic functions
  • Investigate different logarithmic notations and their usage in various mathematical contexts
USEFUL FOR

Students, educators, and anyone interested in understanding the mathematical principles behind calculator functions, particularly in relation to logarithms and their applications in problem-solving.

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 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
15K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K