Adam - 1 year ago 80

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).

Recommended for you: Get network issues from **WhatsUp Gold**. **Not end users.**

Answer Source

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:

Recommended from our users: **Dynamic Network Monitoring from WhatsUp Gold from IPSwitch**. ** Free Download**