public class MathTest public static void main String args double new d

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
public class MathTest {
public static void main(String[] args) {
double[] a = new double[size];
a[0] = Math.pow(5, 9);
a[1] = Math.pow(a[0], (double) 1 / 4);
a[2] = Math.exp(5);
a[3] = Math.round(a[2]);
a[4] = Math.cos(3);
a[5] = Math.signum(a[4]);
a[6] = Math.log10(1000);
a[7] = Math.asin(a[4]);
a[8] = Math.addExact((long) a[0], (long) a[1]);
a[9] = Math.decrementExact((long) a[8]);
for (double d : a)
System.out.println(d);
}
}