Search code examples
logarithm

working out logs? (algorithms)


can someone please explain to me, how to work out logs?

e.g. log27 to the power 3 ?

I though the above is 3 because 3x3x3=27 and it takes 3, 3's to make 27. is this correct?


Solution

  • The definition of logarithm states that if logb(x) = y then by = x. This works for real numbers, not just integers.

    In your example, log3(27) = 3, because 33 = 27.

    Or your second example: log3(11) = 2.182658..., because 32.182658... = 11.

    See Wikipedia.