One of the problems people may face in Computer Science, is a CPU only capable of computing a logarithm in one base, say 2, but the need to compute a logarithm in another base, say (e). The way to convert is as follows:

c log_{2}(t) == log_{b}(t)

If (t == b), it follows that:

c log_{2}(b) == log_{b}(b) == 1

Hence,

c = 1 / log_{2}(b)

Dirk

## One thought on “How To Compute a Base-Change in Logarithms”