| Return | Method | Summary |
|---|---|---|
| static double | exp(double a) | Raise to the power of a double value. |
| static double | expm1(double x) | Returns ex -1. |
| static double | pow(double a, double b) | a raised to the power b. |
public class Main {
public static void main(String[] args) {
System.out.println(Math.exp(2));
System.out.println(Math.expm1(2.2));
System.out.println(Math.pow(2,3));
}
}
The output:
7.38905609893065
8.025013499434122
8.0
java2s.com | | Contact Us | Privacy Policy |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |