I wanted to know if there is a function in java to find the antilogs or I would have to implement it myself? If so, how do I implement it?
Math.exp(x) returns ex.
Example:
public static void main(String[] args) {
System.out.println(Math.log(5)); // prints 1.6094...
System.out.println(Math.exp(1)); // prints 2.7182...
System.out.println(Math.exp(Math.log(5)); // prints 5.0000...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With