♦ exp() - Math
♣ Example1: exp()
Input:
xxxxxxxxxx
1
public class MyClass {
2
public static void main(String[] args) {
3
4
System.out.println(Math.exp(-3.14/2));
5
6
System.out.println(Math.exp(0));
7
8
System.out.println(Math.exp(3.14/3));
9
10
11
}
12
}
Output:
1
1