math-exercises 2.2.94 → 2.2.95

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 (171) hide show
  1. package/lib/exercises/math/calcul/fractions/fractionSquare.d.ts.map +1 -1
  2. package/lib/exercises/math/calcul/fractions/fractionSquare.js +2 -1
  3. package/lib/exercises/math/calcul/fractions/fractionsSum.d.ts.map +1 -1
  4. package/lib/exercises/math/calcul/fractions/fractionsSum.js +2 -1
  5. package/lib/exercises/math/calcul/fractions/fractionsSumsMultiplesDenominators.d.ts.map +1 -1
  6. package/lib/exercises/math/calcul/fractions/fractionsSumsMultiplesDenominators.js +2 -1
  7. package/lib/exercises/math/calcul/fractions/fractionsSumsPrimeDenominators.d.ts.map +1 -1
  8. package/lib/exercises/math/calcul/fractions/fractionsSumsPrimeDenominators.js +2 -1
  9. package/lib/exercises/math/calcul/fractions/fractionsSumsSameDenominators.d.ts.map +1 -1
  10. package/lib/exercises/math/calcul/fractions/fractionsSumsSameDenominators.js +2 -1
  11. package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.d.ts.map +1 -1
  12. package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.js +2 -1
  13. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.d.ts.map +1 -1
  14. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.js +0 -4
  15. package/lib/exercises/math/calculLitteral/distributivity/identitiesWithNonIntegers.d.ts.map +1 -1
  16. package/lib/exercises/math/calculLitteral/distributivity/identitiesWithNonIntegers.js +2 -1
  17. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
  18. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.js +2 -1
  19. package/lib/exercises/math/calculLitteral/factorisation/factoByX.d.ts.map +1 -1
  20. package/lib/exercises/math/calculLitteral/factorisation/factoByX.js +2 -1
  21. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
  22. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.js +2 -1
  23. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
  24. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.js +2 -1
  25. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
  26. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.js +2 -1
  27. package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
  28. package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.js +2 -1
  29. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType0.d.ts.map +1 -1
  30. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType0.js +2 -1
  31. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType1.d.ts.map +1 -1
  32. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType1.js +2 -1
  33. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType2.d.ts.map +1 -1
  34. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType2.js +2 -1
  35. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.d.ts.map +1 -1
  36. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.js +2 -1
  37. package/lib/exercises/math/calculLitteral/inequations/squareFunctionInequation.d.ts.map +1 -1
  38. package/lib/exercises/math/calculLitteral/inequations/squareFunctionInequation.js +2 -1
  39. package/lib/exercises/math/derivation/derivative/convexityQuadrinomials.d.ts.map +1 -1
  40. package/lib/exercises/math/derivation/derivative/convexityQuadrinomials.js +2 -1
  41. package/lib/exercises/math/derivation/derivative/expDerivativeFour.d.ts.map +1 -1
  42. package/lib/exercises/math/derivation/derivative/expDerivativeFour.js +2 -1
  43. package/lib/exercises/math/derivation/derivative/expDerivativeThree.d.ts.map +1 -1
  44. package/lib/exercises/math/derivation/derivative/expDerivativeThree.js +2 -1
  45. package/lib/exercises/math/derivation/derivative/lnDerivativeThree.d.ts.map +1 -1
  46. package/lib/exercises/math/derivation/derivative/lnDerivativeThree.js +2 -1
  47. package/lib/exercises/math/derivation/derivative/quotientDerivative.d.ts.map +1 -1
  48. package/lib/exercises/math/derivation/derivative/quotientDerivative.js +2 -1
  49. package/lib/exercises/math/derivation/derivative/rootFunctionDerivative.d.ts.map +1 -1
  50. package/lib/exercises/math/derivation/derivative/rootFunctionDerivative.js +2 -1
  51. package/lib/exercises/math/derivation/derivative/sqrtCompositionDerivation.d.ts.map +1 -1
  52. package/lib/exercises/math/derivation/derivative/sqrtCompositionDerivation.js +2 -1
  53. package/lib/exercises/math/derivation/derivative/thirdDegreeDerivative.d.ts.map +1 -1
  54. package/lib/exercises/math/derivation/derivative/thirdDegreeDerivative.js +2 -1
  55. package/lib/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.d.ts.map +1 -1
  56. package/lib/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.js +2 -1
  57. package/lib/exercises/math/functions/absolute/absolueValueAffineEquation.d.ts.map +1 -1
  58. package/lib/exercises/math/functions/absolute/absolueValueAffineEquation.js +2 -1
  59. package/lib/exercises/math/functions/absolute/absolueValueInequationsSup.d.ts.map +1 -1
  60. package/lib/exercises/math/functions/absolute/absolueValueInequationsSup.js +2 -1
  61. package/lib/exercises/math/functions/absolute/absoluteValueInequations.d.ts.map +1 -1
  62. package/lib/exercises/math/functions/absolute/absoluteValueInequations.js +2 -1
  63. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.d.ts.map +1 -1
  64. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.js +2 -1
  65. package/lib/exercises/math/functions/affines/affineExpressionReading.d.ts.map +1 -1
  66. package/lib/exercises/math/functions/affines/affineExpressionReading.js +2 -1
  67. package/lib/exercises/math/functions/affines/signFunction.d.ts.map +1 -1
  68. package/lib/exercises/math/functions/affines/signFunction.js +2 -1
  69. package/lib/exercises/math/functions/basics/graphicEquation.d.ts.map +1 -1
  70. package/lib/exercises/math/functions/basics/graphicEquation.js +2 -1
  71. package/lib/exercises/math/functions/basics/graphicInequation.d.ts.map +1 -1
  72. package/lib/exercises/math/functions/basics/graphicInequation.js +2 -1
  73. package/lib/exercises/math/functions/basics/graphicInequationAffine.d.ts.map +1 -1
  74. package/lib/exercises/math/functions/basics/graphicInequationAffine.js +2 -1
  75. package/lib/exercises/math/functions/basics/imageFunction.d.ts.map +1 -1
  76. package/lib/exercises/math/functions/basics/imageFunction.js +2 -1
  77. package/lib/exercises/math/functions/basics/twoFunctionsInequation.d.ts.map +1 -1
  78. package/lib/exercises/math/functions/basics/twoFunctionsInequation.js +2 -1
  79. package/lib/exercises/math/functions/exponential/expEquation.d.ts.map +1 -1
  80. package/lib/exercises/math/functions/exponential/expEquation.js +2 -1
  81. package/lib/exercises/math/functions/logarithm/logPowerEquation.d.ts.map +1 -1
  82. package/lib/exercises/math/functions/logarithm/logPowerEquation.js +2 -1
  83. package/lib/exercises/math/functions/sign/affineProductSign.d.ts.map +1 -1
  84. package/lib/exercises/math/functions/sign/affineProductSign.js +2 -1
  85. package/lib/exercises/math/functions/square/squareImageInterval.d.ts.map +1 -1
  86. package/lib/exercises/math/functions/square/squareImageInterval.js +2 -1
  87. package/lib/exercises/math/functions/trinoms/coefficientsIdentification.d.ts.map +1 -1
  88. package/lib/exercises/math/functions/trinoms/coefficientsIdentification.js +2 -1
  89. package/lib/exercises/math/functions/trinoms/secondDegreeInequation.d.ts.map +1 -1
  90. package/lib/exercises/math/functions/trinoms/secondDegreeInequation.js +2 -1
  91. package/lib/exercises/math/functions/trinoms/trinomSignFromRoots.d.ts.map +1 -1
  92. package/lib/exercises/math/functions/trinoms/trinomSignFromRoots.js +2 -1
  93. package/lib/exercises/math/geometry/cartesian/readAbscissOnLine.d.ts.map +1 -1
  94. package/lib/exercises/math/geometry/cartesian/readAbscissOnLine.js +2 -1
  95. package/lib/exercises/math/geometry/cartesian/readAbscissOnSemiLine.d.ts.map +1 -1
  96. package/lib/exercises/math/geometry/cartesian/readAbscissOnSemiLine.js +2 -1
  97. package/lib/exercises/math/geometry/convexity/convexityQuadrinomialsGeo.d.ts.map +1 -1
  98. package/lib/exercises/math/geometry/convexity/convexityQuadrinomialsGeo.js +2 -1
  99. package/lib/exercises/math/geometry/parametric/extractPointFromParametricLine.d.ts.map +1 -1
  100. package/lib/exercises/math/geometry/parametric/extractPointFromParametricLine.js +2 -1
  101. package/lib/exercises/math/geometry/parametric/extractVectorFromParametricLine.d.ts.map +1 -1
  102. package/lib/exercises/math/geometry/parametric/extractVectorFromParametricLine.js +2 -1
  103. package/lib/exercises/math/matrices/matrixInversibilityDomain.d.ts.map +1 -1
  104. package/lib/exercises/math/matrices/matrixInversibilityDomain.js +2 -1
  105. package/lib/exercises/math/percent/index.d.ts +1 -0
  106. package/lib/exercises/math/percent/index.d.ts.map +1 -1
  107. package/lib/exercises/math/percent/index.js +1 -1
  108. package/lib/exercises/math/percent/percentWritings.d.ts.map +1 -1
  109. package/lib/exercises/math/percent/percentWritings.js +10 -1
  110. package/lib/exercises/math/powers/powersMixOperations.d.ts.map +1 -1
  111. package/lib/exercises/math/powers/powersMixOperations.js +2 -1
  112. package/lib/exercises/math/probaStat/probabilityTree.d.ts.map +1 -1
  113. package/lib/exercises/math/probaStat/probabilityTree.js +2 -1
  114. package/lib/exercises/math/sampling/confidenceInterval.d.ts.map +1 -1
  115. package/lib/exercises/math/sampling/confidenceInterval.js +2 -1
  116. package/lib/exercises/math/sampling/fluctuationInterval.d.ts.map +1 -1
  117. package/lib/exercises/math/sampling/fluctuationInterval.js +2 -1
  118. package/lib/exercises/math/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -1
  119. package/lib/exercises/math/sequences/geometric/geometricExplicitFormulaUsage.js +2 -1
  120. package/lib/exercises/math/sets/intervals/inequalityToInterval.d.ts.map +1 -1
  121. package/lib/exercises/math/sets/intervals/inequalityToInterval.js +2 -1
  122. package/lib/exercises/math/sets/intervals/intervalsIntersection.d.ts.map +1 -1
  123. package/lib/exercises/math/sets/intervals/intervalsIntersection.js +2 -1
  124. package/lib/exercises/math/sets/intervals/intervalsUnion.d.ts.map +1 -1
  125. package/lib/exercises/math/sets/intervals/intervalsUnion.js +2 -1
  126. package/lib/exercises/math/trigonometry/degreeToRadians.d.ts.map +1 -1
  127. package/lib/exercises/math/trigonometry/degreeToRadians.js +2 -1
  128. package/lib/exercises/math/trigonometry/mainAngleMeasure.d.ts.map +1 -1
  129. package/lib/exercises/math/trigonometry/mainAngleMeasure.js +2 -1
  130. package/lib/exercises/vea/equationVEA.d.ts.map +1 -1
  131. package/lib/exercises/vea/equationVEA.js +2 -1
  132. package/lib/exercises/vea/rationalVEA.d.ts.map +1 -1
  133. package/lib/exercises/vea/rationalVEA.js +2 -1
  134. package/lib/exercises/vea/sqrtVEA.d.ts.map +1 -1
  135. package/lib/exercises/vea/sqrtVEA.js +2 -1
  136. package/lib/index.d.ts +3 -0
  137. package/lib/index.d.ts.map +1 -1
  138. package/lib/tree/nodes/operators/addNode.d.ts.map +1 -1
  139. package/lib/tree/nodes/operators/addNode.js +1 -1
  140. package/lib/tree/nodes/operators/fractionNode.d.ts.map +1 -1
  141. package/lib/tree/nodes/operators/fractionNode.js +1 -1
  142. package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
  143. package/lib/tree/nodes/operators/multiplyNode.js +1 -1
  144. package/lib/tree/parsers/affineParser.d.ts.map +1 -1
  145. package/lib/tree/parsers/affineParser.js +2 -1
  146. package/lib/tree/parsers/discreteSetParser.d.ts.map +1 -1
  147. package/lib/tree/parsers/discreteSetParser.js +2 -1
  148. package/lib/tree/parsers/equationSolutionParser.d.ts.map +1 -1
  149. package/lib/tree/parsers/equationSolutionParser.js +2 -1
  150. package/lib/tree/parsers/inequationParser.d.ts.map +1 -1
  151. package/lib/tree/parsers/inequationParser.js +2 -1
  152. package/lib/tree/parsers/intervalParser.d.ts.map +1 -1
  153. package/lib/tree/parsers/intervalParser.js +3 -2
  154. package/lib/tree/parsers/latexParser.js +3 -3
  155. package/lib/tree/parsers/monomParser.d.ts.map +1 -1
  156. package/lib/tree/parsers/monomParser.js +2 -1
  157. package/lib/tree/parsers/polynomialParser.d.ts.map +1 -1
  158. package/lib/tree/parsers/polynomialParser.js +2 -1
  159. package/lib/tree/parsers/powerParser.d.ts.map +1 -1
  160. package/lib/tree/parsers/powerParser.js +2 -1
  161. package/lib/tree/parsers/sqrtParser.d.ts.map +1 -1
  162. package/lib/tree/parsers/sqrtParser.js +2 -1
  163. package/lib/tree/parsers/trinomParser.d.ts.map +1 -1
  164. package/lib/tree/parsers/trinomParser.js +2 -1
  165. package/lib/tree/parsers/unionIntervalParser.d.ts.map +1 -1
  166. package/lib/tree/parsers/unionIntervalParser.js +2 -1
  167. package/lib/utils/alea/random.js +1 -1
  168. package/lib/utils/errors/handleVEAError.d.ts +2 -0
  169. package/lib/utils/errors/handleVEAError.d.ts.map +1 -0
  170. package/lib/utils/errors/handleVEAError.js +9 -0
  171. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"fractionSquare.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionSquare.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AA6FF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAiBhD,CAAC"}
1
+ {"version":3,"file":"fractionSquare.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionSquare.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,0BAA0B,CAAC;AAgBlC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AA6FF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAiBhD,CAAC"}
@@ -7,6 +7,7 @@ const rational_1 = require("../../../../math/numbers/rationals/rational");
7
7
  const fractionNode_1 = require("../../../../tree/nodes/operators/fractionNode");
8
8
  const powerNode_1 = require("../../../../tree/nodes/operators/powerNode");
9
9
  const latexParser_1 = require("../../../../tree/parsers/latexParser");
10
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
10
11
  const alignTex_1 = require("../../../../utils/latex/alignTex");
11
12
  const getPropositions = (n, { answer, denum, num }) => {
12
13
  const propositions = [];
@@ -67,7 +68,7 @@ const isAnswerValid = (ans, { answer }) => {
67
68
  return parsed.simplify().toTex() === answer;
68
69
  }
69
70
  catch (err) {
70
- return false;
71
+ return (0, handleVEAError_1.handleVEAError)(err);
71
72
  }
72
73
  };
73
74
  const getFractionSquareQuestion = (ops) => {
@@ -1 +1 @@
1
- {"version":3,"file":"fractionsSum.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsSum.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF,KAAK,OAAO,GAAG;IACb,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAyGF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAgBvD,CAAC"}
1
+ {"version":3,"file":"fractionsSum.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsSum.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF,KAAK,OAAO,GAAG;IACb,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAyGF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAgBvD,CAAC"}
@@ -7,6 +7,7 @@ const rational_1 = require("../../../../math/numbers/rationals/rational");
7
7
  const addNode_1 = require("../../../../tree/nodes/operators/addNode");
8
8
  const rationalParser_1 = require("../../../../tree/parsers/rationalParser");
9
9
  const shuffle_1 = require("../../../../utils/alea/shuffle");
10
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
10
11
  const getInstruction = (identifiers, opts) => {
11
12
  const { rational, rational2 } = identifiers;
12
13
  const rationalObj = new rational_1.Rational(rational[0], rational[1]);
@@ -67,7 +68,7 @@ const isAnswerValid = (ans, { rational, rational2 }, opts) => {
67
68
  return texs.includes(parsed.simplify().toTex());
68
69
  }
69
70
  catch (err) {
70
- return false;
71
+ return (0, handleVEAError_1.handleVEAError)(err);
71
72
  }
72
73
  else
73
74
  return texs.includes(ans);
@@ -1 +1 @@
1
- {"version":3,"file":"fractionsSumsMultiplesDenominators.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsSumsMultiplesDenominators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA2FF,eAAO,MAAM,kCAAkC,EAAE,QAAQ,CAAC,WAAW,CAkBpE,CAAC"}
1
+ {"version":3,"file":"fractionsSumsMultiplesDenominators.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsSumsMultiplesDenominators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA2FF,eAAO,MAAM,kCAAkC,EAAE,QAAQ,CAAC,WAAW,CAkBpE,CAAC"}
@@ -8,6 +8,7 @@ const randint_1 = require("../../../../math/utils/random/randint");
8
8
  const addNode_1 = require("../../../../tree/nodes/operators/addNode");
9
9
  const rationalParser_1 = require("../../../../tree/parsers/rationalParser");
10
10
  const coinFlip_1 = require("../../../../utils/alea/coinFlip");
11
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
11
12
  const getFractionsSumsMultiplesDenominatorsQuestion = (opts) => {
12
13
  let denom1 = (0, randint_1.randint)(2, 10);
13
14
  let denom2 = denom1 * (0, randint_1.randint)(2, 10);
@@ -58,7 +59,7 @@ const isAnswerValid = (ans, { answer, denom1, denom2, num1, num2 }, opts) => {
58
59
  return texs.includes(parsed.simplify().toTex());
59
60
  }
60
61
  catch (err) {
61
- return false;
62
+ return (0, handleVEAError_1.handleVEAError)(err);
62
63
  }
63
64
  }
64
65
  else
@@ -1 +1 @@
1
- {"version":3,"file":"fractionsSumsPrimeDenominators.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsSumsPrimeDenominators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA6FF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAkBhE,CAAC"}
1
+ {"version":3,"file":"fractionsSumsPrimeDenominators.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsSumsPrimeDenominators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA6FF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAkBhE,CAAC"}
@@ -8,6 +8,7 @@ const gcd_1 = require("../../../../math/utils/arithmetic/gcd");
8
8
  const randint_1 = require("../../../../math/utils/random/randint");
9
9
  const addNode_1 = require("../../../../tree/nodes/operators/addNode");
10
10
  const rationalParser_1 = require("../../../../tree/parsers/rationalParser");
11
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
11
12
  const getFractionsSumsPrimeDenominatorsQuestion = (opts) => {
12
13
  const denom1 = (0, randint_1.randint)(2, 13);
13
14
  let denom2 = 0;
@@ -59,7 +60,7 @@ const isAnswerValid = (ans, { answer, denom1, denom2, num1, num2 }, opts) => {
59
60
  return texs.includes(parsed.simplify().toTex());
60
61
  }
61
62
  catch (err) {
62
- return false;
63
+ return (0, handleVEAError_1.handleVEAError)(err);
63
64
  }
64
65
  }
65
66
  else
@@ -1 +1 @@
1
- {"version":3,"file":"fractionsSumsSameDenominators.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsSumsSameDenominators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAgIF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAmB/D,CAAC"}
1
+ {"version":3,"file":"fractionsSumsSameDenominators.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsSumsSameDenominators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AAgBlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAgIF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAmB/D,CAAC"}
@@ -11,6 +11,7 @@ const fractionNode_1 = require("../../../../tree/nodes/operators/fractionNode");
11
11
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
12
12
  const rationalParser_1 = require("../../../../tree/parsers/rationalParser");
13
13
  const operatorComposition_1 = require("../../../../tree/utilities/operatorComposition");
14
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
14
15
  const alignTex_1 = require("../../../../utils/latex/alignTex");
15
16
  const getFractionsSumsSameDenominatorsQuestion = (opts) => {
16
17
  const denom = (0, randint_1.randint)(2, 15);
@@ -85,7 +86,7 @@ const isAnswerValid = (ans, { answer, denom, num1, num2 }, opts) => {
85
86
  return texs.includes(parsed.simplify().toTex());
86
87
  }
87
88
  catch (err) {
88
- return false;
89
+ return (0, handleVEAError_1.handleVEAError)(err);
89
90
  }
90
91
  }
91
92
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"findCoeffInProportionalTableNonIntegers.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAiBT,MAAM,0BAA0B,CAAC;AAiBlC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAyHF,KAAK,OAAO,GAAG;IACb,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAoBF,eAAO,MAAM,uCAAuC,EAAE,QAAQ,CAC5D,WAAW,EACX,OAAO,CAsBR,CAAC"}
1
+ {"version":3,"file":"findCoeffInProportionalTableNonIntegers.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAiBT,MAAM,0BAA0B,CAAC;AAkBlC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAyHF,KAAK,OAAO,GAAG;IACb,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAoBF,eAAO,MAAM,uCAAuC,EAAE,QAAQ,CAC5D,WAAW,EACX,OAAO,CAsBR,CAAC"}
@@ -11,6 +11,7 @@ const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
11
11
  const latexParser_1 = require("../../../../tree/parsers/latexParser");
12
12
  const random_1 = require("../../../../utils/alea/random");
13
13
  const doWhile_1 = require("../../../../utils/doWhile");
14
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
14
15
  const dollarize_1 = require("../../../../utils/latex/dollarize");
15
16
  const mdTable_1 = require("../../../../utils/markdown/mdTable");
16
17
  const getPropositions = (n, { answer, coeffType }) => {
@@ -58,7 +59,7 @@ const isAnswerValid = (ans, { answer }) => {
58
59
  return parsed.simplify().toTex() === answer;
59
60
  }
60
61
  catch (err) {
61
- return false;
62
+ return (0, handleVEAError_1.handleVEAError)(err);
62
63
  }
63
64
  };
64
65
  const getFindCoeffInProportionalTableNonIntegersQuestion = (opts) => {
@@ -1 +1 @@
1
- {"version":3,"file":"doubleDistributivityWithCoeff.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AA4IF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAoB/D,CAAC"}
1
+ {"version":3,"file":"doubleDistributivityWithCoeff.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAyIF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAmB/D,CAAC"}
@@ -89,9 +89,6 @@ const isAnswerValid = (ans, { answer, affine1, affine2, coeff }) => {
89
89
  const answerTree = affine1Obj.times(coeff).multiply(affine2Obj).toTree();
90
90
  return answerTree.toAllValidTexs().includes(ans);
91
91
  };
92
- const isGGBAnswerValid = (ans, { ggbAnswer }) => {
93
- throw Error("GGBVea not implemented");
94
- };
95
92
  exports.doubleDistributivityWithCoeff = {
96
93
  id: "doubleDistributivityWithCoeff",
97
94
  connector: "=",
@@ -104,7 +101,6 @@ exports.doubleDistributivityWithCoeff = {
104
101
  freeTimer: 60,
105
102
  getPropositions,
106
103
  isAnswerValid,
107
- isGGBAnswerValid,
108
104
  subject: "Mathématiques",
109
105
  hasHintAndCorrection: true,
110
106
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"identitiesWithNonIntegers.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/identitiesWithNonIntegers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,0BAA0B,CAAC;AAMlC,OAAO,EAEL,eAAe,EAEhB,MAAM,kCAAkC,CAAC;AAS1C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;CACpB,CAAC;AA2HF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAgB3D,CAAC"}
1
+ {"version":3,"file":"identitiesWithNonIntegers.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/identitiesWithNonIntegers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,0BAA0B,CAAC;AAMlC,OAAO,EAEL,eAAe,EAEhB,MAAM,kCAAkC,CAAC;AAU1C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;CACpB,CAAC;AA2HF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAgB3D,CAAC"}
@@ -14,6 +14,7 @@ const substractNode_1 = require("../../../../tree/nodes/operators/substractNode"
14
14
  const trinomNode_1 = require("../../../../tree/nodes/polynomials/trinomNode");
15
15
  const polynomialParser_1 = require("../../../../tree/parsers/polynomialParser");
16
16
  const random_1 = require("../../../../utils/alea/random");
17
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
17
18
  const getPropositions = (n, { answer, a, b, type }) => {
18
19
  const propositions = [];
19
20
  (0, exercise_1.addValidProp)(propositions, answer);
@@ -79,7 +80,7 @@ const isAnswerValid = (ans, { answer, ...identifiers }) => {
79
80
  .toTex() === answer);
80
81
  }
81
82
  catch (err) {
82
- return false;
83
+ return (0, handleVEAError_1.handleVEAError)(err);
83
84
  }
84
85
  };
85
86
  //type1 (ax+b)^2
@@ -1 +1 @@
1
- {"version":3,"file":"equationSimpleSquare.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/equation/equationSimpleSquare.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AA2BlC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AA+JF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAkBtD,CAAC"}
1
+ {"version":3,"file":"equationSimpleSquare.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/equation/equationSimpleSquare.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AA4BlC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AA+JF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAkBtD,CAAC"}
@@ -15,6 +15,7 @@ const diceFlip_1 = require("../../../../utils/alea/diceFlip");
15
15
  const isInt_1 = require("../../../../utils/isInt");
16
16
  const random_1 = require("../../../../utils/alea/random");
17
17
  const discreteSetParser_1 = require("../../../../tree/parsers/discreteSetParser");
18
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
18
19
  const squares = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map((el) => el ** 2);
19
20
  const higherFactor = (n) => {
20
21
  for (let i = Math.floor(Math.sqrt(n)); i > 0; i--)
@@ -141,7 +142,7 @@ const isAnswerValid = (ans, { answer, randNbr }) => {
141
142
  return "S=" + parsed.simplify().toTex() === answer;
142
143
  }
143
144
  catch (err) {
144
- return false;
145
+ return (0, handleVEAError_1.handleVEAError)(err);
145
146
  }
146
147
  };
147
148
  exports.equationSimpleSquare = {
@@ -1 +1 @@
1
- {"version":3,"file":"factoByX.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoByX.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,0BAA0B,CAAC;AAiBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqJF,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,WAAW,CAiB1C,CAAC"}
1
+ {"version":3,"file":"factoByX.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoByX.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,0BAA0B,CAAC;AAkBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqJF,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,WAAW,CAiB1C,CAAC"}
@@ -11,6 +11,7 @@ const addNode_1 = require("../../../../tree/nodes/operators/addNode");
11
11
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
12
12
  const powerNode_1 = require("../../../../tree/nodes/operators/powerNode");
13
13
  const latexParser_1 = require("../../../../tree/parsers/latexParser");
14
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
14
15
  const alignTex_1 = require("../../../../utils/latex/alignTex");
15
16
  const getPropositions = (n, { answer, ...identifiers }) => {
16
17
  const propositions = [];
@@ -106,7 +107,7 @@ const isAnswerValid = (ans, { answer, ...identifiers }) => {
106
107
  .toTex() === statement.toTex());
107
108
  }
108
109
  catch (err) {
109
- return false;
110
+ return (0, handleVEAError_1.handleVEAError)(err);
110
111
  }
111
112
  };
112
113
  const getFactoByXQuestion = (ops) => {
@@ -1 +1 @@
1
- {"version":3,"file":"factoIdRmq1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AAsBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqIF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAkB7C,CAAC"}
1
+ {"version":3,"file":"factoIdRmq1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AAuBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqIF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAkB7C,CAAC"}
@@ -12,6 +12,7 @@ const powerNode_1 = require("../../../../tree/nodes/operators/powerNode");
12
12
  const alignTex_1 = require("../../../../utils/latex/alignTex");
13
13
  const shuffle_1 = require("../../../../utils/alea/shuffle");
14
14
  const latexParser_1 = require("../../../../tree/parsers/latexParser");
15
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
15
16
  const getStatementNode = (identifiers) => {
16
17
  const affine = new affine_1.Affine(identifiers.a, identifiers.b);
17
18
  const statementTree = affine.multiply(affine).toTree();
@@ -105,7 +106,7 @@ const isAnswerValid = (ans, { answer, a, b }) => {
105
106
  return parsed.simplify().toTex() === answer;
106
107
  }
107
108
  catch (err) {
108
- return false;
109
+ return (0, handleVEAError_1.handleVEAError)(err);
109
110
  }
110
111
  };
111
112
  exports.factoIdRmq1 = {
@@ -1 +1 @@
1
- {"version":3,"file":"factoIdRmq2.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq2.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AAuBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA+HF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAkB7C,CAAC"}
1
+ {"version":3,"file":"factoIdRmq2.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq2.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AAwBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA+HF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAkB7C,CAAC"}
@@ -13,6 +13,7 @@ const substractNode_1 = require("../../../../tree/nodes/operators/substractNode"
13
13
  const alignTex_1 = require("../../../../utils/latex/alignTex");
14
14
  const shuffle_1 = require("../../../../utils/alea/shuffle");
15
15
  const latexParser_1 = require("../../../../tree/parsers/latexParser");
16
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
16
17
  const getInstruction = (identifiers) => {
17
18
  return `Factoriser :
18
19
 
@@ -103,7 +104,7 @@ const isAnswerValid = (ans, { answer, a, b }) => {
103
104
  return parsed.simplify().toTex() === answer;
104
105
  }
105
106
  catch (err) {
106
- return false;
107
+ return (0, handleVEAError_1.handleVEAError)(err);
107
108
  }
108
109
  };
109
110
  exports.factoIdRmq2 = {
@@ -1 +1 @@
1
- {"version":3,"file":"factoIdRmq3.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,0BAA0B,CAAC;AAkBlC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAmKF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAkB7C,CAAC"}
1
+ {"version":3,"file":"factoIdRmq3.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,0BAA0B,CAAC;AAmBlC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAmKF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAkB7C,CAAC"}
@@ -9,6 +9,7 @@ const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
9
9
  const powerNode_1 = require("../../../../tree/nodes/operators/powerNode");
10
10
  const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
11
11
  const latexParser_1 = require("../../../../tree/parsers/latexParser");
12
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
12
13
  const alignTex_1 = require("../../../../utils/latex/alignTex");
13
14
  const getAnswer = (identifiers) => {
14
15
  const affine = new affine_1.Affine(identifiers.affine1Coeffs[1], identifiers.affine1Coeffs[0]);
@@ -112,7 +113,7 @@ const isAnswerValid = (ans, { answer, ...identifiers }) => {
112
113
  .toTex() === getStartStatement(identifiers));
113
114
  }
114
115
  catch (err) {
115
- return false;
116
+ return (0, handleVEAError_1.handleVEAError)(err);
116
117
  }
117
118
  };
118
119
  exports.factoIdRmq3 = {
@@ -1 +1 @@
1
- {"version":3,"file":"factoType1Exercise.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoType1Exercise.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAkBlC;;;GAGG;AACH,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAgKF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAepD,CAAC"}
1
+ {"version":3,"file":"factoType1Exercise.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoType1Exercise.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAmBlC;;;GAGG;AACH,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAgKF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAepD,CAAC"}
@@ -14,6 +14,7 @@ const substractNode_1 = require("../../../../tree/nodes/operators/substractNode"
14
14
  const latexParser_1 = require("../../../../tree/parsers/latexParser");
15
15
  const random_1 = require("../../../../utils/alea/random");
16
16
  const shuffle_1 = require("../../../../utils/alea/shuffle");
17
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
17
18
  const getStatementNode = (identifiers) => {
18
19
  const { affinesCoeffs, operation } = identifiers;
19
20
  const affines = affinesCoeffs.map((coeffs) => new affine_1.Affine(coeffs[1], coeffs[0]));
@@ -118,7 +119,7 @@ const isAnswerValid = (ans, { answer, ...identifiers }) => {
118
119
  return simp.toTex() === answerSimp.toTex();
119
120
  }
120
121
  catch (err) {
121
- return false;
122
+ return (0, handleVEAError_1.handleVEAError)(err);
122
123
  }
123
124
  };
124
125
  exports.factoType1Exercise = {
@@ -1 +1 @@
1
- {"version":3,"file":"firstDegreeInequationsType0.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/inequations/firstDegreeInequationsType0.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAe3C,cAAc;AAEd,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AA6JF,KAAK,OAAO,GAAG;IACb,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC;AAGF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAqBtE,CAAC"}
1
+ {"version":3,"file":"firstDegreeInequationsType0.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/inequations/firstDegreeInequationsType0.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAgB3C,cAAc;AAEd,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AA6JF,KAAK,OAAO,GAAG;IACb,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC;AAGF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAqBtE,CAAC"}
@@ -15,6 +15,7 @@ const inequationParser_1 = require("../../../../tree/parsers/inequationParser");
15
15
  const intervalParser_1 = require("../../../../tree/parsers/intervalParser");
16
16
  const coinFlip_1 = require("../../../../utils/alea/coinFlip");
17
17
  const shuffle_1 = require("../../../../utils/alea/shuffle");
18
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
18
19
  const getHint = (identifiers) => {
19
20
  return `Pour résoudre cette inéquation, il faut isoler $x$ à gauche. Pour cela, il faut effectuer des deux côtés de l'inéquation la bonne opération qui permet de supprimer le terme $${identifiers.b < 0 ? "" : "+"}${identifiers.b}$.`;
20
21
  };
@@ -115,7 +116,7 @@ const isAnswerValid = (ans, { answer, ineqType, b, c }, opts) => {
115
116
  }
116
117
  }
117
118
  catch (err) {
118
- return false;
119
+ return (0, handleVEAError_1.handleVEAError)(err);
119
120
  }
120
121
  };
121
122
  const options = [inequationSolutionFormat_1.inequationSolutionFormat];
@@ -1 +1 @@
1
- {"version":3,"file":"firstDegreeInequationsType1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/inequations/firstDegreeInequationsType1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAc3C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAgLF,KAAK,OAAO,GAAG;IACb,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC;AAGF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAsBtE,CAAC"}
1
+ {"version":3,"file":"firstDegreeInequationsType1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/inequations/firstDegreeInequationsType1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAe3C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAgLF,KAAK,OAAO,GAAG;IACb,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC;AAGF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAsBtE,CAAC"}
@@ -15,6 +15,7 @@ const inequationParser_1 = require("../../../../tree/parsers/inequationParser");
15
15
  const intervalParser_1 = require("../../../../tree/parsers/intervalParser");
16
16
  const coinFlip_1 = require("../../../../utils/alea/coinFlip");
17
17
  const shuffle_1 = require("../../../../utils/alea/shuffle");
18
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
18
19
  /**ax<b */
19
20
  const getHint = (identifiers) => {
20
21
  return `Pour résoudre cette inéquation, il faut isoler $x$ à gauche. Pour cela, il faut effectuer des deux côtés de l'inéquation la bonne opération qui permet de supprimer le facteur $${identifiers.a}$.`;
@@ -124,7 +125,7 @@ const isAnswerValid = (ans, { answer, a, b, ineqType }, opts) => {
124
125
  }
125
126
  }
126
127
  catch (err) {
127
- return false;
128
+ return (0, handleVEAError_1.handleVEAError)(err);
128
129
  }
129
130
  };
130
131
  const options = [inequationSolutionFormat_1.inequationSolutionFormat];
@@ -1 +1 @@
1
- {"version":3,"file":"firstDegreeInequationsType2.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/inequations/firstDegreeInequationsType2.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAW3C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAwIF,KAAK,OAAO,GAAG;IACb,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC;AAGF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAkBtE,CAAC"}
1
+ {"version":3,"file":"firstDegreeInequationsType2.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/inequations/firstDegreeInequationsType2.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAY3C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAwIF,KAAK,OAAO,GAAG;IACb,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC;AAGF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAkBtE,CAAC"}
@@ -14,6 +14,7 @@ const inequationParser_1 = require("../../../../tree/parsers/inequationParser");
14
14
  const intervalParser_1 = require("../../../../tree/parsers/intervalParser");
15
15
  const coinFlip_1 = require("../../../../utils/alea/coinFlip");
16
16
  const shuffle_1 = require("../../../../utils/alea/shuffle");
17
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
17
18
  /**ax+b<c */
18
19
  const getKeys = (identifiers, opts) => {
19
20
  const isInterval = opts?.inequationSolutionFormat === "Intervalle (S = [a;b])";
@@ -99,7 +100,7 @@ const isAnswerValid = (ans, { answer, a, b, c, ineqType }, opts) => {
99
100
  }
100
101
  }
101
102
  catch (err) {
102
- return false;
103
+ return (0, handleVEAError_1.handleVEAError)(err);
103
104
  }
104
105
  };
105
106
  const options = [inequationSolutionFormat_1.inequationSolutionFormat];
@@ -1 +1 @@
1
- {"version":3,"file":"firstDegreeInequationsType3.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAW3C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAmJF,KAAK,OAAO,GAAG;IACb,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC;AAGF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAkBtE,CAAC"}
1
+ {"version":3,"file":"firstDegreeInequationsType3.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAY3C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAmJF,KAAK,OAAO,GAAG;IACb,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC;AAGF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAkBtE,CAAC"}
@@ -14,6 +14,7 @@ const inequationParser_1 = require("../../../../tree/parsers/inequationParser");
14
14
  const intervalParser_1 = require("../../../../tree/parsers/intervalParser");
15
15
  const coinFlip_1 = require("../../../../utils/alea/coinFlip");
16
16
  const shuffle_1 = require("../../../../utils/alea/shuffle");
17
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
17
18
  /**ax+b<cx+d */
18
19
  const getInstruction = (identifiers) => {
19
20
  const { ineqType, a, b, c, d } = identifiers;
@@ -108,7 +109,7 @@ const isAnswerValid = (ans, { answer, a, b, c, d, ineqType }, opts) => {
108
109
  }
109
110
  }
110
111
  catch (err) {
111
- return false;
112
+ return (0, handleVEAError_1.handleVEAError)(err);
112
113
  }
113
114
  };
114
115
  const options = [inequationSolutionFormat_1.inequationSolutionFormat];
@@ -1 +1 @@
1
- {"version":3,"file":"squareFunctionInequation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/inequations/squareFunctionInequation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAe3C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,CAAC;AAqFF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAgB1D,CAAC"}
1
+ {"version":3,"file":"squareFunctionInequation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/inequations/squareFunctionInequation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAgB3C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,CAAC;AAqFF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAgB1D,CAAC"}
@@ -12,6 +12,7 @@ const closure_1 = require("../../../../tree/nodes/sets/closure");
12
12
  const intervalNode_1 = require("../../../../tree/nodes/sets/intervalNode");
13
13
  const unionIntervalParser_1 = require("../../../../tree/parsers/unionIntervalParser");
14
14
  const coinFlip_1 = require("../../../../utils/alea/coinFlip");
15
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
15
16
  const getAnswer = (identifiers) => {
16
17
  const { k, inequationSymbol } = identifiers;
17
18
  const sqrtTree = (0, sqrtNode_1.sqrt)(k).simplify();
@@ -66,7 +67,7 @@ const isAnswerValid = (ans, { answer, k, inequationSymbol }) => {
66
67
  return "S=\\ " + parsed.simplify().toTex() === answer;
67
68
  }
68
69
  catch (err) {
69
- return false;
70
+ return (0, handleVEAError_1.handleVEAError)(err);
70
71
  }
71
72
  };
72
73
  exports.squareFunctionInequation = {
@@ -1 +1 @@
1
- {"version":3,"file":"convexityQuadrinomials.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/convexityQuadrinomials.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAmBlC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAqHF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAcxD,CAAC"}
1
+ {"version":3,"file":"convexityQuadrinomials.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/convexityQuadrinomials.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAoBlC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAqHF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAcxD,CAAC"}
@@ -13,6 +13,7 @@ const closure_1 = require("../../../../tree/nodes/sets/closure");
13
13
  const intervalNode_1 = require("../../../../tree/nodes/sets/intervalNode");
14
14
  const intervalParser_1 = require("../../../../tree/parsers/intervalParser");
15
15
  const coinFlip_1 = require("../../../../utils/alea/coinFlip");
16
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
16
17
  const getConvexityQuadrinomialsQuestion = () => {
17
18
  const quadrinomial = polynomial_1.PolynomialConstructor.randomWithOrder(3);
18
19
  const quadcoeffs = quadrinomial.coefficients;
@@ -68,7 +69,7 @@ const isAnswerValid = (ans, { answer, askConvex, quadcoeffs }) => {
68
69
  return parsed.simplify().toTex() === answer;
69
70
  }
70
71
  catch (err) {
71
- return false;
72
+ return (0, handleVEAError_1.handleVEAError)(err);
72
73
  }
73
74
  };
74
75
  exports.convexityQuadrinomials = {
@@ -1 +1 @@
1
- {"version":3,"file":"expDerivativeFour.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/expDerivativeFour.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AA4EF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAgBnD,CAAC"}
1
+ {"version":3,"file":"expDerivativeFour.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/expDerivativeFour.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AA4EF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAgBnD,CAAC"}
@@ -7,6 +7,7 @@ const affine_1 = require("../../../../math/polynomials/affine");
7
7
  const expNode_1 = require("../../../../tree/nodes/functions/expNode");
8
8
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
9
9
  const latexParser_1 = require("../../../../tree/parsers/latexParser");
10
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
10
11
  const getInstruction = (identifiers) => {
11
12
  const { affine1Coeffs, affine2Coeffs } = identifiers;
12
13
  const affine1 = new affine_1.Affine(affine1Coeffs[1], affine1Coeffs[0]);
@@ -56,7 +57,7 @@ const isAnswerValid = (ans, { answer, affine1Coeffs, affine2Coeffs }) => {
56
57
  return parsed.simplify().toTex() === answer;
57
58
  }
58
59
  catch (err) {
59
- return false;
60
+ return (0, handleVEAError_1.handleVEAError)(err);
60
61
  }
61
62
  };
62
63
  exports.expDerivativeFour = {
@@ -1 +1 @@
1
- {"version":3,"file":"expDerivativeThree.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/expDerivativeThree.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqFF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAepD,CAAC"}
1
+ {"version":3,"file":"expDerivativeThree.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/expDerivativeThree.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqFF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAepD,CAAC"}
@@ -10,6 +10,7 @@ const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
10
10
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
11
11
  const variableNode_1 = require("../../../../tree/nodes/variables/variableNode");
12
12
  const latexParser_1 = require("../../../../tree/parsers/latexParser");
13
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
13
14
  const getInstruction = (identifiers) => {
14
15
  const { a, b } = identifiers;
15
16
  const myfunction = new multiplyNode_1.MultiplyNode(new polynomial_1.Polynomial([b, a]).toTree(), new expNode_1.ExpNode(new variableNode_1.VariableNode("x")));
@@ -56,7 +57,7 @@ const isAnswerValid = (ans, { a, b, answer }) => {
56
57
  return parsed.simplify().toTex() === answer;
57
58
  }
58
59
  catch (err) {
59
- return false;
60
+ return (0, handleVEAError_1.handleVEAError)(err);
60
61
  }
61
62
  };
62
63
  exports.expDerivativeThree = {
@@ -1 +1 @@
1
- {"version":3,"file":"lnDerivativeThree.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/lnDerivativeThree.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA8GF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAgBnD,CAAC"}
1
+ {"version":3,"file":"lnDerivativeThree.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/lnDerivativeThree.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,0BAA0B,CAAC;AAgBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA8GF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAgBnD,CAAC"}
@@ -13,6 +13,7 @@ const fractionNode_1 = require("../../../../tree/nodes/operators/fractionNode");
13
13
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
14
14
  const variableNode_1 = require("../../../../tree/nodes/variables/variableNode");
15
15
  const latexParser_1 = require("../../../../tree/parsers/latexParser");
16
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
16
17
  const getInstruction = (identifiers) => {
17
18
  const { a, b } = identifiers;
18
19
  const affine = new polynomial_1.Polynomial([b, a]).toTree();
@@ -83,7 +84,7 @@ const isAnswerValid = (ans, { a, b, answer }) => {
83
84
  .toTex() === answer);
84
85
  }
85
86
  catch (err) {
86
- return false;
87
+ return (0, handleVEAError_1.handleVEAError)(err);
87
88
  }
88
89
  };
89
90
  exports.lnDerivativeThree = {
@@ -1 +1 @@
1
- {"version":3,"file":"quotientDerivative.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/quotientDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAuGF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAcpD,CAAC"}
1
+ {"version":3,"file":"quotientDerivative.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/quotientDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAuGF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAcpD,CAAC"}
@@ -7,6 +7,7 @@ const polynomial_1 = require("../../../../math/polynomials/polynomial");
7
7
  const fractionNode_1 = require("../../../../tree/nodes/operators/fractionNode");
8
8
  const powerNode_1 = require("../../../../tree/nodes/operators/powerNode");
9
9
  const latexParser_1 = require("../../../../tree/parsers/latexParser");
10
+ const handleVEAError_1 = require("../../../../utils/errors/handleVEAError");
10
11
  const getInstruction = (identifiers) => {
11
12
  const poly1 = new polynomial_1.Polynomial(identifiers.poly1Coeffs);
12
13
  const poly2 = new polynomial_1.Polynomial(identifiers.poly2Coeffs);
@@ -83,7 +84,7 @@ const isAnswerValid = (ans, { answer, poly1Coeffs, poly2Coeffs }) => {
83
84
  return simp === simpAnswer;
84
85
  }
85
86
  catch (err) {
86
- return false;
87
+ return (0, handleVEAError_1.handleVEAError)(err);
87
88
  }
88
89
  };
89
90
  exports.quotientDerivative = {
@@ -1 +1 @@
1
- {"version":3,"file":"rootFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/rootFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,0BAA0B,CAAC;AAmBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA+FF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAmBxD,CAAC"}
1
+ {"version":3,"file":"rootFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/rootFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,0BAA0B,CAAC;AAoBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA+FF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAmBxD,CAAC"}