To calculate the logarithm of any base in Java we thus have to use the following method. Log a b log 10 b log 10 a. This function is the equivalent of Mathlog x Mathlog 10.
This relaxation permits better-performing implementations.
Mathmaxxy The Mathmaxxy method can be used to find the highest value of x and y. If the argument is positive infinity then the result is positive infinity. Mathexp It returns E raised to the power of a double value where E is Eulers number and it is approximately equal to 271828. If the argument is NaN or less than zero then the result is NaN.