3 public static double sqrt(double x
)
5 return java
.lang
.Math
.sqrt(x
);
8 public static double power(double x
, double y
)
10 return java
.lang
.Math
.pow(x
, y
);
13 public static double exp(double x
)
15 return java
.lang
.Math
.exp(x
);
18 public static double ln(double x
)
20 return java
.lang
.Math
.log(x
);
23 public static double log(double x
)
25 return java
.lang
.Math
.log10(x
);
28 public static double round(double x
)
30 return java
.lang
.Math
.round(x
);
33 public static double sin(double x
)
35 return java
.lang
.Math
.sin(x
);
38 public static double cos(double x
)
40 return java
.lang
.Math
.cos(x
);
43 public static double tan(double x
)
45 return java
.lang
.Math
.tan(x
);
48 public static double arcsin(double x
)
50 return java
.lang
.Math
.asin(x
);
53 public static double arccos(double x
)
55 return java
.lang
.Math
.acos(x
);
58 public static double arctan(double x
)
60 return java
.lang
.Math
.atan(x
);
63 public static double arctan2(double y
, double x
)
65 return java
.lang
.Math
.atan2(y
, x
);
68 public static double sinh(double x
)
70 return java
.lang
.Math
.sinh(x
);
73 public static double cosh(double x
)
75 return java
.lang
.Math
.cosh(x
);
78 public static double tanh(double x
)
80 return java
.lang
.Math
.tanh(x
);
83 public static double arcsinh(double x
)
87 return ln(x
+ sqrt(x
* x
+ 1.0));
91 return -ln(-x
+ sqrt(x
* x
+ 1.0));
95 public static double arccosh(double x
)
97 return ln(x
+ sqrt(x
* x
- 1.0));
100 public static double arctanh(double x
)
102 return ln((1.0 + x
) / (1.0 - x
)) / 2.0;