blob: 9a4c367a38edd5742c0c5702657d0fb6292353d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
class MathBuiltin
{
static double abs(double x)
{
return Math.abs(x);
}
static double atan(double x)
{
return Math.atan(x);
}
static double atan2(double x, double y)
{
return Math.atan2(x,y);
}
static double cos(double x)
{
return Math.cos(x);
}
static double exp(double x)
{
return Math.exp(x);
}
static double log(double x)
{
return Math.log(x);
}
static double max(double x, double y)
{
return Math.max(x,y);
}
static double min(double x, double y)
{
return Math.min(x,y);
}
static double pow(double x, double y)
{
return Math.pow(x,y);
}
static double sin(double x)
{
return Math.sin(x);
}
static double sqrt(double x)
{
return Math.sqrt(x);
}
static double tan(double x)
{
return Math.tan(x);
}
public static void main(String argv[])
{
double sum = abs (1.0) + atan (1.0) + atan2 (1.0, 1.0) + cos (1.0)
+ exp (1.0) + log(1.0) + max(1.0, 1.0) + min (1.0, 1.0)
+ pow (1.0, 1.0) + sin (1.0) + sqrt(1.0) + tan(1.0);
}
}
|