The Laws of Cryptography:
Logarithms in Java

by Neal R. Wagner

Copyright © 2002 by Neal R. Wagner. All rights reserved.

NOTE: This site is obsolete. See book draft (in PDF):

Java supplies a function to calculate natural logs, base e = 2.718281828459045. To calculate logs to other bases, you need to multiply by a fixed constant: for a log base b multiply by 1/logeb

Revision date: 2002-01-01. (Please use ISO 8601, the International Standard.)