Adam - 2 months ago 8

Scala Question

How do you find the base y logarithm of a number x in Scala? I have searched the scala.math library and I can't find a way. It seems to have only log10(x) and ln(x).

Answer

This is a maths question :)

```
log<base y>(x) == log10(x)/log10(y) == ln(x)/ln(y)
```

Random link from the web that explains this: