I'm doing some Java code. As far as I can tell, Java only has functions that do natural log and base $10$ log. I have a requirement to specify the base. I've seen that doing $\ln x/ \ln b$ is the same as $\log_b x$.
I've done this and it seems to work. I'd like to better understand why though.