If by ln^2(x), you actually mean ln(ln(x)), this would be Math.log(Math.log(x))
If you mean (ln(x))^2 = ln(x) * ln(x), this would be Math.pow(Math.log(x),2), as a number of people have indicated.
The notation itself can be ambiguous. It would help if we knew the context.
Additionally, in some contexts, log(x) is understood to be the natural log, ln(x). In others, it is understood to be base 2, or even base 10.
0
Featured Post
ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.
One of a set of tools we're offering as a way to say thank you for being a part of the community.