math-exercises 3.0.127 → 3.0.128

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 (187) hide show
  1. package/lib/exercises/math/calcul/arithmetics/isMultipleOrDivisor.d.ts.map +1 -1
  2. package/lib/exercises/math/calcul/arithmetics/isMultipleOrDivisor.js +0 -10
  3. package/lib/exercises/math/calcul/mentalCaluls/mentalProgramSolve.d.ts.map +1 -1
  4. package/lib/exercises/math/calcul/mentalCaluls/mentalProgramSolve.js +14 -4
  5. package/lib/exercises/math/calcul/operations/expressionNature.d.ts.map +1 -1
  6. package/lib/exercises/math/calcul/operations/expressionNature.js +0 -4
  7. package/lib/exercises/math/calcul/ordering/compareA10N.d.ts.map +1 -1
  8. package/lib/exercises/math/calcul/ordering/compareA10N.js +0 -1
  9. package/lib/exercises/math/calcul/ordering/compareABUsingQuotient.d.ts.map +1 -1
  10. package/lib/exercises/math/calcul/ordering/compareABUsingQuotient.js +1 -2
  11. package/lib/exercises/math/calcul/ordering/compareFracABWithFracAPlusCBPlusC.d.ts.map +1 -1
  12. package/lib/exercises/math/calcul/ordering/compareFracABWithFracAPlusCBPlusC.js +0 -1
  13. package/lib/exercises/math/calcul/ordering/compareFracAndDec.d.ts.map +1 -1
  14. package/lib/exercises/math/calcul/ordering/compareFracAndDec.js +0 -1
  15. package/lib/exercises/math/calcul/ordering/compareWithSquareRoots.d.ts.map +1 -1
  16. package/lib/exercises/math/calcul/ordering/compareWithSquareRoots.js +20 -11
  17. package/lib/exercises/math/calcul/ordering/decimalOrdering.d.ts.map +1 -1
  18. package/lib/exercises/math/calcul/ordering/decimalOrdering.js +0 -4
  19. package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.d.ts.map +1 -1
  20. package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.js +0 -4
  21. package/lib/exercises/math/calcul/ordering/integerOrdering.d.ts.map +1 -1
  22. package/lib/exercises/math/calcul/ordering/integerOrdering.js +0 -4
  23. package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.d.ts.map +1 -1
  24. package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.js +0 -1
  25. package/lib/exercises/math/calcul/proportionality/isTableProportional.d.ts.map +1 -1
  26. package/lib/exercises/math/calcul/proportionality/isTableProportional.js +0 -4
  27. package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.d.ts.map +1 -1
  28. package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.js +0 -4
  29. package/lib/exercises/math/calcul/rounding/estimateAroundPow10NTimesAroundPow10N.d.ts.map +1 -1
  30. package/lib/exercises/math/calcul/rounding/estimateAroundPow10NTimesAroundPow10N.js +0 -1
  31. package/lib/exercises/math/calcul/rounding/estimatePow10NPlusPow10MinusN.d.ts.map +1 -1
  32. package/lib/exercises/math/calcul/rounding/estimatePow10NPlusPow10MinusN.js +0 -1
  33. package/lib/exercises/math/calcul/rounding/getPhysicalOrderOfMagnitude.d.ts.map +1 -1
  34. package/lib/exercises/math/calcul/rounding/getPhysicalOrderOfMagnitude.js +28 -14
  35. package/lib/exercises/math/calcul/sign/signFromAx.d.ts.map +1 -1
  36. package/lib/exercises/math/calcul/sign/signFromAx.js +0 -10
  37. package/lib/exercises/math/calculLitteral/equation/equationFromProblem.d.ts.map +1 -1
  38. package/lib/exercises/math/calculLitteral/equation/equationFromProblem.js +6 -7
  39. package/lib/exercises/math/calculLitteral/inequations/isInequalityTrue.d.ts.map +1 -1
  40. package/lib/exercises/math/calculLitteral/inequations/isInequalityTrue.js +0 -10
  41. package/lib/exercises/math/calculLitteral/ordering/compareAMinusB.d.ts.map +1 -1
  42. package/lib/exercises/math/calculLitteral/ordering/compareAMinusB.js +38 -34
  43. package/lib/exercises/math/calculLitteral/ordering/compareFromPiMinusFrac.d.ts.map +1 -1
  44. package/lib/exercises/math/calculLitteral/ordering/compareFromPiMinusFrac.js +0 -1
  45. package/lib/exercises/math/calculLitteral/simplifying/valuateExpression.d.ts.map +1 -1
  46. package/lib/exercises/math/calculLitteral/simplifying/valuateExpression.js +0 -10
  47. package/lib/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.d.ts.map +1 -1
  48. package/lib/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.js +0 -1
  49. package/lib/exercises/math/conversion/kmPerMinToKmPerHourConversion.d.ts.map +1 -1
  50. package/lib/exercises/math/conversion/kmPerMinToKmPerHourConversion.js +0 -1
  51. package/lib/exercises/math/conversion/minutesToHours.d.ts.map +1 -1
  52. package/lib/exercises/math/conversion/minutesToHours.js +0 -1
  53. package/lib/exercises/math/conversion/secondsToHours.d.ts.map +1 -1
  54. package/lib/exercises/math/conversion/secondsToHours.js +0 -1
  55. package/lib/exercises/math/dataRepresentations/compareBoxPlot.d.ts.map +1 -1
  56. package/lib/exercises/math/dataRepresentations/compareBoxPlot.js +0 -1
  57. package/lib/exercises/math/derivation/convexity/convexityQuadrinomials.d.ts.map +1 -1
  58. package/lib/exercises/math/derivation/convexity/convexityQuadrinomials.js +0 -1
  59. package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.d.ts.map +1 -1
  60. package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.js +0 -4
  61. package/lib/exercises/math/functions/affines/affineAdjustmentComplete.d.ts.map +1 -1
  62. package/lib/exercises/math/functions/affines/affineAdjustmentComplete.js +0 -1
  63. package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindX.d.ts.map +1 -1
  64. package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindX.js +0 -1
  65. package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindY.d.ts.map +1 -1
  66. package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindY.js +0 -1
  67. package/lib/exercises/math/functions/affines/drawAffineFromProgCalc.d.ts.map +1 -1
  68. package/lib/exercises/math/functions/affines/recognizeAffineGraph.d.ts.map +1 -1
  69. package/lib/exercises/math/functions/affines/recognizeAffineGraph.js +0 -4
  70. package/lib/exercises/math/functions/basics/coordsOfPointOnCurveFindY.d.ts.map +1 -1
  71. package/lib/exercises/math/functions/basics/coordsOfPointOnCurveFindY.js +0 -1
  72. package/lib/exercises/math/functions/basics/isPointOnFunction.d.ts.map +1 -1
  73. package/lib/exercises/math/functions/basics/isPointOnFunction.js +0 -10
  74. package/lib/exercises/math/functions/basics/signOfFunction.d.ts.map +1 -1
  75. package/lib/exercises/math/functions/basics/signOfFunction.js +0 -10
  76. package/lib/exercises/math/functions/cube/isPointOnCubicFunction.d.ts.map +1 -1
  77. package/lib/exercises/math/functions/cube/isPointOnCubicFunction.js +0 -10
  78. package/lib/exercises/math/functions/exponentials/exponentialsVariations.d.ts.map +1 -1
  79. package/lib/exercises/math/functions/exponentials/exponentialsVariations.js +0 -4
  80. package/lib/exercises/math/functions/inverse/compareInverseValues.d.ts.map +1 -1
  81. package/lib/exercises/math/functions/inverse/compareInverseValues.js +0 -1
  82. package/lib/exercises/math/functions/inverse/isPointOnReciprocalFunction.d.ts.map +1 -1
  83. package/lib/exercises/math/functions/inverse/isPointOnReciprocalFunction.js +0 -10
  84. package/lib/exercises/math/functions/parity/parityFromAlgebra.d.ts.map +1 -1
  85. package/lib/exercises/math/functions/parity/parityFromAlgebra.js +0 -4
  86. package/lib/exercises/math/functions/square/compareSquaredValues.d.ts.map +1 -1
  87. package/lib/exercises/math/functions/square/compareSquaredValues.js +0 -10
  88. package/lib/exercises/math/geometry/convexity/convexityTrinomialsGeo.d.ts.map +1 -1
  89. package/lib/exercises/math/geometry/convexity/convexityTrinomialsGeo.js +0 -4
  90. package/lib/exercises/math/geometry/euclidian/pythagoreOrThales.d.ts.map +1 -1
  91. package/lib/exercises/math/geometry/euclidian/pythagoreOrThales.js +0 -4
  92. package/lib/exercises/math/geometry/lines/isPointOnCartesianLine.d.ts.map +1 -1
  93. package/lib/exercises/math/geometry/lines/isPointOnCartesianLine.js +0 -4
  94. package/lib/exercises/math/geometry/lines/isPointOnLine.d.ts.map +1 -1
  95. package/lib/exercises/math/geometry/lines/isPointOnLine.js +0 -4
  96. package/lib/exercises/math/geometry/lines/linesRelativePositions.d.ts.map +1 -1
  97. package/lib/exercises/math/geometry/lines/linesRelativePositions.js +0 -4
  98. package/lib/exercises/math/geometry/parametric/pointFromParametricLine.d.ts.map +1 -1
  99. package/lib/exercises/math/geometry/parametric/pointFromParametricLine.js +0 -4
  100. package/lib/exercises/math/geometry/pythagore/isTriangleRight.d.ts.map +1 -1
  101. package/lib/exercises/math/geometry/pythagore/isTriangleRight.js +0 -4
  102. package/lib/exercises/math/geometry/quadrilaterals/parallelogramRectangle.d.ts.map +1 -1
  103. package/lib/exercises/math/geometry/quadrilaterals/parallelogramRectangle.js +0 -4
  104. package/lib/exercises/math/geometry/quadrilaterals/parallelogramRhombus.d.ts.map +1 -1
  105. package/lib/exercises/math/geometry/quadrilaterals/parallelogramRhombus.js +0 -4
  106. package/lib/exercises/math/geometry/quadrilaterals/quadrilateralRecognition.d.ts.map +1 -1
  107. package/lib/exercises/math/geometry/quadrilaterals/quadrilateralRecognition.js +0 -4
  108. package/lib/exercises/math/geometry/shapes/basicShapesRecognition.d.ts.map +1 -1
  109. package/lib/exercises/math/geometry/shapes/basicShapesRecognition.js +6 -7
  110. package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromBasis.d.ts.map +1 -1
  111. package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromBasis.js +0 -10
  112. package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromPicture.d.ts.map +1 -1
  113. package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromPicture.js +0 -10
  114. package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.d.ts.map +1 -1
  115. package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.js +0 -4
  116. package/lib/exercises/math/percent/evolutions/findRightCalculForPriceEvolution.d.ts.map +1 -1
  117. package/lib/exercises/math/percent/evolutions/findRightCalculForPriceEvolution.js +0 -4
  118. package/lib/exercises/math/probaStat/basicProbas/mostLeastProbable.d.ts.map +1 -1
  119. package/lib/exercises/math/probaStat/basicProbas/mostLeastProbable.js +0 -10
  120. package/lib/exercises/math/probaStat/checkEquiprobability.d.ts.map +1 -1
  121. package/lib/exercises/math/probaStat/checkEquiprobability.js +0 -10
  122. package/lib/exercises/math/probaStat/conditionalProbaWriteFromFrench.d.ts.map +1 -1
  123. package/lib/exercises/math/probaStat/conditionalProbaWriteFromFrench.js +0 -1
  124. package/lib/exercises/math/probaStat/events/describeEvent.d.ts.map +1 -1
  125. package/lib/exercises/math/probaStat/events/describeEvent.js +0 -10
  126. package/lib/exercises/math/probaStat/events/eventNotation.d.ts.map +1 -1
  127. package/lib/exercises/math/probaStat/events/eventNotation.js +0 -10
  128. package/lib/exercises/math/probaStat/stats1var/compareSeriesDispersion.d.ts.map +1 -1
  129. package/lib/exercises/math/probaStat/stats1var/compareSeriesDispersion.js +0 -4
  130. package/lib/exercises/math/probaStat/stats1var/getQuartileProportionQuestion.d.ts.map +1 -1
  131. package/lib/exercises/math/probaStat/stats1var/getQuartileProportionQuestion.js +0 -10
  132. package/lib/exercises/math/probaStat/stats2var/fineAdjustementExercise.d.ts.map +1 -1
  133. package/lib/exercises/math/probaStat/stats2var/fineAdjustementExercise.js +0 -4
  134. package/lib/exercises/math/python/pythonForLoopInstructionCompletion.d.ts.map +1 -1
  135. package/lib/exercises/math/python/pythonForLoopInstructionCompletion.js +0 -10
  136. package/lib/exercises/math/python/pythonIfStatementCompletion.d.ts.map +1 -1
  137. package/lib/exercises/math/python/pythonIfStatementCompletion.js +7 -8
  138. package/lib/exercises/math/python/pythonSimpleFunctionInstructionCompletion.d.ts.map +1 -1
  139. package/lib/exercises/math/python/pythonSimpleFunctionInstructionCompletion.js +0 -10
  140. package/lib/exercises/math/python/pythonWhileStatementCompletion.d.ts.map +1 -1
  141. package/lib/exercises/math/python/pythonWhileStatementCompletion.js +5 -6
  142. package/lib/exercises/math/python/pythonWhileStatementOperationCompletion.d.ts.map +1 -1
  143. package/lib/exercises/math/python/pythonWhileStatementOperationCompletion.js +5 -6
  144. package/lib/exercises/math/python/variableType.d.ts.map +1 -1
  145. package/lib/exercises/math/python/variableType.js +0 -10
  146. package/lib/exercises/math/sampling/isSamplingRepresentative.d.ts.map +1 -1
  147. package/lib/exercises/math/sampling/isSamplingRepresentative.js +0 -4
  148. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.d.ts.map +1 -1
  149. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.js +0 -4
  150. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.d.ts.map +1 -1
  151. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +0 -4
  152. package/lib/exercises/math/sequences/geometric/geometricVariations.d.ts.map +1 -1
  153. package/lib/exercises/math/sequences/geometric/geometricVariations.js +0 -4
  154. package/lib/exercises/math/sets/intervals/isNumberInInterval.d.ts.map +1 -1
  155. package/lib/exercises/math/sets/intervals/isNumberInInterval.js +0 -10
  156. package/lib/exercises/math/sets/isNumberDecimal.d.ts.map +1 -1
  157. package/lib/exercises/math/sets/isNumberDecimal.js +0 -10
  158. package/lib/exercises/math/sets/nameOfNumberSets.d.ts.map +1 -1
  159. package/lib/exercises/math/sets/nameOfNumberSets.js +0 -10
  160. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.d.ts.map +1 -1
  161. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.js +0 -1
  162. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.d.ts.map +1 -1
  163. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.js +0 -4
  164. package/lib/exercises/pc/chemicalReactions/identifyLimitingReagent.d.ts.map +1 -1
  165. package/lib/exercises/pc/chemicalReactions/identifyLimitingReagent.js +0 -4
  166. package/lib/exercises/pc/chemicalReactions/identifyStoichiometricMixture.d.ts.map +1 -1
  167. package/lib/exercises/pc/chemicalReactions/identifyStoichiometricMixture.js +0 -4
  168. package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.d.ts.map +1 -1
  169. package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.js +0 -4
  170. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.d.ts.map +1 -1
  171. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.js +0 -4
  172. package/lib/exercises/pc/moleculeNomenclature.d.ts.map +1 -1
  173. package/lib/exercises/pc/moleculeNomenclature.js +0 -4
  174. package/lib/exercises/pc/motion/motionReference.d.ts.map +1 -1
  175. package/lib/exercises/pc/motion/motionReference.js +0 -4
  176. package/lib/exercises/pc/motion/typeOfAcceleration.d.ts.map +1 -1
  177. package/lib/exercises/pc/motion/typeOfAcceleration.js +0 -4
  178. package/lib/exercises/pc/sound/frequencyComparison.d.ts.map +1 -1
  179. package/lib/exercises/pc/sound/frequencyComparison.js +0 -4
  180. package/lib/math/progCalc/progCalc.d.ts +3 -3
  181. package/lib/math/progCalc/progCalc.d.ts.map +1 -1
  182. package/lib/math/progCalc/progCalc.js +13 -3
  183. package/lib/tests/exoTest.d.ts.map +1 -1
  184. package/lib/tests/exoTest.js +7 -0
  185. package/lib/tests/questionTest.d.ts.map +1 -1
  186. package/lib/tests/questionTest.js +3 -2
  187. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"compareAMinusB.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/ordering/compareAMinusB.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AA+LF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAgBhD,CAAC"}
1
+ {"version":3,"file":"compareAMinusB.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/ordering/compareAMinusB.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAyMF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAchD,CAAC"}
@@ -2,6 +2,7 @@ import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../../exer
2
2
  import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { coinFlip } from "../../../../utils/alea/coinFlip.js";
4
4
  import { random, randomMany } from "../../../../utils/alea/random.js";
5
+ import { shuffle } from "../../../../utils/alea/shuffle.js";
5
6
  const getInstruction = (identifiers) => {
6
7
  const { names, texInstruction } = identifiers;
7
8
  return `Si $${names[0]}$ et $${names[1]}$ sont deux nombres tels que
@@ -43,24 +44,28 @@ $$
43
44
  };
44
45
  const getPropositions = (n, { names, texsAnswer }) => {
45
46
  const propositions = [];
46
- texsAnswer.forEach((tex) => {
47
- addValidProp(propositions, tex);
48
- });
49
- const invalidProps = [
50
- `${names[0]} < ${names[1]}`,
51
- `${names[0]} > ${names[1]}`,
52
- `${names[0]} \\leq ${names[1]}`,
53
- `${names[0]} \\geq ${names[1]}`,
54
- `${names[1]} < ${names[0]}`,
55
- `${names[1]} > ${names[0]}`,
56
- `${names[1]} \\leq ${names[0]}`,
57
- `${names[1]} \\geq ${names[0]}`,
58
- ].filter((tex) => !texsAnswer.includes(tex));
47
+ const validSample = shuffle(texsAnswer)[0];
48
+ addValidProp(propositions, validSample);
49
+ const allPossibleProps = [
50
+ `${names[0]}<${names[1]}`,
51
+ `${names[0]}>${names[1]}`,
52
+ `${names[0]}\\le ${names[1]}`,
53
+ `${names[0]}\\ge ${names[1]}`,
54
+ `${names[1]}<${names[0]}`,
55
+ `${names[1]}>${names[0]}`,
56
+ `${names[1]}\\le ${names[0]}`,
57
+ `${names[1]}\\ge ${names[0]}`,
58
+ ];
59
+ const invalidProps = allPossibleProps.filter((tex) => !texsAnswer.includes(tex));
59
60
  invalidProps.forEach((tex) => {
60
61
  tryToAddWrongProp(propositions, tex);
61
62
  });
62
63
  return shuffleProps(propositions, n);
63
64
  };
65
+ const getAnswer = (identifiers) => {
66
+ const { texsAnswer } = identifiers;
67
+ return texsAnswer[0];
68
+ };
64
69
  const isAnswerValid = (ans, { texsAnswer }) => {
65
70
  return texsAnswer.includes(ans);
66
71
  };
@@ -75,13 +80,13 @@ const getCompareAMinusBQuestion = () => {
75
80
  texsObjectArray = [
76
81
  {
77
82
  texInstruction: `x - y < 0`,
78
- texsCorrection: [`x < y`, `x \\leq y`],
79
- texsAnswer: [`x < y`, `x \\leq y`, `y > x`, `y \\geq x`],
83
+ texsCorrection: [`x<y`, `x\\le y`],
84
+ texsAnswer: [`x<y`, `x\\le y`, `y>x`, `y\\ge x`],
80
85
  },
81
86
  {
82
87
  texInstruction: `0 > x - y`,
83
- texsCorrection: [`y > x`, `y \\geq x`],
84
- texsAnswer: [`x < y`, `x \\leq y`, `y > x`, `y \\geq x`],
88
+ texsCorrection: [`y>x`, `y\\ge x`],
89
+ texsAnswer: [`x<y`, `x\\le y`, `y>x`, `y\\ge x`],
85
90
  },
86
91
  ];
87
92
  }
@@ -91,13 +96,13 @@ const getCompareAMinusBQuestion = () => {
91
96
  texsObjectArray = [
92
97
  {
93
98
  texInstruction: `x - y > 0`,
94
- texsCorrection: [`x > y`, `x \\geq y`],
95
- texsAnswer: [`x > y`, `x \\geq y`, `y < x`, `y \\leq x`],
99
+ texsCorrection: [`x>y`, `x\\ge y`],
100
+ texsAnswer: [`x>y`, `x\\ge y`, `y<x`, `y\\le x`],
96
101
  },
97
102
  {
98
103
  texInstruction: `0 < x - y`,
99
- texsCorrection: [`y < x`, `y \\leq x`],
100
- texsAnswer: [`x > y`, `x \\geq y`, `y < x`, `y \\leq x`],
104
+ texsCorrection: [`y<x`, `y\\le x`],
105
+ texsAnswer: [`x>y`, `x\\ge y`, `y<x`, `y\\le x`],
101
106
  },
102
107
  ];
103
108
  }
@@ -106,14 +111,14 @@ const getCompareAMinusBQuestion = () => {
106
111
  {
107
112
  texsObjectArray = [
108
113
  {
109
- texInstruction: `x - y \\leq 0`,
110
- texsCorrection: [`x \\leq y`],
111
- texsAnswer: [`x \\leq y`, `y \\geq x`],
114
+ texInstruction: `x - y \\le 0`,
115
+ texsCorrection: [`x\\le y`],
116
+ texsAnswer: [`x\\le y`, `y\\ge x`],
112
117
  },
113
118
  {
114
- texInstruction: `0 \\geq x - y`,
115
- texsCorrection: [`y \\geq x`],
116
- texsAnswer: [`x \\leq y`, `y \\geq x`],
119
+ texInstruction: `0 \\ge x - y`,
120
+ texsCorrection: [`y\\ge x`],
121
+ texsAnswer: [`x\\le y`, `y\\ge x`],
117
122
  },
118
123
  ];
119
124
  }
@@ -122,14 +127,14 @@ const getCompareAMinusBQuestion = () => {
122
127
  {
123
128
  texsObjectArray = [
124
129
  {
125
- texInstruction: `x - y \\geq 0`,
126
- texsCorrection: [`x \\geq y`],
127
- texsAnswer: [`x \\geq y`, `y \\leq x`],
130
+ texInstruction: `x - y \\ge 0`,
131
+ texsCorrection: [`x\\ge y`],
132
+ texsAnswer: [`x\\ge y`, `y\\le x`],
128
133
  },
129
134
  {
130
135
  texInstruction: `0 \\leq x - y`,
131
- texsCorrection: [`y \\leq x`],
132
- texsAnswer: [`x \\geq y`, `y \\leq x`],
136
+ texsCorrection: [`y\\le x`],
137
+ texsAnswer: [`x\\ge y`, `y\\le x`],
133
138
  },
134
139
  ];
135
140
  }
@@ -152,6 +157,7 @@ const getCompareAMinusBQuestion = () => {
152
157
  };
153
158
  const getQuestionFromIdentifiers = (identifiers, opts) => {
154
159
  const question = {
160
+ answer: getAnswer(identifiers),
155
161
  instruction: getInstruction(identifiers),
156
162
  keys: ["inf", "sup", "leq", "geq", ...identifiers.names],
157
163
  answerFormat: "tex",
@@ -175,6 +181,4 @@ export const compareAMinusB = {
175
181
  maxAllowedQuestions: 30,
176
182
  getQuestionFromIdentifiers,
177
183
  hasHintAndCorrection: true,
178
- answerType: "QCM",
179
- isQCM: true,
180
184
  };
@@ -1 +1 @@
1
- {"version":3,"file":"compareFromPiMinusFrac.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/ordering/compareFromPiMinusFrac.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAmJF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAgBxD,CAAC"}
1
+ {"version":3,"file":"compareFromPiMinusFrac.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/ordering/compareFromPiMinusFrac.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAmJF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAexD,CAAC"}
@@ -139,6 +139,5 @@ export const compareFromPiMinusFrac = {
139
139
  subject: "Mathématiques",
140
140
  maxAllowedQuestions: 30,
141
141
  getQuestionFromIdentifiers,
142
- answerType: "QCU",
143
142
  hasHintAndCorrection: true,
144
143
  };
@@ -1 +1 @@
1
- {"version":3,"file":"valuateExpression.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/simplifying/valuateExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAgHF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAkBnD,CAAC"}
1
+ {"version":3,"file":"valuateExpression.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/simplifying/valuateExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAyGF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAiBnD,CAAC"}
@@ -5,7 +5,6 @@ import { add } from "../../../../tree/nodes/operators/addNode.js";
5
5
  import { power } from "../../../../tree/nodes/operators/powerNode.js";
6
6
  import { monom } from "../../../../tree/nodes/polynomials/monomNode.js";
7
7
  import { coinFlip } from "../../../../utils/alea/coinFlip.js";
8
- import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
9
8
  const getExpression = (identifiers) => {
10
9
  const { a, b, monomFirst } = identifiers;
11
10
  return add(monomFirst ? monom(a, 1) : b, monomFirst ? b : monom(a, 1));
@@ -53,14 +52,6 @@ $$`;
53
52
  const getKeys = () => {
54
53
  return [];
55
54
  };
56
- const isAnswerValid = () => {
57
- try {
58
- throw Error("VEA not implemented");
59
- }
60
- catch (err) {
61
- return handleVEAError(err);
62
- }
63
- };
64
55
  const getValuateExpressionQuestion = () => {
65
56
  const a = randint(-9, 10, [0, 1, -1]);
66
57
  const b = randint(-9, 10, [0]);
@@ -93,7 +84,6 @@ export const valuateExpression = {
93
84
  qcmTimer: 60,
94
85
  freeTimer: 60,
95
86
  getPropositions,
96
- isAnswerValid,
97
87
  subject: "Mathématiques",
98
88
  getInstruction,
99
89
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"writeLitExpFromFrenchExp.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAmCrC,KAAK,QAAQ,GACT,UAAU,GACV,SAAS,GACT,KAAK,GACL,UAAU,GACV,UAAU,GACV,QAAQ,CAAC;AAoEb,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,QAAQ,CAAC;IACvB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAC/B,wBAAwB,EAAE,OAAO,CAAC;CACnC,CAAC;AAuRF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAmBxD,CAAC"}
1
+ {"version":3,"file":"writeLitExpFromFrenchExp.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAmCrC,KAAK,QAAQ,GACT,UAAU,GACV,SAAS,GACT,KAAK,GACL,UAAU,GACV,UAAU,GACV,QAAQ,CAAC;AAoEb,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,QAAQ,CAAC;IACvB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAC/B,wBAAwB,EAAE,OAAO,CAAC;CACnC,CAAC;AAuRF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAkBxD,CAAC"}
@@ -327,5 +327,4 @@ export const writeLitExprFromFrench = {
327
327
  getAnswer,
328
328
  getQuestionFromIdentifiers,
329
329
  hasHintAndCorrection: true,
330
- answerType: "QCU",
331
330
  };
@@ -1 +1 @@
1
- {"version":3,"file":"kmPerMinToKmPerHourConversion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/conversion/kmPerMinToKmPerHourConversion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAiBT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AA2IF,KAAK,OAAO,GAAG;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAgBF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAqBxE,CAAC"}
1
+ {"version":3,"file":"kmPerMinToKmPerHourConversion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/conversion/kmPerMinToKmPerHourConversion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAiBT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AA2IF,KAAK,OAAO,GAAG;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAgBF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAoBxE,CAAC"}
@@ -112,5 +112,4 @@ export const kmPerMinToKmPerHourConversion = {
112
112
  getQuestionFromIdentifiers,
113
113
  hasHintAndCorrection: true,
114
114
  shouldHaveCalculator: true,
115
- answerType: "QCU",
116
115
  };
@@ -1 +1 @@
1
- {"version":3,"file":"minutesToHours.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/conversion/minutesToHours.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAQ7C,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,eAAe,CAAC;IAChC,YAAY,EAAE,eAAe,CAAC;CAC/B,CAAC;AA2LF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAgBhD,CAAC"}
1
+ {"version":3,"file":"minutesToHours.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/conversion/minutesToHours.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAQ7C,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,eAAe,CAAC;IAChC,YAAY,EAAE,eAAe,CAAC;CAC/B,CAAC;AA2LF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAehD,CAAC"}
@@ -146,5 +146,4 @@ export const minutesToHours = {
146
146
  getQuestionFromIdentifiers,
147
147
  hasHintAndCorrection: true,
148
148
  shouldHaveCalculator: true,
149
- answerType: "QCU",
150
149
  };
@@ -1 +1 @@
1
- {"version":3,"file":"secondsToHours.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/conversion/secondsToHours.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAQ7C,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,eAAe,CAAC;IAChC,YAAY,EAAE,eAAe,CAAC;CAC/B,CAAC;AA2LF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAiBhD,CAAC"}
1
+ {"version":3,"file":"secondsToHours.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/conversion/secondsToHours.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAQ7C,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,eAAe,CAAC;IAChC,YAAY,EAAE,eAAe,CAAC;CAC/B,CAAC;AA2LF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAgBhD,CAAC"}
@@ -146,5 +146,4 @@ export const secondsToHours = {
146
146
  getQuestionFromIdentifiers,
147
147
  hasHintAndCorrection: true,
148
148
  shouldHaveCalculator: true,
149
- answerType: "QCU",
150
149
  };
@@ -1 +1 @@
1
- {"version":3,"file":"compareBoxPlot.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/dataRepresentations/compareBoxPlot.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,EAAE,CAAC;CACvB,CAAC;AAKF,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAmQF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAoBhD,CAAC"}
1
+ {"version":3,"file":"compareBoxPlot.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/dataRepresentations/compareBoxPlot.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,EAAE,CAAC;CACvB,CAAC;AAKF,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAmQF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAmBhD,CAAC"}
@@ -193,5 +193,4 @@ export const compareBoxPlot = {
193
193
  hasGeogebra: true,
194
194
  getQuestionFromIdentifiers,
195
195
  hasHintAndCorrection: true,
196
- answerType: "QCU",
197
196
  };
@@ -1 +1 @@
1
- {"version":3,"file":"convexityQuadrinomials.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/convexity/convexityQuadrinomials.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAoBrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAwIF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAexD,CAAC"}
1
+ {"version":3,"file":"convexityQuadrinomials.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/convexity/convexityQuadrinomials.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAoBrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAwIF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAcxD,CAAC"}
@@ -96,7 +96,6 @@ export const convexityQuadrinomials = {
96
96
  generator: (nb) => getDistinctQuestions(getConvexityQuadrinomialsQuestion, nb),
97
97
  qcmTimer: 60,
98
98
  freeTimer: 60,
99
- answerType: "QCU",
100
99
  getPropositions,
101
100
  isAnswerValid,
102
101
  subject: "Mathématiques",
@@ -1 +1 @@
1
- {"version":3,"file":"equaDiffCheckSolutionFirstOrder.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAcrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAE7C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE,eAAe,CAAC;IACrC,mBAAmB,EAAE,eAAe,CAAC;IACrC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAiJF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,WAAW,CAcjE,CAAC"}
1
+ {"version":3,"file":"equaDiffCheckSolutionFirstOrder.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAcrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAE7C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE,eAAe,CAAC;IACrC,mBAAmB,EAAE,eAAe,CAAC;IACrC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AA8IF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,WAAW,CAajE,CAAC"}
@@ -106,9 +106,6 @@ const getPropositions = (n, { answer }) => {
106
106
  tryToAddWrongProp(propositions, "On ne peut pas savoir", "raw");
107
107
  return shuffleProps(propositions, n);
108
108
  };
109
- const isAnswerValid = (ans, { answer }) => {
110
- return ans === answer;
111
- };
112
109
  export const equaDiffCheckSolutionFirstOrder = {
113
110
  id: "equaDiffCheckSolutionFirstOrder",
114
111
  label: "Vérifier si une fonction est solution d'une équation différentielle du premier ordre",
@@ -117,7 +114,6 @@ export const equaDiffCheckSolutionFirstOrder = {
117
114
  qcmTimer: 60,
118
115
  freeTimer: 60,
119
116
  getPropositions,
120
- isAnswerValid,
121
117
  answerType: "QCU",
122
118
  subject: "Mathématiques",
123
119
  getQuestionFromIdentifiers,
@@ -1 +1 @@
1
- {"version":3,"file":"affineAdjustmentComplete.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineAdjustmentComplete.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAmBrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AA0JF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAclE,CAAC"}
1
+ {"version":3,"file":"affineAdjustmentComplete.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineAdjustmentComplete.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAmBrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AA0JF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAalE,CAAC"}
@@ -96,7 +96,6 @@ export const affineAdjustmentCompleteExercise = {
96
96
  label: "Déterminer l'équation de la droite d'ajustement et le coefficient de détermination",
97
97
  isSingleStep: true,
98
98
  generator: (nb) => getDistinctQuestions(getAffineAdjustmentCompleteQuestion, nb),
99
- answerType: "QCU",
100
99
  qcmTimer: 60,
101
100
  freeTimer: 60,
102
101
  getPropositions,
@@ -1 +1 @@
1
- {"version":3,"file":"coordsOfPointOnAffineFindX.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/coordsOfPointOnAffineFindX.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAYrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAqIF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAe5D,CAAC"}
1
+ {"version":3,"file":"coordsOfPointOnAffineFindX.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/coordsOfPointOnAffineFindX.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAYrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAqIF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAc5D,CAAC"}
@@ -111,7 +111,6 @@ export const coordsOfPointOnAffineFindX = {
111
111
  subject: "Mathématiques",
112
112
  getQuestionFromIdentifiers,
113
113
  hasHintAndCorrection: true,
114
- answerType: "QCU",
115
114
  getPropositions,
116
115
  isAnswerValid,
117
116
  };
@@ -1 +1 @@
1
- {"version":3,"file":"coordsOfPointOnAffineFindY.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/coordsOfPointOnAffineFindY.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA+HF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAe5D,CAAC"}
1
+ {"version":3,"file":"coordsOfPointOnAffineFindY.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/coordsOfPointOnAffineFindY.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA+HF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAc5D,CAAC"}
@@ -114,5 +114,4 @@ export const coordsOfPointOnAffineFindY = {
114
114
  subject: "Mathématiques",
115
115
  getQuestionFromIdentifiers,
116
116
  hasHintAndCorrection: true,
117
- answerType: "QCU",
118
117
  };
@@ -1 +1 @@
1
- {"version":3,"file":"drawAffineFromProgCalc.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/drawAffineFromProgCalc.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AASrC,OAAO,EAEL,mBAAmB,EAEpB,MAAM,iCAAiC,CAAC;AAOzC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,mBAAmB,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AA+NF,KAAK,OAAO,GAAG;IACb,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;CAC/B,CAAC;AAwBF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAmBjE,CAAC"}
1
+ {"version":3,"file":"drawAffineFromProgCalc.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/drawAffineFromProgCalc.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AASrC,OAAO,EAEL,mBAAmB,EAEpB,MAAM,iCAAiC,CAAC;AAOzC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,mBAAmB,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAkOF,KAAK,OAAO,GAAG;IACb,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;CAC/B,CAAC;AAwBF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAmBjE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"recognizeAffineGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/recognizeAffineGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AASrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAc7C,KAAK,UAAU,GAAG;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAmBF,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAgKF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAgBtD,CAAC"}
1
+ {"version":3,"file":"recognizeAffineGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/recognizeAffineGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AASrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAc7C,KAAK,UAAU,GAAG;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAmBF,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AA6JF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAetD,CAAC"}
@@ -141,9 +141,6 @@ const getPropositions = (_, { answer, ...idenfitiers }) => {
141
141
  });
142
142
  return propositions;
143
143
  };
144
- const isAnswerValid = (ans, { answer }) => {
145
- return ans === answer;
146
- };
147
144
  export const recognizeAffineGraph = {
148
145
  id: "recognizeAffineGraph",
149
146
  label: "Reconnaître la représentation graphique d'une fonction linéaire ou d'une fonction affine",
@@ -152,7 +149,6 @@ export const recognizeAffineGraph = {
152
149
  qcmTimer: 60,
153
150
  freeTimer: 60,
154
151
  getPropositions,
155
- isAnswerValid,
156
152
  hasGeogebra: true,
157
153
  subject: "Mathématiques",
158
154
  getQuestionFromIdentifiers,
@@ -1 +1 @@
1
- {"version":3,"file":"coordsOfPointOnCurveFindY.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/coordsOfPointOnCurveFindY.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAe7C,KAAK,gBAAgB,GACjB,QAAQ,GACR,QAAQ,GACR,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,WAAW,GACX,iBAAiB,CAAC;AAEtB,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA0SF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAe3D,CAAC"}
1
+ {"version":3,"file":"coordsOfPointOnCurveFindY.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/coordsOfPointOnCurveFindY.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAe7C,KAAK,gBAAgB,GACjB,QAAQ,GACR,QAAQ,GACR,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,WAAW,GACX,iBAAiB,CAAC;AAEtB,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA0SF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAc3D,CAAC"}
@@ -231,5 +231,4 @@ export const coordsOfPointOnCurveFindY = {
231
231
  subject: "Mathématiques",
232
232
  getQuestionFromIdentifiers,
233
233
  hasHintAndCorrection: true,
234
- answerType: "QCU",
235
234
  };
@@ -1 +1 @@
1
- {"version":3,"file":"isPointOnFunction.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/isPointOnFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAGL,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAI7C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,gBAAgB,CAAC;IACxB,IAAI,EAAE,eAAe,CAAC;CACvB,CAAC;AA0HF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAmBnD,CAAC"}
1
+ {"version":3,"file":"isPointOnFunction.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/isPointOnFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAGL,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAG7C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,gBAAgB,CAAC;IACxB,IAAI,EAAE,eAAe,CAAC;CACvB,CAAC;AAmHF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAkBnD,CAAC"}
@@ -6,7 +6,6 @@ import { TrinomConstructor } from "../../../../math/polynomials/trinom.js";
6
6
  import { randint } from "../../../../math/utils/random/randint.js";
7
7
  import { reifyAlgebraic, } from "../../../../tree/nodes/nodeConstructor.js";
8
8
  import { coinFlip } from "../../../../utils/alea/coinFlip.js";
9
- import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
10
9
  const getPropositions = (n, { answer }) => {
11
10
  const propositions = [];
12
11
  addValidProp(propositions, answer, "raw");
@@ -74,14 +73,6 @@ Comme $${simplifiedTex} \\neq ${yTex}$, le point n'appartient pas à la courbe.`
74
73
  const getKeys = () => {
75
74
  return [];
76
75
  };
77
- const isAnswerValid = () => {
78
- try {
79
- throw Error("VEA not implemented");
80
- }
81
- catch (err) {
82
- return handleVEAError(err);
83
- }
84
- };
85
76
  const getIsPointOnFunctionQuestion = () => {
86
77
  const useTrinom = coinFlip();
87
78
  const func = useTrinom
@@ -121,7 +112,6 @@ export const isPointOnFunction = {
121
112
  qcmTimer: 60,
122
113
  freeTimer: 60,
123
114
  getPropositions,
124
- isAnswerValid,
125
115
  subject: "Mathématiques",
126
116
  getInstruction,
127
117
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"signOfFunction.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/signOfFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IAEV,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AA6GF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAkBhD,CAAC"}
1
+ {"version":3,"file":"signOfFunction.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/signOfFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IAEV,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAsGF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAiBhD,CAAC"}
@@ -4,7 +4,6 @@ import { randint } from "../../../../math/utils/random/randint.js";
4
4
  import { abs } from "../../../../tree/nodes/functions/absNode.js";
5
5
  import { multiply } from "../../../../tree/nodes/operators/multiplyNode.js";
6
6
  import { MonomNode } from "../../../../tree/nodes/polynomials/monomNode.js";
7
- import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
8
7
  const getPropositions = (n, { answer }) => {
9
8
  const propositions = [];
10
9
  addValidProp(propositions, answer, "raw");
@@ -74,14 +73,6 @@ D'après la régle des signes, $f$ est donc ${feminized} sur $\\mathbb{R}$.`;
74
73
  const getKeys = () => {
75
74
  return [];
76
75
  };
77
- const isAnswerValid = (ans, { answer }) => {
78
- try {
79
- return ans === answer;
80
- }
81
- catch (err) {
82
- return handleVEAError(err);
83
- }
84
- };
85
76
  const getSignOfFunctionQuestion = () => {
86
77
  const a = randint(-20, 20);
87
78
  const type = randint(0, 3);
@@ -107,7 +98,6 @@ export const signOfFunction = {
107
98
  qcmTimer: 60,
108
99
  freeTimer: 60,
109
100
  getPropositions,
110
- isAnswerValid,
111
101
  subject: "Mathématiques",
112
102
  getInstruction,
113
103
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"isPointOnCubicFunction.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/cube/isPointOnCubicFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAM7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;CACpB,CAAC;AAiGF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAkBxD,CAAC"}
1
+ {"version":3,"file":"isPointOnCubicFunction.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/cube/isPointOnCubicFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAK7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;CACpB,CAAC;AA0FF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAiBxD,CAAC"}
@@ -7,7 +7,6 @@ import { reifyAlgebraic, } from "../../../../tree/nodes/nodeConstructor.js";
7
7
  import { power } from "../../../../tree/nodes/operators/powerNode.js";
8
8
  import { coinFlip } from "../../../../utils/alea/coinFlip.js";
9
9
  import { random } from "../../../../utils/alea/random.js";
10
- import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
11
10
  const getPropositions = (n, { answer }) => {
12
11
  const propositions = [];
13
12
  addValidProp(propositions, answer, "raw");
@@ -59,14 +58,6 @@ Le point n'appartient donc pas à la courbe de la fonction cube.`;
59
58
  const getKeys = () => {
60
59
  return [];
61
60
  };
62
- const isAnswerValid = (ans, { answer }) => {
63
- try {
64
- return ans == answer;
65
- }
66
- catch (err) {
67
- return handleVEAError(err);
68
- }
69
- };
70
61
  const getIsPointOnCubicFunctionQuestion = () => {
71
62
  const xNumber = randint(0, 10);
72
63
  const xFrac = RationalConstructor.randomIrreductible().toTree();
@@ -98,7 +89,6 @@ export const isPointOnCubicFunction = {
98
89
  generator: (nb, opts) => getDistinctQuestions(() => getIsPointOnCubicFunctionQuestion(opts), nb),
99
90
  qcmTimer: 60,
100
91
  freeTimer: 60,
101
- isAnswerValid,
102
92
  subject: "Mathématiques",
103
93
  getPropositions,
104
94
  getInstruction,
@@ -1 +1 @@
1
- {"version":3,"file":"exponentialsVariations.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/exponentials/exponentialsVariations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAM7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAuHF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAmBxD,CAAC"}
1
+ {"version":3,"file":"exponentialsVariations.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/exponentials/exponentialsVariations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAM7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAoHF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAkBxD,CAAC"}
@@ -68,9 +68,6 @@ Ainsi, la fonction $f(x) = ${statement.toTex()}$ est ${answer.toLocaleLowerCase(
68
68
  const getKeys = () => {
69
69
  return [];
70
70
  };
71
- const isAnswerValid = (ans, { answer }) => {
72
- return ans === answer;
73
- };
74
71
  const getExponentialsVariationsQuestion = () => {
75
72
  const a = randfloat(0.1, 3, 2, [1]) * (coinFlip() ? 1 : -1);
76
73
  const qLessThanOne = coinFlip();
@@ -113,7 +110,6 @@ export const exponentialsVariations = {
113
110
  qcmTimer: 60,
114
111
  freeTimer: 60,
115
112
  getPropositions,
116
- isAnswerValid,
117
113
  subject: "Mathématiques",
118
114
  getInstruction,
119
115
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"compareInverseValues.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/inverse/compareInverseValues.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAK7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAsIF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAkBtD,CAAC"}
1
+ {"version":3,"file":"compareInverseValues.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/inverse/compareInverseValues.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAK7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAsIF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAiBtD,CAAC"}
@@ -131,5 +131,4 @@ export const compareInverseValues = {
131
131
  getAnswer,
132
132
  getQuestionFromIdentifiers,
133
133
  hasHintAndCorrection: true,
134
- answerType: "QCU",
135
134
  };
@@ -1 +1 @@
1
- {"version":3,"file":"isPointOnReciprocalFunction.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/inverse/isPointOnReciprocalFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAM7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;CACpB,CAAC;AAoGF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAqB7D,CAAC"}
1
+ {"version":3,"file":"isPointOnReciprocalFunction.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/inverse/isPointOnReciprocalFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAK7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;CACpB,CAAC;AA6FF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAoB7D,CAAC"}
@@ -8,7 +8,6 @@ import { reifyAlgebraic, } from "../../../../tree/nodes/nodeConstructor.js";
8
8
  import { frac } from "../../../../tree/nodes/operators/fractionNode.js";
9
9
  import { coinFlip } from "../../../../utils/alea/coinFlip.js";
10
10
  import { random } from "../../../../utils/alea/random.js";
11
- import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
12
11
  const getPropositions = (n, { answer }) => {
13
12
  const propositions = [];
14
13
  addValidProp(propositions, answer, "raw");
@@ -59,14 +58,6 @@ Le point n'appartient donc pas à la courbe de la fonction inverse.`;
59
58
  const getKeys = () => {
60
59
  return [];
61
60
  };
62
- const isAnswerValid = (ans, { answer }) => {
63
- try {
64
- return ans == answer;
65
- }
66
- catch (err) {
67
- return handleVEAError(err);
68
- }
69
- };
70
61
  const getIsPointOnReciprocalFunctionQuestion = () => {
71
62
  const xNumber = randint(-9, 10, [0]);
72
63
  const xFrac = RationalConstructor.randomIrreductible().toTree();
@@ -104,7 +95,6 @@ export const isPointOnReciprocalFunction = {
104
95
  qcmTimer: 60,
105
96
  freeTimer: 60,
106
97
  getPropositions,
107
- isAnswerValid,
108
98
  subject: "Mathématiques",
109
99
  getInstruction,
110
100
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"parityFromAlgebra.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/parity/parityFromAlgebra.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAerC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAoLF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAcnD,CAAC"}
1
+ {"version":3,"file":"parityFromAlgebra.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/parity/parityFromAlgebra.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAerC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAiLF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAanD,CAAC"}
@@ -165,9 +165,6 @@ const getPropositions = (n, { answer }) => {
165
165
  tryToAddWrongProp(propositions, "On ne peut pas savoir", "raw");
166
166
  return shuffleProps(propositions, n);
167
167
  };
168
- const isAnswerValid = (ans, { answer }) => {
169
- return ans === answer;
170
- };
171
168
  export const parityFromAlgebra = {
172
169
  id: "parityFromAlgebra",
173
170
  label: "Déterminer algébriquement la parité d'une fonction",
@@ -176,7 +173,6 @@ export const parityFromAlgebra = {
176
173
  qcmTimer: 60,
177
174
  freeTimer: 60,
178
175
  getPropositions,
179
- isAnswerValid,
180
176
  answerType: "QCU",
181
177
  subject: "Mathématiques",
182
178
  getQuestionFromIdentifiers,
@@ -1 +1 @@
1
- {"version":3,"file":"compareSquaredValues.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/square/compareSquaredValues.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAK7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;CACpB,CAAC;AAiJF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAkBtD,CAAC"}
1
+ {"version":3,"file":"compareSquaredValues.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/square/compareSquaredValues.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAI7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;CACpB,CAAC;AA0IF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAiBtD,CAAC"}