School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,007 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,007 people online right now. Registration is fast and FREE... Join Now!




Logarithms, what are they?

 

Logarithms, what are they?, bitterly confused

trotski

16 Sep, 2008 - 03:23 AM
Post #1

D.I.C Head
**

Joined: 4 Sep, 2008
Posts: 146


My Contributions
I was doing Logarithms in school these days. I bet this is the most helpful forum ever on the WWW. I have always been helped. Now, I don't know why we use a calculator for finding the log of a number? Isn't there a formula? Of course, calculator uses a formula. Is this like the periodic table of elements, that each number has its own log? How long can this continue? Do the bases have anything to do with those in decimal, binary, hexadecimal, blah?

Wow, that sure is a fountain of questions, hope one is for answers too, thanks in advance.

User is offlineProfile CardPM
+Quote Post


Mikhail

RE: Logarithms, What Are They?

16 Sep, 2008 - 03:55 AM
Post #2

Infinity ∞
Group Icon

Joined: 26 Oct, 2007
Posts: 1,064



Thanked: 2 times
Dream Kudos: 250
My Contributions
You do realize this is the wrong forum. Mr Osama?
User is offlineProfile CardPM
+Quote Post

Amadeus

RE: Logarithms, What Are They?

16 Sep, 2008 - 04:04 AM
Post #3

g+ + -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 13,284



Thanked: 149 times
Dream Kudos: 25
My Contributions
That is a lot of questions smile.gif I'm afraid I am not able to fully type out an answer at this time, but here are some links to get you started.

http://en.wikipedia.org/wiki/Logarithm

http://www.sosmath.com/algebra/logs/log1/log1.html

http://www.physics.uoguelph.ca/tutorials/LOG/

http://www.purplemath.com/modules/logs.htm
User is offlineProfile CardPM
+Quote Post

AmitTheInfinity

RE: Logarithms, What Are They?

16 Sep, 2008 - 04:07 AM
Post #4

C Surfing ∞
Group Icon

Joined: 25 Jan, 2007
Posts: 1,355



Thanked: 67 times
Dream Kudos: 125
My Contributions
You had few right questions but in a very wrong place [Lounge? that can go to programming help -> Computer Science right? blink.gif ]. So before you get flamed see here . smile.gif

--EDIT--
Amadeus gave more links, consider my post as void and go through his links. smile.gif

This post has been edited by AmitTheInfinity: 16 Sep, 2008 - 04:08 AM
User is offlineProfile CardPM
+Quote Post

PsychoCoder

RE: Logarithms, What Are They?

16 Sep, 2008 - 04:12 AM
Post #5

I Code, Therefore I am
Group Icon

Joined: 26 Jul, 2007
Posts: 14,919



Thanked: 517 times
Dream Kudos: 11525
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

My Contributions
Moved to Computer Science smile.gif
User is offlineProfile CardPM
+Quote Post

trotski

RE: Logarithms, What Are They?

16 Sep, 2008 - 04:44 AM
Post #6

D.I.C Head
**

Joined: 4 Sep, 2008
Posts: 146


My Contributions
QUOTE
You do realize this is the wrong forum. Mr Osama?


Its Usama and not Osama

++ thank you all for these suggestions. I am checking out all these. Also, I put this thread in Caffeine lounge and administrators moved it so I can't help. I have always posted all rubbish in Chit Chat Lounges of forums, may it be go4expert.com / ubuntuforums.org / linuxforums....

Sorry if it was incorrect.
User is offlineProfile CardPM
+Quote Post

trotski

RE: Logarithms, What Are They?

17 Sep, 2008 - 04:25 AM
Post #7

D.I.C Head
**

Joined: 4 Sep, 2008
Posts: 146


My Contributions
... but after searching all trashcans on the net, I have even Googled and I don't get how to find the log of a number without a calculator. Could anybody help me out with a formula?
User is offlineProfile CardPM
+Quote Post

AmitTheInfinity

RE: Logarithms, What Are They?

17 Sep, 2008 - 04:39 AM
Post #8

C Surfing ∞
Group Icon

Joined: 25 Jan, 2007
Posts: 1,355



Thanked: 67 times
Dream Kudos: 125
My Contributions
I am not sure whether you went through detailed contents of the links given in above posts. There are formulas to calculate logs, just find them carefully.
User is offlineProfile CardPM
+Quote Post

Amadeus

RE: Logarithms, What Are They?

17 Sep, 2008 - 05:31 AM
Post #9

g+ + -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 13,284



Thanked: 149 times
Dream Kudos: 25
My Contributions
http://www.math.unc.edu/Faculty/mccombs/we...logsnocalc.html

http://answers.yahoo.com/question/index?qid=1006051509017

http://mathforum.org/library/drmath/view/68387.html

User is offlineProfile CardPM
+Quote Post

LowWaterMark

RE: Logarithms, What Are They?

18 Sep, 2008 - 10:18 PM
Post #10

D.I.C Head
**

Joined: 30 Jul, 2008
Posts: 119



Thanked: 1 times
My Contributions
Logarithms are the exponent you have to raise any given base number to in order to get your number in question. It can be in base 10, commonly referred to as "log", and often the easiest to understand. Computer folks often do well getting the concept in binary, or base 2. Let's try both.

First, base 10, or "log".

100=10^2 therefor log100=2
1000=10^3 therefor log1000=3
1000000=10^6 therefor log1M=6

Now, binary or base 2 logarithms.

256=2^8 therefor log(base 2)256=8
512=2^9 therefor log(base 2)512=9
1024=2^10 therefor log(base 2)1024=10

Let me ask you a question. Log10=log(base 2)2. Given the above description, can you intuit what it is?

Finally, natural logarithms, or ln. People freak at natural logarithms. I've seen strong men cry over natural logarithms. I won't get into how they are derived, but I'll tell you what they do and why they are important. The natural log gives you the time needed to reach a certain level of continuous compounded growth. Period. That's it. This applies identically to decay, which is simply the inverse of growth.

There are two beautifully written pages of a site that describe natural logarithms (ln) better than I ever could. Read them patiently and in the order below:
An Intuitive Guide To Exponential Functions & E
Demystifying the Natural Logarithm (ln)

Hope this helps.

This post has been edited by LowWaterMark: 19 Sep, 2008 - 12:05 AM
User is offlineProfile CardPM
+Quote Post

LowWaterMark

RE: Logarithms, What Are They?

19 Sep, 2008 - 04:47 AM
Post #11

D.I.C Head
**

Joined: 30 Jul, 2008
Posts: 119



Thanked: 1 times
My Contributions
Sorry, one last thing.

When you are comfortable with natural logarithms (ln), and log(base 10), i.e. Log, and play around with getting the ln of a variable and Log of the same variable on either side of the equals sign (=). Move stuff around using the normal rules of exponents until you can see intuitively how Log and ln are related.

Be patient with yourself. It takes a bit to get the "aha" feeling with natural logarithms.
User is offlineProfile CardPM
+Quote Post

Programmist

RE: Logarithms, What Are They?

20 Sep, 2008 - 09:52 PM
Post #12

Slouching towards Bethlehem
Group Icon

Joined: 2 Jan, 2006
Posts: 1,407



Thanked: 28 times
Dream Kudos: 100
Expert In: Java

My Contributions
In computer science log base 2 of X (denoted simple as lg X) is the most common log that you'll be dealing with. For instance, the height of a binary tree can be said to be in the set O(lg n) where n is the number of nodes in the tree. This also comes into play when determining the running time of some recursive algorithms (recurrences). For instance, the running time of the binary search algorithm can be expressed as T(n) = T(n/2) + O(1). It's easy to see that T(n) = O(lg n), as each recursion cuts the problem in half (no need for the master method).
User is offlineProfile CardPM
+Quote Post

trotski

RE: Logarithms, What Are They?

20 Sep, 2008 - 11:01 PM
Post #13

D.I.C Head
**

Joined: 4 Sep, 2008
Posts: 146


My Contributions
QUOTE
Let me ask you a question. Log10=log(base 2)2. Given the above description, can you intuit what it is?


Yes. Log (base x) Y = 1 when x = Y. Naturally if we write in indical form, 2 Power 2 is 1 and 10 power 10 is one. Now my question was, that there are tables and massive books with logs of numbers. If we know how to that manually, we don't need those. When we do "log blah" in calculator, it gives a number that is log of blah. This is base 10 I know. We know these:

log base10 of blah = whatwedontknow. where we know the base and blah. Suppose we do log 7 in calculator. We get 0.84509804. The indical form is:

10 ^ 0.84509804 = 7. But how did the calculator get to find the power? There must be a formula?

What has the calculator done to blah?

This post has been edited by usamamuneeb: 20 Sep, 2008 - 11:12 PM
User is offlineProfile CardPM
+Quote Post

RedSonja

RE: Logarithms, What Are They?

22 Sep, 2008 - 02:59 AM
Post #14

D.I.C Head
Group Icon

Joined: 4 Sep, 2008
Posts: 170



Thanked: 4 times
Dream Kudos: 25
My Contributions
Now I am so old and decrepit that I remember calculating the log of a number at school without a calculator. If my memory is not playing tricks, it was by plugging numbers into a convergent series.

In those days we used logs all the time for multiplying floats and for doing indices. You got the log out of a book; in the same book you could look up arctan and stuff. I think it is still there at the back of the cupboard. Do people still use logs, then? I thought they went out with the slide rule (which also works with logs, doesn't it?).
User is offlineProfile CardPM
+Quote Post

trotski

RE: Logarithms, What Are They?

22 Sep, 2008 - 03:13 AM
Post #15

D.I.C Head
**

Joined: 4 Sep, 2008
Posts: 146


My Contributions
No, I don't have any book and everyone uses calculator. If this is slipping to technical side, then I better close this topic.
User is offlineProfile CardPM
+Quote Post

AdamSpeight2008

RE: Logarithms, What Are They?

22 Sep, 2008 - 04:19 AM
Post #16

The Bandido Coder
Group Icon

Joined: 29 May, 2008
Posts: 2,734



Thanked: 160 times
Dream Kudos: 3925
Expert In: vb.net, LINQ

My Contributions
QUOTE(usamamuneeb @ 17 Sep, 2008 - 01:25 PM) *

... but after searching all trashcans on the net, I have even Googled and I don't get how to find the log of a number without a calculator.

You could use a slide rule.
User is offlineProfile CardPM
+Quote Post

trotski

RE: Logarithms, What Are They?

22 Sep, 2008 - 04:29 AM
Post #17

D.I.C Head
**

Joined: 4 Sep, 2008
Posts: 146


My Contributions
No, I am OK with a calculator. Still, slide rule I have never used one and it won't explain how to find the log manually. So on my part, this topic is closed so I don't slip towards how a slide rule works!!!!!!!! smile.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 07:03AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month