Dead
[official-gcc.git] / gomp-20050608-branch / libjava / testsuite / libjava.lang / MathBuiltin.java
blob275a086600ab1fdc36945dced75f78bb7759a5d0
1 class MathBuiltin
3 static double abs(double x)
5 return Math.abs(x);
8 static double acos(double x)
10 return Math.acos(x);
13 static double asin(double x)
15 return Math.asin(x);
18 static double atan(double x)
20 return Math.atan(x);
23 static double atan2(double x, double y)
25 return Math.atan2(x,y);
28 static double ceil(double x)
30 return Math.ceil(x);
33 static double cos(double x)
35 return Math.cos(x);
38 static double exp(double x)
40 return Math.exp(x);
43 static double floor(double x)
45 return Math.floor(x);
48 static double log(double x)
50 return Math.log(x);
53 static double max(double x, double y)
55 return Math.max(x,y);
58 static double min(double x, double y)
60 return Math.min(x,y);
63 static double pow(double x, double y)
65 return Math.pow(x,y);
68 static double sin(double x)
70 return Math.sin(x);
73 static double sqrt(double x)
75 return Math.sqrt(x);
78 static double tan(double x)
80 return Math.tan(x);
83 public static void main(String argv[])
85 double sum = abs (1.0) + acos (1.0) + asin (1.0) + atan (1.0)
86 + atan2 (1.0, 1.0) + ceil (1.0) + cos (1.0) + exp (1.0)
87 + floor (1.0) + log(1.0) + max(1.0, 1.0) + min (1.0, 1.0)
88 + pow (1.0, 1.0) + sin (1.0) + sqrt(1.0) + tan(1.0);