1

When finding the value of log 3 (base) 5 (exponent)

Is it common to use common log / common log ?

If there is another way, please let me know.

Spektre
  • 49,595
  • 11
  • 110
  • 380
baikjh
  • 27
  • 1

2 Answers2

2

Change of base formula

You can use common log / common log.

Míng
  • 2,500
  • 6
  • 32
  • 48
1

yes its common to use

logb(a) = log(a)/log(b)

If you do not have log then you can compute it using binary search x in b^x <= a where x <= logb(a)

there are also other ways for example you can use some kind of series like Taylor, Chebychev or some math identity or fit with curve etc.

Algorithm depends also on targeted domain and also on computing environment. I recommend to see:

especially the links at the end ...

Spektre
  • 49,595
  • 11
  • 110
  • 380