전.java
Math
public class chp3_10_2 { public static void main(String[] args) { double z1, z2, z3, z4; int x=5, y=3, n=2, c=2; z1 = Math.log(Math.pow(x-y, n)); z2 = Math.abs(Math.pow(x, 2) - Math.pow(y, Math.pow(2, n))); z3 = Math.sqrt(Math.pow(x, 2) - Math.pow(y, 2)); z4 = Math.exp(c * Math.pow(x, 2)); System.out.println(z1); System.out.println(z2); System.out.println(z3); System.out.println(z4); } }
2021. 1. 29. 14:19