Adam Adam - 1 year ago 95
Scala Question

Find the logarithm of a number in Scala

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