math-exercises 2.2.90 → 2.2.91

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.
Files changed (75) hide show
  1. package/lib/exercises/math/calculLitteral/equation/choseOperationToSolveEquation.js +13 -6
  2. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
  3. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.js +68 -68
  4. package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
  5. package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.js +59 -22
  6. package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
  7. package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.js +65 -34
  8. package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
  9. package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.js +54 -22
  10. package/lib/exercises/math/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
  11. package/lib/exercises/math/calculLitteral/equation/equationType4Exercise.js +35 -15
  12. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
  13. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.js +51 -29
  14. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType1.d.ts.map +1 -1
  15. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType1.js +48 -21
  16. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType2.d.ts.map +1 -1
  17. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType2.js +44 -22
  18. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType3.d.ts.map +1 -1
  19. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType3.js +22 -8
  20. package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
  21. package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.js +27 -16
  22. package/lib/exercises/math/combinatory/ballsCounting.d.ts.map +1 -1
  23. package/lib/exercises/math/combinatory/ballsCounting.js +44 -18
  24. package/lib/exercises/math/functions/affines/affineAdjustment.d.ts +0 -4
  25. package/lib/exercises/math/functions/affines/affineAdjustment.d.ts.map +1 -1
  26. package/lib/exercises/math/functions/affines/affineAdjustment.js +27 -27
  27. package/lib/exercises/math/functions/affines/affineAdjustmentComplete.d.ts +0 -5
  28. package/lib/exercises/math/functions/affines/affineAdjustmentComplete.d.ts.map +1 -1
  29. package/lib/exercises/math/functions/affines/affineAdjustmentComplete.js +45 -62
  30. package/lib/exercises/math/functions/affines/affineAdjustmentRsquared.d.ts +0 -1
  31. package/lib/exercises/math/functions/affines/affineAdjustmentRsquared.d.ts.map +1 -1
  32. package/lib/exercises/math/functions/affines/affineAdjustmentRsquared.js +32 -48
  33. package/lib/exercises/math/matrices/productCell.js +1 -1
  34. package/lib/exercises/math/probaStat/probaFromTableWithContext.d.ts.map +1 -1
  35. package/lib/exercises/math/probaStat/stats1var/interquartilesList.js +1 -1
  36. package/lib/exercises/math/probaStat/stats1var/interquartilesTable.js +1 -1
  37. package/lib/exercises/math/probaStat/stats1var/standardDeviationList.js +2 -2
  38. package/lib/exercises/math/probaStat/stats1var/standardDeviationTable.js +2 -2
  39. package/lib/exercises/math/probaStat/stats1var/varianceList.js +1 -1
  40. package/lib/exercises/math/probaStat/stats1var/varianceTable.js +1 -1
  41. package/lib/index.d.ts +0 -10
  42. package/lib/index.d.ts.map +1 -1
  43. package/lib/math/geometry/CloudPoints.js +2 -2
  44. package/lib/math/probability/binomial.js +1 -1
  45. package/lib/math/utils/round.d.ts.map +1 -1
  46. package/lib/math/utils/round.js +19 -5
  47. package/lib/math/utils/stats/covariance.d.ts +4 -0
  48. package/lib/math/utils/stats/covariance.d.ts.map +1 -0
  49. package/lib/math/utils/stats/covariance.js +26 -0
  50. package/lib/math/utils/stats/generateAffineCloud.d.ts +5 -0
  51. package/lib/math/utils/stats/generateAffineCloud.d.ts.map +1 -0
  52. package/lib/math/utils/stats/generateAffineCloud.js +23 -0
  53. package/lib/math/utils/stats/leastSquares.d.ts +5 -0
  54. package/lib/math/utils/stats/leastSquares.d.ts.map +1 -0
  55. package/lib/math/utils/stats/leastSquares.js +19 -0
  56. package/lib/math/utils/stats/quartiles.d.ts +3 -0
  57. package/lib/math/utils/stats/quartiles.d.ts.map +1 -0
  58. package/lib/math/utils/stats/quartiles.js +47 -0
  59. package/lib/math/utils/stats/rSquared.d.ts +2 -0
  60. package/lib/math/utils/stats/rSquared.d.ts.map +1 -0
  61. package/lib/math/utils/stats/rSquared.js +17 -0
  62. package/lib/math/utils/stats/standardDeviation.d.ts +3 -0
  63. package/lib/math/utils/stats/standardDeviation.d.ts.map +1 -0
  64. package/lib/math/utils/stats/standardDeviation.js +13 -0
  65. package/lib/math/utils/stats/sum.d.ts +8 -0
  66. package/lib/math/utils/stats/sum.d.ts.map +1 -0
  67. package/lib/math/utils/stats/sum.js +17 -0
  68. package/lib/math/utils/stats/variance.d.ts +5 -0
  69. package/lib/math/utils/stats/variance.d.ts.map +1 -0
  70. package/lib/math/utils/stats/variance.js +35 -0
  71. package/lib/playground.d.ts.map +1 -1
  72. package/lib/tree/nodes/operators/limitNode.d.ts +1 -1
  73. package/lib/tree/parsers/discreteSetParser.d.ts.map +1 -1
  74. package/lib/tree/parsers/discreteSetParser.js +3 -0
  75. package/package.json +1 -1
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.covarianceXY = exports.covXYAsNode = void 0;
4
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
5
+ const addNode_1 = require("../../../tree/nodes/operators/addNode");
6
+ const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
7
+ const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
8
+ const substractNode_1 = require("../../../tree/nodes/operators/substractNode");
9
+ function covXYAsNode(xValues, avgX, yValues, avgY) {
10
+ let node = new multiplyNode_1.MultiplyNode(new substractNode_1.SubstractNode(new numberNode_1.NumberNode(xValues[0]), avgX).simplify(), new substractNode_1.SubstractNode(new numberNode_1.NumberNode(yValues[0]), avgY).simplify()).simplify();
11
+ for (let i = 1; i < xValues.length; i++) {
12
+ node = new addNode_1.AddNode(node, new multiplyNode_1.MultiplyNode(new substractNode_1.SubstractNode(new numberNode_1.NumberNode(xValues[i]), avgX).simplify(), new substractNode_1.SubstractNode(new numberNode_1.NumberNode(yValues[i]), avgY).simplify()).simplify()).simplify();
13
+ }
14
+ return new fractionNode_1.FractionNode(node, new numberNode_1.NumberNode(xValues.length)).simplify();
15
+ }
16
+ exports.covXYAsNode = covXYAsNode;
17
+ function covarianceXY(xValues, avgX, yValues, avgY) {
18
+ const xy = xValues.map((value, index) => {
19
+ return (value - avgX) * (yValues[index] - avgY);
20
+ });
21
+ const covarianceXY = xy.reduce((acc, value) => {
22
+ return acc + value;
23
+ });
24
+ return covarianceXY / xValues.length;
25
+ }
26
+ exports.covarianceXY = covarianceXY;
@@ -0,0 +1,5 @@
1
+ export declare const generateAffineCloud: (n: number) => {
2
+ x: number;
3
+ y: number;
4
+ }[];
5
+ //# sourceMappingURL=generateAffineCloud.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateAffineCloud.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/stats/generateAffineCloud.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,MAAO,MAAM;;;GAiB5C,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateAffineCloud = void 0;
4
+ const randint_1 = require("../random/randint");
5
+ const round_1 = require("../round");
6
+ const generateAffineCloud = (n) => {
7
+ const slope = (0, randint_1.randint)(-500, 500, [0]) / 100;
8
+ const intercept = (0, randint_1.randint)(100, 5000) / 100;
9
+ let data = [];
10
+ let generatedXs = new Set();
11
+ while (data.length < n) {
12
+ let x = (0, randint_1.randint)(1, 100);
13
+ while (generatedXs.has(x)) {
14
+ x = (0, randint_1.randint)(1, 100);
15
+ }
16
+ generatedXs.add(x);
17
+ let noise = Math.random() * 100;
18
+ let y = (0, round_1.round)(slope * x + intercept + noise, 2);
19
+ data.push({ x, y });
20
+ }
21
+ return data;
22
+ };
23
+ exports.generateAffineCloud = generateAffineCloud;
@@ -0,0 +1,5 @@
1
+ export declare const leastSquares: (xValues: number[], yValues: number[]) => {
2
+ a: number;
3
+ b: number;
4
+ };
5
+ //# sourceMappingURL=leastSquares.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leastSquares.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/stats/leastSquares.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,YAAa,MAAM,EAAE,WAAW,MAAM,EAAE;;;CAoBhE,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.leastSquares = void 0;
4
+ const leastSquares = (xValues, yValues) => {
5
+ if (xValues.length !== yValues.length || xValues.length === 0) {
6
+ throw new Error("Les tableaux xValues et yValues doivent avoir la même longueur et ne pas être vides.");
7
+ }
8
+ const n = xValues.length;
9
+ // Calcul des sommes nécessaires
10
+ const sumX = xValues.reduce((acc, x) => acc + x, 0);
11
+ const sumY = yValues.reduce((acc, y) => acc + y, 0);
12
+ const sumXY = xValues.reduce((acc, x, i) => acc + x * yValues[i], 0);
13
+ const sumX2 = xValues.reduce((acc, x) => acc + x * x, 0);
14
+ // Calcul des coefficients de la droite y = ax + b
15
+ const a = (n * sumXY - sumX * sumY) / (n * sumX2 - sumX * sumX);
16
+ const b = (sumY - a * sumX) / n;
17
+ return { a, b }; // Retourne les coefficients
18
+ };
19
+ exports.leastSquares = leastSquares;
@@ -0,0 +1,3 @@
1
+ export declare const firstQuartile: (values: number[], effectifs?: number[]) => number;
2
+ export declare const thirdQuartile: (values: number[], effectifs?: number[]) => number;
3
+ //# sourceMappingURL=quartiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quartiles.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/stats/quartiles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,WAAY,MAAM,EAAE,cAAc,MAAM,EAAE,WAkBnE,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,MAAM,EAAE,cAAc,MAAM,EAAE,WAkBnE,CAAC"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.thirdQuartile = exports.firstQuartile = void 0;
4
+ const firstQuartile = (values, effectifs) => {
5
+ if (!values.length)
6
+ throw Error("Malformed data in firstQuartile");
7
+ if (!effectifs?.length) {
8
+ const N = values.length;
9
+ const rank = Math.ceil(N / 4);
10
+ return values[rank - 1];
11
+ }
12
+ else {
13
+ const N = effectifs.reduce((acc, curr) => acc + curr, 0);
14
+ const rank = Math.ceil(N / 4);
15
+ let s = 0;
16
+ for (let i = 0; i < effectifs.length; i++) {
17
+ s += effectifs[i];
18
+ if (rank <= s) {
19
+ return values[i];
20
+ }
21
+ }
22
+ return values[values.length - 1];
23
+ }
24
+ };
25
+ exports.firstQuartile = firstQuartile;
26
+ const thirdQuartile = (values, effectifs) => {
27
+ if (!values.length)
28
+ throw Error("Malformed data in thirdQuartile");
29
+ if (!effectifs?.length) {
30
+ const N = values.length;
31
+ const rank = Math.ceil((3 * N) / 4);
32
+ return values[rank - 1];
33
+ }
34
+ else {
35
+ const N = effectifs.reduce((acc, curr) => acc + curr, 0);
36
+ const rank = Math.ceil((3 * N) / 4);
37
+ let s = 0;
38
+ for (let i = 0; i < effectifs.length; i++) {
39
+ s += effectifs[i];
40
+ if (rank <= s) {
41
+ return values[i];
42
+ }
43
+ }
44
+ return values[values.length - 1];
45
+ }
46
+ };
47
+ exports.thirdQuartile = thirdQuartile;
@@ -0,0 +1,2 @@
1
+ export declare const rSquared: (xValues: number[], yValues: number[]) => number;
2
+ //# sourceMappingURL=rSquared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rSquared.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/stats/rSquared.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,YAAa,MAAM,EAAE,WAAW,MAAM,EAAE,WAe5D,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rSquared = void 0;
4
+ const rSquared = (xValues, yValues) => {
5
+ const n = xValues.length;
6
+ const sumX = xValues.reduce((acc, x) => acc + x, 0);
7
+ const sumY = yValues.reduce((acc, y) => acc + y, 0);
8
+ const sumXY = xValues.reduce((acc, x, i) => acc + x * yValues[i], 0);
9
+ const sumX2 = xValues.reduce((acc, x) => acc + x * x, 0);
10
+ const sumY2 = yValues.reduce((acc, y) => acc + y * y, 0);
11
+ const numerator = n * sumXY - sumX * sumY;
12
+ const denominator = Math.sqrt((n * sumX2 - sumX * sumX) * (n * sumY2 - sumY * sumY));
13
+ const r = numerator / denominator;
14
+ const rSquared = r * r;
15
+ return rSquared;
16
+ };
17
+ exports.rSquared = rSquared;
@@ -0,0 +1,3 @@
1
+ export declare const standardDeviation: (values: number[]) => number;
2
+ export declare const standardDeviationWithEffectifs: (values: number[], effectifs: number[]) => number;
3
+ //# sourceMappingURL=standardDeviation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standardDeviation.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/stats/standardDeviation.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,WAAY,MAAM,EAAE,WAEjD,CAAC;AACF,eAAO,MAAM,8BAA8B,WACjC,MAAM,EAAE,aACL,MAAM,EAAE,WAGpB,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.standardDeviationWithEffectifs = exports.standardDeviation = void 0;
4
+ const average_1 = require("../../../utils/average");
5
+ const variance_1 = require("./variance");
6
+ const standardDeviation = (values) => {
7
+ return Math.sqrt((0, variance_1.variance)(values, (0, average_1.average)(values)));
8
+ };
9
+ exports.standardDeviation = standardDeviation;
10
+ const standardDeviationWithEffectifs = (values, effectifs) => {
11
+ return Math.sqrt((0, variance_1.varianceWithEffectifs)(values, effectifs));
12
+ };
13
+ exports.standardDeviationWithEffectifs = standardDeviationWithEffectifs;
@@ -0,0 +1,8 @@
1
+ /**
2
+ *
3
+ * @param from included
4
+ * @param to included
5
+ * @param exec
6
+ */
7
+ export declare const sum: (from: number, to: number, exec: (i: number) => number) => number;
8
+ //# sourceMappingURL=sum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sum.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/stats/sum.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,GAAG,SAAU,MAAM,MAAM,MAAM,YAAY,MAAM,KAAK,MAAM,WAMxE,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ * @param from included
5
+ * @param to included
6
+ * @param exec
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.sum = void 0;
10
+ const sum = (from, to, exec) => {
11
+ let sum = 0;
12
+ for (let i = from; i < to + 1; i++) {
13
+ sum += exec(i);
14
+ }
15
+ return sum;
16
+ };
17
+ exports.sum = sum;
@@ -0,0 +1,5 @@
1
+ import { AlgebraicNode } from "../../../tree/nodes/algebraicNode";
2
+ export declare function varianceAsNode(xValues: number[], avgX: AlgebraicNode): AlgebraicNode;
3
+ export declare function variance(xValues: number[], avgX: number): number;
4
+ export declare const varianceWithEffectifs: (values: number[], effectifs: number[]) => number;
5
+ //# sourceMappingURL=variance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variance.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/stats/variance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAO/D,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EAAE,EACjB,IAAI,EAAE,aAAa,GAClB,aAAa,CAgBf;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAQhE;AAED,eAAO,MAAM,qBAAqB,WACxB,MAAM,EAAE,aACL,MAAM,EAAE,WAapB,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.varianceWithEffectifs = exports.variance = exports.varianceAsNode = void 0;
4
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
5
+ const addNode_1 = require("../../../tree/nodes/operators/addNode");
6
+ const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
7
+ const powerNode_1 = require("../../../tree/nodes/operators/powerNode");
8
+ const substractNode_1 = require("../../../tree/nodes/operators/substractNode");
9
+ function varianceAsNode(xValues, avgX) {
10
+ const two = new numberNode_1.NumberNode(2);
11
+ let result = new powerNode_1.PowerNode(new substractNode_1.SubstractNode(new numberNode_1.NumberNode(xValues[0]), avgX).simplify(), two).simplify();
12
+ for (let i = 1; i < xValues.length; i++) {
13
+ result = new addNode_1.AddNode(result, new powerNode_1.PowerNode(new substractNode_1.SubstractNode(new numberNode_1.NumberNode(xValues[i]), avgX).simplify(), two).simplify()).simplify();
14
+ }
15
+ return new fractionNode_1.FractionNode(result, new numberNode_1.NumberNode(xValues.length)).simplify();
16
+ }
17
+ exports.varianceAsNode = varianceAsNode;
18
+ function variance(xValues, avgX) {
19
+ const xPow = xValues.map((value) => {
20
+ return Math.pow(value - avgX, 2);
21
+ });
22
+ const variance = xPow.reduce((acc, value) => {
23
+ return acc + value;
24
+ });
25
+ return variance / xValues.length;
26
+ }
27
+ exports.variance = variance;
28
+ const varianceWithEffectifs = (values, effectifs) => {
29
+ if (!values.length || !effectifs.length || values.length !== effectifs.length)
30
+ throw Error("Malformed data in variance");
31
+ const N = effectifs.reduce((acc, curr) => acc + curr, 0);
32
+ const avg = values.reduce((acc, value, index) => acc + value * effectifs[index], 0) / N;
33
+ return (values.reduce((acc, value, index) => acc + Math.pow(value - avg, 2) * effectifs[index], 0) / N);
34
+ };
35
+ exports.varianceWithEffectifs = varianceWithEffectifs;
@@ -1 +1 @@
1
- {"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../src/playground.ts"],"names":[],"mappings":"AAwDA,eAAO,MAAM,UAAU,YAAW,CAAC"}
1
+ {"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../src/playground.ts"],"names":[],"mappings":"AA0DA,eAAO,MAAM,UAAU,YAAW,CAAC"}
@@ -28,7 +28,7 @@ export declare class LimitNode implements OperatorNode {
28
28
  rightChild: {
29
29
  id: NodeIds;
30
30
  } & Record<string, any>;
31
- from: "-" | "+" | undefined;
31
+ from: "+" | "-" | undefined;
32
32
  };
33
33
  toAllValidTexs(): string[];
34
34
  toTex(opts?: ToTexOptions): string;
@@ -1 +1 @@
1
- {"version":3,"file":"discreteSetParser.d.ts","sourceRoot":"","sources":["../../../src/tree/parsers/discreteSetParser.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,eAAO,MAAM,iBAAiB,QAAS,MAAM,4BAgB5C,CAAC"}
1
+ {"version":3,"file":"discreteSetParser.d.ts","sourceRoot":"","sources":["../../../src/tree/parsers/discreteSetParser.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAY,MAAM,+BAA+B,CAAC;AAI1E,eAAO,MAAM,iBAAiB,QAAS,MAAM,4BAoB5C,CAAC"}
@@ -12,6 +12,9 @@ const discreteSetParser = (str) => {
12
12
  .replace("\\right", "")
13
13
  .replace("\\{", "")
14
14
  .replace("\\}", "");
15
+ if (formated === "\\varnothing") {
16
+ return discreteSetNode_1.EmptySet;
17
+ }
15
18
  const elements = formated.split(";").map((e) => (0, latexParser_1.parseAlgebraic)(e));
16
19
  if (elements.some((e) => !e))
17
20
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-exercises",
3
- "version": "2.2.90",
3
+ "version": "2.2.91",
4
4
  "description": "Math exercises generator for middle school and high school",
5
5
  "main": "lib/index.js",
6
6
  "files": [