Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

What is log ? What does it mean? How does it transform a number?

/I'm a code and see log being used in legacy code I have to change.

Thanks

share|improve this question
    
possible duplicate of Intuitive use of logarithms –  t.b. May 9 '11 at 9:03
1  
Have you tried Google / Wikipedia? en.wikipedia.org/wiki/Logarithm –  Qiaochu Yuan May 9 '11 at 9:06
1  
It would help to have a rough idea what the code does. In software, logs are often used for graphing or scoring for instance. –  Oliver Emberton May 9 '11 at 9:29
add comment

2 Answers

up vote 3 down vote accepted

The base-10 logarithm of a number $x$ is the power that you would need to raise 10 to to get $x$ as a result. For example, since $10^3=1000$, the base-10 logarithm of 1000 is 3.

In general the base-$b$ logarithm of $x$ (written $\log_bx$) is the number you need to raise $b$ to to get $x$. For example, if $b^y=x$ then $\log_bx=y$.

More information: http://en.wikipedia.org/wiki/logarithm

share|improve this answer
add comment

In addition, the logarithm of a number in a given base roughly reflects one less than the number of digits the number has in that base. For example, in base 10, log 100 = 2 (=3-1 digits)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.