I want to do logarithm of any base like log2 or log any other number how can I do that?

Here we go:

It's called the change of base formula, btw.

$$$\frac{\log(n)}{\log(b)}\leftrightarrow\log_b(n)$$$

I want to do logarithm of any base like log2 or log any other number how can I do that?

Here we go:

It's called the change of base formula, btw.

$$$\frac{\log(n)}{\log(b)}\leftrightarrow\log_b(n)$$$