public class MathExample {
    public static void main(String[] args) {
        System.out.println("절댓값: " + Math.abs(-10));
        System.out.println("최댓값: " + Math.max(10, 20));
        System.out.println("최솟값: " + Math.min(10, 20));

        System.out.println("사인(90도): " + Math.sin(Math.PI / 2));

        System.out.println("e의 제곱: " + Math.exp(2));
        System.out.println("자연 로그: " + Math.log(Math.E));
        System.out.println("제곱근: " + Math.sqrt(16));
        System.out.println("거듭제곱: " + Math.pow(2, 3));

        System.out.println("올림: " + Math.ceil(2.3));
        System.out.println("내림: " + Math.floor(2.9));
        System.out.println("반올림: " + Math.round(2.5));


        System.out.println("난수: " + Math.random());
    }
}