@@ -16,15 +16,41 @@ public final class math implements Module {
16
16
@ Override
17
17
public void init () {
18
18
Functions .set ("abs" , functionConvert (Math ::abs ));
19
+ Functions .set ("acos" , functionConvert (Math ::acos ));
20
+ Functions .set ("asin" , functionConvert (Math ::asin ));
21
+ Functions .set ("atan" , functionConvert (Math ::atan ));
22
+ Functions .set ("atan2" , biFunctionConvert (Math ::atan2 ));
23
+ Functions .set ("cbrt" , functionConvert (Math ::cbrt ));
24
+ Functions .set ("ceil" , functionConvert (Math ::ceil ));
25
+ Functions .set ("copySign" , biFunctionConvert (Math ::copySign ));
19
26
Functions .set ("cos" , functionConvert (Math ::cos ));
27
+ Functions .set ("cosh" , functionConvert (Math ::cosh ));
28
+ Functions .set ("exp" , functionConvert (Math ::exp ));
29
+ Functions .set ("expm1" , functionConvert (Math ::expm1 ));
30
+ Functions .set ("floor" , functionConvert (Math ::floor ));
31
+ Functions .set ("getExponent" , functionConvert (Math ::getExponent ));
32
+ Functions .set ("hypot" , biFunctionConvert (Math ::hypot ));
33
+ Functions .set ("IEEEremainder" , biFunctionConvert (Math ::IEEEremainder ));
34
+ Functions .set ("log" , functionConvert (Math ::log ));
35
+ Functions .set ("log1p" , functionConvert (Math ::log1p ));
36
+ Functions .set ("log10" , functionConvert (Math ::log10 ));
37
+ Functions .set ("max" , biFunctionConvert (Math ::max ));
38
+ Functions .set ("min" , biFunctionConvert (Math ::min ));
39
+ Functions .set ("nextAfter" , biFunctionConvert (Math ::nextAfter ));
40
+ Functions .set ("nextUp" , functionConvert (Math ::nextUp ));
41
+ Functions .set ("pow" , biFunctionConvert (Math ::pow ));
42
+ Functions .set ("rint" , functionConvert (Math ::rint ));
43
+ Functions .set ("round" , functionConvert (Math ::round ));
44
+ Functions .set ("signum" , functionConvert (Math ::signum ));
20
45
Functions .set ("sin" , functionConvert (Math ::sin ));
46
+ Functions .set ("sinh" , functionConvert (Math ::sinh ));
21
47
Functions .set ("sqrt" , functionConvert (Math ::sqrt ));
48
+ Functions .set ("tan" , functionConvert (Math ::tan ));
49
+ Functions .set ("tanh" , functionConvert (Math ::tanh ));
22
50
Functions .set ("toDegrees" , functionConvert (Math ::toDegrees ));
23
51
Functions .set ("toRadians" , functionConvert (Math ::toRadians ));
24
-
25
- Functions .set ("pow" , biFunctionConvert (Math ::pow ));
26
- Functions .set ("atan2" , biFunctionConvert (Math ::atan2 ));
27
-
52
+ Functions .set ("ulp" , functionConvert (Math ::ulp ));
53
+
28
54
Variables .set ("PI" , new NumberValue (Math .PI ));
29
55
Variables .set ("E" , new NumberValue (Math .E ));
30
56
}
0 commit comments