1public class MathDemo
 2{
 3 public static void main(String[] args)
 4 {
 5  System.out.println("abs(-5)="+Math.abs(-5));
 6  System.out.println("max(2.72,3.14)="+Math.max(2.72,3.14));
 7  System.out.println("min(256,286)="+Math.min(256,286));
 8  
 9  System.out.println("round(3.8)="+Math.round(3.8));
10  System.out.println("round(-3.8)="+Math.round(-3.8));
11  
12  System.out.println("sqrt(2)="+Math.sqrt(2));
13  System.out.println("pow(2,3)="+Math.pow(2,3));
14  
15  System.out.println("E="+Math.E);
16  System.out.println("exp(1)="+Math.exp(1));
17  System.out.println("log(e*e*e)="+Math.log((Math.E)*(Math.E)*(Math.E)));
18  
19  System.out.println("ceil(3.14)="+(int)Math.ceil(3.14));
20  System.out.println("floor(3.14)="+(int)Math.floor(3.14));
21  
22  System.out.println("pi="+Math.PI);
23  System.out.println("sin(pi/2)="+Math.sin(Math.PI/2));
24  System.out.println("cos(0)="+Math.cos(0));
25 }

26}