When you punch in log on your calculator

In summary, B^x=y and log_B(y)=x are mathematical equations used to solve problems involving logarithms. When using a calculator to find the value of x, the calculator uses a series expansion technique to approximate the answer. The notation "ln" is commonly used to indicate a natural logarithm with base e, while "log" is used to indicate a logarithm with base 10. Mathematicians typically use "log" to denote a logarithm with base e since it is the most commonly used logarithm. The method of solving logarithmic equations can also be found by searching for "CORDIC" on the internet.
  • #1
DB
501
0
[tex]b^x=y[/tex]
[tex]log_b(y)=x[/tex]

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

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

Thanks
 
Mathematics news on Phys.org
  • #2
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:

[tex]3^x = 81[/tex]
[tex]x log(3) = log(81)[/tex]
[tex]x = \frac{log(81)}{log(3)}[/tex]

I don't know exactly how the calculator evalulates the value, but those are the steps you can take to see a process.
 
  • #3
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).
 
  • #4
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.
 
  • #5
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.
 
  • #6
Sorry, but wats ln?
 
  • #7
ln = log to the base e

It's often just denoted log.
 
  • #8
DeadWolfe said:
It's often just denoted log.

DB, I suggest you memorize this.
 
  • #9
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:[itex]\ln [/itex] voilà...
 
  • #12
[tex]e=2.7182[/tex], not [tex]2.17[/tex].
 
  • #13
Not really,it's an transcendental irrational #,therefore
[tex] e\approx 2.7183 [/tex]

Daniel.
 
  • #14
Yeah of course, and now I know the Latex code for [tex]\approx[/tex] :)
 
  • #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:

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

Daniel.
 
  • #17
I thought [tex]\log_{e}{x}=\ln{x}[/tex], and [tex]\log_{10}{x}=log{x}[/tex].
 
  • #18
It would be a good option,however,we in Romania used the best:
[tex] \log [/tex] would mean any base,except "e" & 10.You would have to specify the base as a subscript.E.g. [itex] \log_{8\sqrt{7\pi}} [/itex]
[tex] \ln [/itex] would mean base "e".
[tex] \lg [/itex] would mean base 10...

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:
[tex] \lg [/itex] would mean base 10...

I've never seen that before.

Well, all I know is that all my calculus professors told us that [tex]\log[/tex] means base e and if you wanted it to mean anything else you would have to specify the base.

On a side note, Mathematica, the program we all know and love, does it that way, too. From it's help browser it states: "Log[z] gives the natural logarithm of z (logarithm to base e)".
 
  • #23
Oggy said:
I thought [tex]\log_{e}{x}=\ln{x}[/tex], and [tex]\log_{10}{x}=log{x}[/tex].

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
[itex] \ln [/itex] 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 [tex]\ln[/tex] 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."
 

FAQ: When you punch in log on your calculator

Why do I need to punch in "log" on my calculator?

The "log" function on a calculator is used to find the logarithm of a number. This can be useful in many mathematical calculations involving exponents and powers.

How do I punch in "log" on my calculator?

The exact method of entering the "log" function on a calculator may vary depending on the model. However, generally you can find the "log" button labeled as such or by pressing the "LN" or "LOG" button on your calculator.

What is a logarithm?

A logarithm is the inverse operation of exponentiation. It is used to find the power to which a base number must be raised to equal a given number. For example, the logarithm base 10 of 100 is 2, since 10^2 = 100.

What are the different types of logarithms?

The most common types of logarithms are base 10 (log) and base e (ln). However, there are also logarithms with other bases such as base 2 (log2) or base 3 (log3).

How is the logarithm function useful in science?

The logarithm function is useful in many scientific fields, such as chemistry, physics, and biology. It can be used to solve exponential equations, measure the intensity of earthquakes, and calculate pH levels, among many other applications.

Similar threads

Replies
3
Views
1K
Replies
2
Views
970
Replies
2
Views
11K
Replies
10
Views
2K
Replies
15
Views
3K
Replies
4
Views
996
Replies
5
Views
2K
Replies
1
Views
3K
Back
Top