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
@@ -71,9 +71,6 @@ const getGGBOptions = ({ labels, serie1, serie2, }) => {
71
71
  const getKeys = () => {
72
72
  return [];
73
73
  };
74
- const isAnswerValid = () => {
75
- throw Error("VEA not implemented");
76
- };
77
74
  const getCompareSeriesDispersionQuestion = () => {
78
75
  const labels = [10, 20, 30, 40];
79
76
  const baseValue = randint(10, 25);
@@ -107,7 +104,6 @@ export const compareSeriesDispersion = {
107
104
  qcmTimer: 60,
108
105
  freeTimer: 60,
109
106
  getPropositions,
110
- isAnswerValid,
111
107
  subject: "Mathématiques",
112
108
  getHint,
113
109
  getCorrection,
@@ -1 +1 @@
1
- {"version":3,"file":"getQuartileProportionQuestion.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/getQuartileProportionQuestion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAwOF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAqB/D,CAAC"}
1
+ {"version":3,"file":"getQuartileProportionQuestion.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/getQuartileProportionQuestion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAgOF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAoB/D,CAAC"}
@@ -3,7 +3,6 @@ import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQue
3
3
  import { randint } from "../../../../math/utils/random/randint.js";
4
4
  import { randTupleInt } from "../../../../math/utils/random/randTupleInt.js";
5
5
  import { coinFlip } from "../../../../utils/alea/coinFlip.js";
6
- import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
7
6
  import { dollarize } from "../../../../utils/latex/dollarize.js";
8
7
  import { mdTable } from "../../../../utils/markdown/mdTable.js";
9
8
  const getPropositions = (n, { answer }) => {
@@ -72,14 +71,6 @@ C'est donc la ${serie1Index < serie2Index ? "série $1$" : "série $2$"} qui a l
72
71
  }
73
72
  };
74
73
  const getKeys = () => [];
75
- const isAnswerValid = () => {
76
- try {
77
- throw Error("VEA not implemented");
78
- }
79
- catch (err) {
80
- return handleVEAError(err);
81
- }
82
- };
83
74
  const getGetQuartileProportionQuestionQuestion = () => {
84
75
  const labels = ["Min", "Q_1", "Méd", "Q_3", "Max"];
85
76
  let a = undefined;
@@ -191,7 +182,6 @@ export const getQuartileProportionQuestion = {
191
182
  qcmTimer: 60,
192
183
  freeTimer: 60,
193
184
  getPropositions,
194
- isAnswerValid,
195
185
  subject: "Mathématiques",
196
186
  getInstruction,
197
187
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"fineAdjustementExercise.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats2var/fineAdjustementExercise.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAGL,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;AAM5C,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,sBAAsB,EAAE,sBAAsB,CAAC;CAChD,CAAC;AA0IF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}
1
+ {"version":3,"file":"fineAdjustementExercise.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats2var/fineAdjustementExercise.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAGL,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;AAM5C,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,sBAAsB,EAAE,sBAAsB,CAAC;CAChD,CAAC;AAsIF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAazD,CAAC"}
@@ -99,9 +99,6 @@ const generateProposition = (isJustified) => {
99
99
  const thirdProposition = `Un ajustement affine ${isJustified ? `n'est pas justifié` : `est justifié`}. Le coefficient de détermination vaut ${node.toTex()}`;
100
100
  return [firstProposition, secondProposition, thirdProposition];
101
101
  };
102
- const isAnswerValid = (ans, { answer }) => {
103
- return ans === answer;
104
- };
105
102
  export const fineAdjustementExercise = {
106
103
  id: "fineAdjustementExercise",
107
104
  label: "Proposition d'ajustement affine d'un nuage de points",
@@ -112,7 +109,6 @@ export const fineAdjustementExercise = {
112
109
  qcmTimer: 60,
113
110
  freeTimer: 60,
114
111
  getPropositions,
115
- isAnswerValid,
116
112
  subject: "Mathématiques",
117
113
  getQuestionFromIdentifiers,
118
114
  };
@@ -1 +1 @@
1
- {"version":3,"file":"pythonForLoopInstructionCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonForLoopInstructionCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAkIF,eAAO,MAAM,kCAAkC,EAAE,QAAQ,CAAC,WAAW,CAkBpE,CAAC"}
1
+ {"version":3,"file":"pythonForLoopInstructionCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonForLoopInstructionCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AA2HF,eAAO,MAAM,kCAAkC,EAAE,QAAQ,CAAC,WAAW,CAiBpE,CAAC"}
@@ -2,7 +2,6 @@ import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../exercis
2
2
  import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { randint } from "../../../math/utils/random/randint.js";
4
4
  import { random } from "../../../utils/alea/random.js";
5
- import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
6
5
  const getPropositions = (n, { answer, coeff, iterations, operation }) => {
7
6
  const propositions = [];
8
7
  addValidProp(propositions, answer, "raw");
@@ -88,14 +87,6 @@ a=a${operation}${coeff}
88
87
  const getKeys = () => {
89
88
  return [];
90
89
  };
91
- const isAnswerValid = (ans, { answer }) => {
92
- try {
93
- return ans === answer;
94
- }
95
- catch (err) {
96
- return handleVEAError(err);
97
- }
98
- };
99
90
  const getPythonRangeCompletionQuestion = () => {
100
91
  const iterations = randint(2, 11);
101
92
  const operation = random(["+", "-", "*", "/"]);
@@ -126,7 +117,6 @@ export const pythonForLoopInstructionCompletion = {
126
117
  qcmTimer: 60,
127
118
  freeTimer: 60,
128
119
  getPropositions,
129
- isAnswerValid,
130
120
  subject: "Mathématiques",
131
121
  getInstruction,
132
122
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"pythonIfStatementCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonIfStatementCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AA2GF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAqB7D,CAAC"}
1
+ {"version":3,"file":"pythonIfStatementCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonIfStatementCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AA2GF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAoB7D,CAAC"}
@@ -5,16 +5,16 @@ import { random } from "../../../utils/alea/random.js";
5
5
  import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
6
6
  const getPropositions = (n, { answer, coeff }) => {
7
7
  const propositions = [];
8
- addValidProp(propositions, answer, "raw");
9
- tryToAddWrongProp(propositions, `\`a<${coeff}\``, "raw");
10
- tryToAddWrongProp(propositions, `\`a>${coeff}\``, "raw");
11
- tryToAddWrongProp(propositions, `\`a<=${coeff}\``, "raw");
12
- tryToAddWrongProp(propositions, `\`a>=${coeff}\``, "raw");
8
+ addValidProp(propositions, `\\text{${answer}}`);
9
+ tryToAddWrongProp(propositions, `\\text{a<${coeff}}`);
10
+ tryToAddWrongProp(propositions, `\\text{a>${coeff}}`);
11
+ tryToAddWrongProp(propositions, `\\text{a<=${coeff}}`);
12
+ tryToAddWrongProp(propositions, `\\text{a>=${coeff}}`);
13
13
  return shuffleProps(propositions, n);
14
14
  };
15
15
  const getAnswer = (identifiers) => {
16
16
  const { coeff, ineq } = identifiers;
17
- return `\`a${ineq}${coeff}\``;
17
+ return `a${ineq}${coeff}`;
18
18
  };
19
19
  const getInstruction = (identifiers) => {
20
20
  const { coeff, ineq } = identifiers;
@@ -88,7 +88,7 @@ const getQuestionFromIdentifiers = (identifiers) => {
88
88
  answer: getAnswer(identifiers),
89
89
  instruction: getInstruction(identifiers),
90
90
  keys: getKeys(identifiers),
91
- answerFormat: "raw",
91
+ answerFormat: "tex",
92
92
  identifiers,
93
93
  hint: getHint(identifiers),
94
94
  correction: getCorrection(identifiers),
@@ -110,5 +110,4 @@ export const pythonIfStatementCompletion = {
110
110
  getAnswer,
111
111
  getQuestionFromIdentifiers,
112
112
  hasHintAndCorrection: true,
113
- answerType: "QCU",
114
113
  };
@@ -1 +1 @@
1
- {"version":3,"file":"pythonSimpleFunctionInstructionCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonSimpleFunctionInstructionCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqFF,eAAO,MAAM,yCAAyC,EAAE,QAAQ,CAAC,WAAW,CAsBzE,CAAC"}
1
+ {"version":3,"file":"pythonSimpleFunctionInstructionCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonSimpleFunctionInstructionCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA8EF,eAAO,MAAM,yCAAyC,EAAE,QAAQ,CAAC,WAAW,CAqBzE,CAAC"}
@@ -3,7 +3,6 @@ import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuesti
3
3
  import { randint } from "../../../math/utils/random/randint.js";
4
4
  import { add } from "../../../tree/nodes/operators/addNode.js";
5
5
  import { multiply } from "../../../tree/nodes/operators/multiplyNode.js";
6
- import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
7
6
  const getPropositions = (n, { answer }) => {
8
7
  const propositions = [];
9
8
  addValidProp(propositions, answer, "raw");
@@ -43,14 +42,6 @@ ${getAnswer(identifiers)}`;
43
42
  const getKeys = () => {
44
43
  return [];
45
44
  };
46
- const isAnswerValid = () => {
47
- try {
48
- throw Error("VEA not implemented");
49
- }
50
- catch (err) {
51
- return handleVEAError(err);
52
- }
53
- };
54
45
  const getPythonSimpleFunctionInstructionCompletionQuestion = () => {
55
46
  const identifiers = {
56
47
  m: randint(-10, 11, [-1, 0, 1]),
@@ -77,7 +68,6 @@ export const pythonSimpleFunctionInstructionCompletion = {
77
68
  qcmTimer: 60,
78
69
  freeTimer: 60,
79
70
  getPropositions,
80
- isAnswerValid,
81
71
  subject: "Mathématiques",
82
72
  getInstruction,
83
73
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"pythonWhileStatementCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonWhileStatementCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAgFF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAsBhE,CAAC"}
1
+ {"version":3,"file":"pythonWhileStatementCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonWhileStatementCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAgFF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAqBhE,CAAC"}
@@ -5,13 +5,13 @@ import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
5
5
  const getPropositions = (n, { answer, threshold }) => {
6
6
  const propositions = [];
7
7
  addValidProp(propositions, answer, "raw");
8
- tryToAddWrongProp(propositions, `\`${threshold}\``, "raw");
9
- tryToAddWrongProp(propositions, `\`x>${threshold}\``, "raw");
10
- tryToAddWrongProp(propositions, `\`x*3\``, "raw");
8
+ tryToAddWrongProp(propositions, `${threshold}`, "raw");
9
+ tryToAddWrongProp(propositions, `x>${threshold}`, "raw");
10
+ tryToAddWrongProp(propositions, `x*3`, "raw");
11
11
  return shuffleProps(propositions, n);
12
12
  };
13
13
  const getAnswer = (identifiers) => {
14
- return `\`x<${identifiers.threshold}\``;
14
+ return `x<${identifiers.threshold}`;
15
15
  };
16
16
  const getInstruction = (identifiers) => {
17
17
  return `On considère la fonction en Python ci-dessous. Cette fonction doit permettre, pour un paramètre \`x\` saisi en entrée, de déterminer combien de fois on doit tripler ce nombre pour qu'il dépasse $${identifiers.threshold}$.
@@ -61,7 +61,7 @@ const getQuestionFromIdentifiers = (identifiers) => {
61
61
  answer: getAnswer(identifiers),
62
62
  instruction: getInstruction(identifiers),
63
63
  keys: getKeys(identifiers),
64
- answerFormat: "raw",
64
+ answerFormat: "tex",
65
65
  identifiers,
66
66
  hint: getHint(identifiers),
67
67
  correction: getCorrection(identifiers),
@@ -82,6 +82,5 @@ export const pythonWhileStatementCompletion = {
82
82
  getCorrection,
83
83
  getQuestionFromIdentifiers,
84
84
  hasHintAndCorrection: true,
85
- answerType: "QCU",
86
85
  maxAllowedQuestions: 15,
87
86
  };
@@ -1 +1 @@
1
- {"version":3,"file":"pythonWhileStatementOperationCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonWhileStatementOperationCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IAEjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAuGF,eAAO,MAAM,uCAAuC,EAAE,QAAQ,CAAC,WAAW,CAsBzE,CAAC"}
1
+ {"version":3,"file":"pythonWhileStatementOperationCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonWhileStatementOperationCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IAEjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAuGF,eAAO,MAAM,uCAAuC,EAAE,QAAQ,CAAC,WAAW,CAqBzE,CAAC"}
@@ -6,13 +6,13 @@ import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
6
6
  const getPropositions = (n, { answer, operation, coeff }) => {
7
7
  const propositions = [];
8
8
  addValidProp(propositions, answer, "raw");
9
- tryToAddWrongProp(propositions, `\`${operation}${coeff}\``, "raw");
10
- tryToAddWrongProp(propositions, `\`x>1500\``, "raw");
11
- tryToAddWrongProp(propositions, `\`${coeff}\``, "raw");
9
+ tryToAddWrongProp(propositions, `${operation}${coeff}`, "raw");
10
+ tryToAddWrongProp(propositions, `x>1500`, "raw");
11
+ tryToAddWrongProp(propositions, `${coeff}`, "raw");
12
12
  return shuffleProps(propositions, n);
13
13
  };
14
14
  const getAnswer = (identifiers) => {
15
- return `\`x${identifiers.operation}${identifiers.coeff}\``;
15
+ return `x${identifiers.operation}${identifiers.coeff}`;
16
16
  };
17
17
  const getInstruction = (identifiers) => {
18
18
  const { coeff, operation } = identifiers;
@@ -93,7 +93,7 @@ const getQuestionFromIdentifiers = (identifiers) => {
93
93
  answer: getAnswer(identifiers),
94
94
  instruction: getInstruction(identifiers),
95
95
  keys: getKeys(identifiers),
96
- answerFormat: "raw",
96
+ answerFormat: "tex",
97
97
  identifiers,
98
98
  hint: getHint(identifiers),
99
99
  correction: getCorrection(identifiers),
@@ -114,6 +114,5 @@ export const pythonWhileStatementOperationCompletion = {
114
114
  getCorrection,
115
115
  getQuestionFromIdentifiers,
116
116
  hasHintAndCorrection: true,
117
- answerType: "QCU",
118
117
  maxAllowedQuestions: 15,
119
118
  };
@@ -1 +1 @@
1
- {"version":3,"file":"variableType.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/variableType.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAwGF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAkB9C,CAAC"}
1
+ {"version":3,"file":"variableType.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/variableType.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAIrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAiGF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAiB9C,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../exercises/exercise.js";
2
2
  import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { randint } from "../../../math/utils/random/randint.js";
4
- import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
5
4
  const getPropositions = (n, { answer }) => {
6
5
  const propositions = [];
7
6
  addValidProp(propositions, answer, "raw");
@@ -58,14 +57,6 @@ Ici, la variable \`v\` est de type ${explanationType.toLocaleLowerCase()}.`;
58
57
  const getKeys = () => {
59
58
  return [];
60
59
  };
61
- const isAnswerValid = () => {
62
- try {
63
- throw Error("VEA not implemented");
64
- }
65
- catch (err) {
66
- return handleVEAError(err);
67
- }
68
- };
69
60
  const getVariableTypeQuestion = () => {
70
61
  const vTypes = ["int", "float", "str"];
71
62
  const vType = vTypes[randint(0, vTypes.length)];
@@ -107,7 +98,6 @@ export const variableType = {
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":"isSamplingRepresentative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/sampling/isSamplingRepresentative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAiHF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAc1D,CAAC"}
1
+ {"version":3,"file":"isSamplingRepresentative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/sampling/isSamplingRepresentative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AA8GF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAa1D,CAAC"}
@@ -62,9 +62,6 @@ ${identifiers.isRepresentative
62
62
  const getKeys = () => {
63
63
  return [];
64
64
  };
65
- const isAnswerValid = () => {
66
- throw Error("VEA not implemented");
67
- };
68
65
  const getIsSamplingRepresentativeQuestion = () => {
69
66
  const p = randfloat(0.2, 0.8, 2);
70
67
  const n = 50 * randint(1, 20);
@@ -105,7 +102,6 @@ export const isSamplingRepresentative = {
105
102
  qcmTimer: 60,
106
103
  freeTimer: 60,
107
104
  getPropositions,
108
- isAnswerValid,
109
105
  subject: "Mathématiques",
110
106
  getQuestionFromIdentifiers,
111
107
  hasHintAndCorrection: true,
@@ -1 +1 @@
1
- {"version":3,"file":"recognizeArithmeticFromFirstTerms.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,EAAE,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAsGF,eAAO,MAAM,iCAAiC,EAAE,QAAQ,CAAC,WAAW,CAenE,CAAC"}
1
+ {"version":3,"file":"recognizeArithmeticFromFirstTerms.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,EAAE,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAmGF,eAAO,MAAM,iCAAiC,EAAE,QAAQ,CAAC,WAAW,CAcnE,CAAC"}
@@ -76,9 +76,6 @@ const getPropositions = (_n, { answer, sequences, answerIndex }) => {
76
76
  });
77
77
  return shuffle(propositions);
78
78
  };
79
- const isAnswerValid = (ans, { answer }) => {
80
- return ans === answer;
81
- };
82
79
  export const recognizeArithmeticFromFirstTerms = {
83
80
  id: "recognizeArithmeticFromFirstTerms",
84
81
  label: "Reconnaître une suite arithmétique via ses premiers termes",
@@ -87,7 +84,6 @@ export const recognizeArithmeticFromFirstTerms = {
87
84
  qcmTimer: 60,
88
85
  freeTimer: 60,
89
86
  getPropositions,
90
- isAnswerValid,
91
87
  answerType: "QCU",
92
88
  subject: "Mathématiques",
93
89
  hasHintAndCorrection: true,
@@ -1 +1 @@
1
- {"version":3,"file":"recognizeArithmeticFromGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAoGF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAc9D,CAAC"}
1
+ {"version":3,"file":"recognizeArithmeticFromGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAiGF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAa9D,CAAC"}
@@ -85,9 +85,6 @@ const getPropositions = (n, { answer }) => {
85
85
  tryToAddWrongProp(propositions, "Non", "raw");
86
86
  return shuffleProps(propositions, n);
87
87
  };
88
- const isAnswerValid = (ans, { answer }) => {
89
- return ans === answer;
90
- };
91
88
  export const recognizeArithmeticFromGraph = {
92
89
  id: "recognizeArithmeticFromGraph",
93
90
  label: "Reconnaître graphiquement si une suite est arithmétique",
@@ -96,7 +93,6 @@ export const recognizeArithmeticFromGraph = {
96
93
  qcmTimer: 60,
97
94
  freeTimer: 60,
98
95
  getPropositions,
99
- isAnswerValid,
100
96
  answerType: "QCU",
101
97
  hasGeogebra: true,
102
98
  subject: "Mathématiques",
@@ -1 +1 @@
1
- {"version":3,"file":"geometricVariations.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/geometric/geometricVariations.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;AAoHF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,WAAW,CAkBrD,CAAC"}
1
+ {"version":3,"file":"geometricVariations.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/geometric/geometricVariations.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;AAiHF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,WAAW,CAiBrD,CAAC"}
@@ -68,9 +68,6 @@ Ainsi, la suite $u_n = ${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 getGeometricVariationsQuestion = () => {
75
72
  const a = randfloat(0.1, 3, 2, [1]) * (coinFlip() ? 1 : -1);
76
73
  const qLessThanOne = coinFlip();
@@ -113,7 +110,6 @@ export const geometricVariations = {
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":"isNumberInInterval.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sets/intervals/isNumberInInterval.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAO7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC;AAsLF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAkBpD,CAAC"}
1
+ {"version":3,"file":"isNumberInInterval.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sets/intervals/isNumberInInterval.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAM7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC;AA+KF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAiBpD,CAAC"}
@@ -8,7 +8,6 @@ import { ClosureType } from "../../../../tree/nodes/sets/closure.js";
8
8
  import { IntervalNode } from "../../../../tree/nodes/sets/intervalNode.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, "tex");
@@ -91,14 +90,6 @@ ${result
91
90
  const getKeys = () => {
92
91
  return [];
93
92
  };
94
- const isAnswerValid = (ans, { answer }) => {
95
- try {
96
- return ans === answer;
97
- }
98
- catch (err) {
99
- return handleVEAError(err);
100
- }
101
- };
102
93
  const getIsNumberInIntervalQuestion = () => {
103
94
  const lowerBound = coinFlip()
104
95
  ? randint(-10, 10)
@@ -162,7 +153,6 @@ export const isNumberInInterval = {
162
153
  qcmTimer: 60,
163
154
  freeTimer: 60,
164
155
  getPropositions,
165
- isAnswerValid,
166
156
  subject: "Mathématiques",
167
157
  getInstruction,
168
158
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"isNumberDecimal.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/sets/isNumberDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAS7C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QACP,CAAC,EAAE,eAAe,CAAC;QACnB,SAAS,EAAE,OAAO,CAAC;KACpB,EAAE,CAAC;CACL,CAAC;AAmIF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAmBjD,CAAC"}
1
+ {"version":3,"file":"isNumberDecimal.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/sets/isNumberDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAQ7C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QACP,CAAC,EAAE,eAAe,CAAC;QACnB,SAAS,EAAE,OAAO,CAAC;KACpB,EAAE,CAAC;CACL,CAAC;AA4HF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAkBjD,CAAC"}
@@ -10,7 +10,6 @@ import { isFractionNode } from "../../../tree/nodes/operators/fractionNode.js";
10
10
  import { coinFlip } from "../../../utils/alea/coinFlip.js";
11
11
  import { random } from "../../../utils/alea/random.js";
12
12
  import { doWhile } from "../../../utils/doWhile.js";
13
- import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
14
13
  const getPropositions = (n, { options }) => {
15
14
  const propositions = [];
16
15
  for (const { a, isDecimal } of options) {
@@ -69,14 +68,6 @@ const getCorrection = (identifiers) => {
69
68
  const getKeys = () => {
70
69
  return [];
71
70
  };
72
- const isAnswerValid = () => {
73
- try {
74
- throw Error("VEA not implemented");
75
- }
76
- catch (err) {
77
- return handleVEAError(err);
78
- }
79
- };
80
71
  const generateNonDecimalNumber = () => {
81
72
  const nonDecimals = [];
82
73
  nonDecimals.push(RationalConstructor.randomPureRational().toTree());
@@ -130,7 +121,6 @@ export const isNumberdecimal = {
130
121
  qcmTimer: 60,
131
122
  freeTimer: 60,
132
123
  getPropositions,
133
- isAnswerValid,
134
124
  subject: "Mathématiques",
135
125
  getInstruction,
136
126
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"nameOfNumberSets.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/sets/nameOfNumberSets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,uBAAuB,EAAE,OAAO,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAgJF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAiBlD,CAAC"}
1
+ {"version":3,"file":"nameOfNumberSets.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/sets/nameOfNumberSets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,uBAAuB,EAAE,OAAO,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAwIF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAgBlD,CAAC"}
@@ -2,7 +2,6 @@ import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../exercis
2
2
  import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { randint } from "../../../math/utils/random/randint.js";
4
4
  import { coinFlip } from "../../../utils/alea/coinFlip.js";
5
- import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
6
5
  const getPropositions = (n, { answer, isQuestionAboutNotation }) => {
7
6
  const propositions = [];
8
7
  if (isQuestionAboutNotation) {
@@ -82,14 +81,6 @@ const getInstruction = ({ isQuestionAboutNotation, caseNumber, }) => {
82
81
  const getKeys = () => {
83
82
  return ["naturals", "integers", "rationals", "decimals", "reals"];
84
83
  };
85
- const isAnswerValid = (ans, { answer }) => {
86
- try {
87
- return ans === answer;
88
- }
89
- catch (err) {
90
- return handleVEAError(err);
91
- }
92
- };
93
84
  const getNameOfNumberSetsQuestion = () => {
94
85
  const caseNumber = randint(0, 5);
95
86
  const isQuestionAboutNotation = coinFlip();
@@ -117,7 +108,6 @@ export const nameOfNumberSets = {
117
108
  maxAllowedQuestions: 5,
118
109
  freeTimer: 60,
119
110
  getPropositions,
120
- isAnswerValid,
121
111
  subject: "Mathématiques",
122
112
  getInstruction,
123
113
  getAnswer,
@@ -1 +1 @@
1
- {"version":3,"file":"atomicStructureOfNucleus.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalElements/atomicStructureOfNucleus.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAKnF,KAAK,WAAW,GAAG;IAAE,UAAU,EAAE,WAAW,CAAA;CAAE,CAAC;AA0F/C,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAa1D,CAAC"}
1
+ {"version":3,"file":"atomicStructureOfNucleus.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalElements/atomicStructureOfNucleus.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAKnF,KAAK,WAAW,GAAG;IAAE,UAAU,EAAE,WAAW,CAAA;CAAE,CAAC;AA0F/C,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAY1D,CAAC"}
@@ -66,6 +66,5 @@ export const atomicStructureOfNucleus = {
66
66
  getPropositions,
67
67
  isAnswerValid,
68
68
  subject: "Chimie",
69
- answerType: "QCU",
70
69
  getQuestionFromIdentifiers,
71
70
  };
@@ -1 +1 @@
1
- {"version":3,"file":"identifyRightElectronicConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAKnF,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,WAAW,CAAC;CACzB,CAAC;AA8HF,eAAO,MAAM,oCAAoC,EAAE,QAAQ,CAAC,WAAW,CAkBtE,CAAC"}
1
+ {"version":3,"file":"identifyRightElectronicConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAKnF,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,WAAW,CAAC;CACzB,CAAC;AA2HF,eAAO,MAAM,oCAAoC,EAAE,QAAQ,CAAC,WAAW,CAiBtE,CAAC"}
@@ -94,9 +94,6 @@ const getPropositions = (n, { answer, atomSymbol }) => {
94
94
  });
95
95
  return shuffleProps(propositions, n);
96
96
  };
97
- const isAnswerValid = (ans, { answer }) => {
98
- return ans === answer;
99
- };
100
97
  export const identifyRightElectronicConfiguration = {
101
98
  id: "identifyRightElectronicConfiguration",
102
99
  label: "Identifier la bonne configuration électronique",
@@ -105,7 +102,6 @@ export const identifyRightElectronicConfiguration = {
105
102
  qcmTimer: 60,
106
103
  freeTimer: 60,
107
104
  getPropositions,
108
- isAnswerValid,
109
105
  subject: "Chimie",
110
106
  answerType: "QCU",
111
107
  maxAllowedQuestions: 16,
@@ -1 +1 @@
1
- {"version":3,"file":"identifyLimitingReagent.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/identifyLimitingReagent.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAIrC,KAAK,WAAW,GAAG;IACjB,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,sBAAsB,EAAE,MAAM,EAAE,CAAC;CAClC,CAAC;AAoGF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAazD,CAAC"}
1
+ {"version":3,"file":"identifyLimitingReagent.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/identifyLimitingReagent.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAIrC,KAAK,WAAW,GAAG;IACjB,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,sBAAsB,EAAE,MAAM,EAAE,CAAC;CAClC,CAAC;AAgGF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAYzD,CAAC"}
@@ -55,9 +55,6 @@ const getPropositions = (n, { answer }) => {
55
55
  tryToAddWrongProp(propositions, "Le réactif B", "raw");
56
56
  return shuffleProps(propositions, n);
57
57
  };
58
- const isAnswerValid = (ans, { answer }) => {
59
- return ans === answer;
60
- };
61
58
  export const identifyLimitingReagent = {
62
59
  id: "identifyLimitingReagent",
63
60
  label: "Identifier un réactif limitant",
@@ -66,7 +63,6 @@ export const identifyLimitingReagent = {
66
63
  qcmTimer: 60,
67
64
  freeTimer: 60,
68
65
  getPropositions,
69
- isAnswerValid,
70
66
  subject: "Chimie",
71
67
  answerType: "QCU",
72
68
  getQuestionFromIdentifiers,
@@ -1 +1 @@
1
- {"version":3,"file":"identifyStoichiometricMixture.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/identifyStoichiometricMixture.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,sBAAsB,EAAE,OAAO,CAAC;CACjC,CAAC;AAyGF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAa/D,CAAC"}
1
+ {"version":3,"file":"identifyStoichiometricMixture.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/identifyStoichiometricMixture.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,sBAAsB,EAAE,OAAO,CAAC;CACjC,CAAC;AAsGF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAY/D,CAAC"}
@@ -62,9 +62,6 @@ const getPropositions = (n, { answer }) => {
62
62
  tryToAddWrongProp(propositions, "Non", "raw");
63
63
  return shuffleProps(propositions, n);
64
64
  };
65
- const isAnswerValid = (ans, { answer }) => {
66
- return ans === answer;
67
- };
68
65
  export const identifyStoichiometricMixture = {
69
66
  id: "identifyStoichiometricMixture",
70
67
  label: "Identifier un mélange stœchiométrique",
@@ -73,7 +70,6 @@ export const identifyStoichiometricMixture = {
73
70
  qcmTimer: 60,
74
71
  freeTimer: 60,
75
72
  getPropositions,
76
- isAnswerValid,
77
73
  subject: "Chimie",
78
74
  answerType: "QCU",
79
75
  getQuestionFromIdentifiers,
@@ -1 +1 @@
1
- {"version":3,"file":"stoichiometricReaction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/stoichiometricReaction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IAEX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AA4EF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAaxD,CAAC"}
1
+ {"version":3,"file":"stoichiometricReaction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/stoichiometricReaction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IAEX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAwEF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAYxD,CAAC"}