@almadar/evaluator 2.17.1 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -742,6 +742,15 @@ function evalMathCos(args, evaluate2, ctx) {
|
|
|
742
742
|
function evalMathTan(args, evaluate2, ctx) {
|
|
743
743
|
return Math.tan(evaluate2(args[0], ctx));
|
|
744
744
|
}
|
|
745
|
+
function evalMathAsin(args, evaluate2, ctx) {
|
|
746
|
+
return Math.asin(evaluate2(args[0], ctx));
|
|
747
|
+
}
|
|
748
|
+
function evalMathAcos(args, evaluate2, ctx) {
|
|
749
|
+
return Math.acos(evaluate2(args[0], ctx));
|
|
750
|
+
}
|
|
751
|
+
function evalMathAtan(args, evaluate2, ctx) {
|
|
752
|
+
return Math.atan(evaluate2(args[0], ctx));
|
|
753
|
+
}
|
|
745
754
|
function evalMathAtan2(args, evaluate2, ctx) {
|
|
746
755
|
const y = evaluate2(args[0], ctx);
|
|
747
756
|
const x = evaluate2(args[1], ctx);
|
|
@@ -3852,6 +3861,12 @@ var SExpressionEvaluator = class {
|
|
|
3852
3861
|
return evalMathTan(args, evaluate2, ctx);
|
|
3853
3862
|
case "math/atan2":
|
|
3854
3863
|
return evalMathAtan2(args, evaluate2, ctx);
|
|
3864
|
+
case "math/asin":
|
|
3865
|
+
return evalMathAsin(args, evaluate2, ctx);
|
|
3866
|
+
case "math/acos":
|
|
3867
|
+
return evalMathAcos(args, evaluate2, ctx);
|
|
3868
|
+
case "math/atan":
|
|
3869
|
+
return evalMathAtan(args, evaluate2, ctx);
|
|
3855
3870
|
case "math/hypot":
|
|
3856
3871
|
return evalMathHypot(args, evaluate2, ctx);
|
|
3857
3872
|
case "math/deg-rad":
|