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