Welcome to Dream.In.Code
Getting Help is Easy!

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




Logarithms, what are they?

2 Pages V  1 2 >  
Reply to this topicStart new topic

Logarithms, what are they?, bitterly confused

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


D.I.C Head

**
Joined: 4 Sep, 2008
Posts: 67


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

Go to the top of the page

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


D.I.C Addict

Group Icon
Joined: 26 Oct, 2007
Posts: 977



Thanked 1 times

Dream Kudos: 250
My Contributions


You do realize this is the wrong forum. Mr Osama?
User is offlineProfile CardPM

Go to the top of the page

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


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,180



Thanked 33 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 online!Profile CardPM

Go to the top of the page

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


C Surfing ∞

Group Icon
Joined: 25 Jan, 2007
Posts: 1,015



Thanked 34 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

Go to the top of the page

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


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,933



Thanked 118 times

Dream Kudos: 8525

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Moved to Computer Science smile.gif
User is offlineProfile CardPM

Go to the top of the page

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


D.I.C Head

**
Joined: 4 Sep, 2008
Posts: 67


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

Go to the top of the page

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


D.I.C Head

**
Joined: 4 Sep, 2008
Posts: 67


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

Go to the top of the page

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


C Surfing ∞

Group Icon
Joined: 25 Jan, 2007
Posts: 1,015



Thanked 34 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

Go to the top of the page

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


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,180



Thanked 33 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 online!Profile CardPM

Go to the top of the page

LowWaterMark
post 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

Go to the top of the page

LowWaterMark
post 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

Go to the top of the page

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


Four-letter word

Group Icon
Joined: 2 Jan, 2006
Posts: 1,177



Thanked 6 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

Go to the top of the page

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 07:29AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month