math-exercises 3.0.126 → 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 (221) 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 +1 -1
  4. package/lib/exercises/math/calcul/mentalCaluls/mentalProgramSolve.d.ts.map +1 -1
  5. package/lib/exercises/math/calcul/mentalCaluls/mentalProgramSolve.js +66 -42
  6. package/lib/exercises/math/calcul/operations/expressionNature.d.ts.map +1 -1
  7. package/lib/exercises/math/calcul/operations/expressionNature.js +0 -4
  8. package/lib/exercises/math/calcul/ordering/compareA10N.d.ts.map +1 -1
  9. package/lib/exercises/math/calcul/ordering/compareA10N.js +0 -1
  10. package/lib/exercises/math/calcul/ordering/compareABUsingQuotient.d.ts.map +1 -1
  11. package/lib/exercises/math/calcul/ordering/compareABUsingQuotient.js +6 -105
  12. package/lib/exercises/math/calcul/ordering/compareFracABWithFracAPlusCBPlusC.d.ts.map +1 -1
  13. package/lib/exercises/math/calcul/ordering/compareFracABWithFracAPlusCBPlusC.js +22 -9
  14. package/lib/exercises/math/calcul/ordering/compareFracAndDec.d.ts.map +1 -1
  15. package/lib/exercises/math/calcul/ordering/compareFracAndDec.js +7 -7
  16. package/lib/exercises/math/calcul/ordering/compareWithSquareRoots.d.ts.map +1 -1
  17. package/lib/exercises/math/calcul/ordering/compareWithSquareRoots.js +23 -14
  18. package/lib/exercises/math/calcul/ordering/decimalOrdering.d.ts.map +1 -1
  19. package/lib/exercises/math/calcul/ordering/decimalOrdering.js +0 -4
  20. package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.d.ts.map +1 -1
  21. package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.js +0 -4
  22. package/lib/exercises/math/calcul/ordering/integerOrdering.d.ts.map +1 -1
  23. package/lib/exercises/math/calcul/ordering/integerOrdering.js +0 -4
  24. package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.d.ts.map +1 -1
  25. package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.js +0 -1
  26. package/lib/exercises/math/calcul/proportionality/isTableProportional.d.ts.map +1 -1
  27. package/lib/exercises/math/calcul/proportionality/isTableProportional.js +0 -4
  28. package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.d.ts.map +1 -1
  29. package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.js +0 -4
  30. package/lib/exercises/math/calcul/rounding/estimateAroundPow10NTimesAroundPow10N.d.ts.map +1 -1
  31. package/lib/exercises/math/calcul/rounding/estimateAroundPow10NTimesAroundPow10N.js +0 -1
  32. package/lib/exercises/math/calcul/rounding/estimatePow10NPlusPow10MinusN.d.ts.map +1 -1
  33. package/lib/exercises/math/calcul/rounding/estimatePow10NPlusPow10MinusN.js +0 -1
  34. package/lib/exercises/math/calcul/rounding/getPhysicalOrderOfMagnitude.d.ts.map +1 -1
  35. package/lib/exercises/math/calcul/rounding/getPhysicalOrderOfMagnitude.js +28 -14
  36. package/lib/exercises/math/calcul/sign/signFromAx.d.ts.map +1 -1
  37. package/lib/exercises/math/calcul/sign/signFromAx.js +0 -10
  38. package/lib/exercises/math/calculLitteral/equation/equationFromProblem.d.ts.map +1 -1
  39. package/lib/exercises/math/calculLitteral/equation/equationFromProblem.js +63 -24
  40. package/lib/exercises/math/calculLitteral/inequations/isInequalityTrue.d.ts.map +1 -1
  41. package/lib/exercises/math/calculLitteral/inequations/isInequalityTrue.js +0 -10
  42. package/lib/exercises/math/calculLitteral/isolate/isolateUInInvXPlusInvYEqualsInvU.d.ts.map +1 -1
  43. package/lib/exercises/math/calculLitteral/isolate/isolateUInInvXPlusInvYEqualsInvU.js +6 -27
  44. package/lib/exercises/math/calculLitteral/ordering/compareAMinusB.d.ts.map +1 -1
  45. package/lib/exercises/math/calculLitteral/ordering/compareAMinusB.js +41 -39
  46. package/lib/exercises/math/calculLitteral/ordering/compareFromPiMinusFrac.d.ts.map +1 -1
  47. package/lib/exercises/math/calculLitteral/ordering/compareFromPiMinusFrac.js +1 -2
  48. package/lib/exercises/math/calculLitteral/simplifying/valuateExpression.d.ts.map +1 -1
  49. package/lib/exercises/math/calculLitteral/simplifying/valuateExpression.js +0 -10
  50. package/lib/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.d.ts.map +1 -1
  51. package/lib/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.js +68 -23
  52. package/lib/exercises/math/conversion/kmPerMinToKmPerHourConversion.d.ts +4 -1
  53. package/lib/exercises/math/conversion/kmPerMinToKmPerHourConversion.d.ts.map +1 -1
  54. package/lib/exercises/math/conversion/kmPerMinToKmPerHourConversion.js +52 -35
  55. package/lib/exercises/math/conversion/minutesToHours.d.ts.map +1 -1
  56. package/lib/exercises/math/conversion/minutesToHours.js +0 -1
  57. package/lib/exercises/math/conversion/prefixToNumber.d.ts.map +1 -1
  58. package/lib/exercises/math/conversion/prefixToNumber.js +14 -4
  59. package/lib/exercises/math/conversion/secondsToHours.d.ts.map +1 -1
  60. package/lib/exercises/math/conversion/secondsToHours.js +1 -2
  61. package/lib/exercises/math/dataRepresentations/barChartInterpreting.d.ts +5 -2
  62. package/lib/exercises/math/dataRepresentations/barChartInterpreting.d.ts.map +1 -1
  63. package/lib/exercises/math/dataRepresentations/barChartInterpreting.js +47 -31
  64. package/lib/exercises/math/dataRepresentations/cartesianGraphExtremaReading.d.ts.map +1 -1
  65. package/lib/exercises/math/dataRepresentations/cartesianGraphExtremaReading.js +5 -4
  66. package/lib/exercises/math/dataRepresentations/compareBoxPlot.d.ts.map +1 -1
  67. package/lib/exercises/math/dataRepresentations/compareBoxPlot.js +0 -1
  68. package/lib/exercises/math/dataRepresentations/dataToGraphGraphToData.js +4 -4
  69. package/lib/exercises/math/dataRepresentations/graphReading.js +13 -13
  70. package/lib/exercises/math/dataRepresentations/histogramReading.d.ts.map +1 -1
  71. package/lib/exercises/math/dataRepresentations/histogramReading.js +32 -32
  72. package/lib/exercises/math/dataRepresentations/plausibleGraph.d.ts.map +1 -1
  73. package/lib/exercises/math/dataRepresentations/plausibleGraph.js +53 -4
  74. package/lib/exercises/math/derivation/convexity/convexityQuadrinomials.d.ts.map +1 -1
  75. package/lib/exercises/math/derivation/convexity/convexityQuadrinomials.js +0 -1
  76. package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.d.ts.map +1 -1
  77. package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.js +0 -4
  78. package/lib/exercises/math/functions/affines/affineAdjustmentComplete.d.ts.map +1 -1
  79. package/lib/exercises/math/functions/affines/affineAdjustmentComplete.js +0 -1
  80. package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindX.d.ts.map +1 -1
  81. package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindX.js +17 -4
  82. package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindY.d.ts.map +1 -1
  83. package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindY.js +27 -10
  84. package/lib/exercises/math/functions/affines/drawAffineFromProgCalc.d.ts.map +1 -1
  85. package/lib/exercises/math/functions/affines/drawAffineFromProgCalc.js +33 -16
  86. package/lib/exercises/math/functions/affines/recognizeAffineGraph.d.ts.map +1 -1
  87. package/lib/exercises/math/functions/affines/recognizeAffineGraph.js +0 -4
  88. package/lib/exercises/math/functions/affines/representationOfAffine.d.ts +3 -0
  89. package/lib/exercises/math/functions/affines/representationOfAffine.d.ts.map +1 -1
  90. package/lib/exercises/math/functions/affines/representationOfAffine.js +121 -30
  91. package/lib/exercises/math/functions/basics/coordsOfPointOnCurveFindY.d.ts.map +1 -1
  92. package/lib/exercises/math/functions/basics/coordsOfPointOnCurveFindY.js +29 -11
  93. package/lib/exercises/math/functions/basics/isPointOnFunction.d.ts.map +1 -1
  94. package/lib/exercises/math/functions/basics/isPointOnFunction.js +0 -10
  95. package/lib/exercises/math/functions/basics/signOfFunction.d.ts.map +1 -1
  96. package/lib/exercises/math/functions/basics/signOfFunction.js +0 -10
  97. package/lib/exercises/math/functions/composition/functionComposition.d.ts.map +1 -1
  98. package/lib/exercises/math/functions/composition/functionComposition.js +2 -2
  99. package/lib/exercises/math/functions/cube/isPointOnCubicFunction.d.ts.map +1 -1
  100. package/lib/exercises/math/functions/cube/isPointOnCubicFunction.js +0 -10
  101. package/lib/exercises/math/functions/exponentials/exponentialsVariations.d.ts.map +1 -1
  102. package/lib/exercises/math/functions/exponentials/exponentialsVariations.js +0 -4
  103. package/lib/exercises/math/functions/inverse/compareInverseValues.d.ts.map +1 -1
  104. package/lib/exercises/math/functions/inverse/compareInverseValues.js +0 -1
  105. package/lib/exercises/math/functions/inverse/isPointOnReciprocalFunction.d.ts.map +1 -1
  106. package/lib/exercises/math/functions/inverse/isPointOnReciprocalFunction.js +0 -10
  107. package/lib/exercises/math/functions/parity/parityFromAlgebra.d.ts.map +1 -1
  108. package/lib/exercises/math/functions/parity/parityFromAlgebra.js +0 -4
  109. package/lib/exercises/math/functions/square/compareSquaredValues.d.ts.map +1 -1
  110. package/lib/exercises/math/functions/square/compareSquaredValues.js +0 -10
  111. package/lib/exercises/math/geometry/convexity/convexityTrinomialsGeo.d.ts.map +1 -1
  112. package/lib/exercises/math/geometry/convexity/convexityTrinomialsGeo.js +0 -4
  113. package/lib/exercises/math/geometry/euclidian/pythagoreOrThales.d.ts.map +1 -1
  114. package/lib/exercises/math/geometry/euclidian/pythagoreOrThales.js +0 -4
  115. package/lib/exercises/math/geometry/lines/isPointOnCartesianLine.d.ts.map +1 -1
  116. package/lib/exercises/math/geometry/lines/isPointOnCartesianLine.js +0 -4
  117. package/lib/exercises/math/geometry/lines/isPointOnLine.d.ts.map +1 -1
  118. package/lib/exercises/math/geometry/lines/isPointOnLine.js +0 -4
  119. package/lib/exercises/math/geometry/lines/linesRelativePositions.d.ts.map +1 -1
  120. package/lib/exercises/math/geometry/lines/linesRelativePositions.js +0 -4
  121. package/lib/exercises/math/geometry/parametric/pointFromParametricLine.d.ts.map +1 -1
  122. package/lib/exercises/math/geometry/parametric/pointFromParametricLine.js +0 -4
  123. package/lib/exercises/math/geometry/pythagore/isTriangleRight.d.ts.map +1 -1
  124. package/lib/exercises/math/geometry/pythagore/isTriangleRight.js +0 -4
  125. package/lib/exercises/math/geometry/quadrilaterals/parallelogramRectangle.d.ts.map +1 -1
  126. package/lib/exercises/math/geometry/quadrilaterals/parallelogramRectangle.js +0 -4
  127. package/lib/exercises/math/geometry/quadrilaterals/parallelogramRhombus.d.ts.map +1 -1
  128. package/lib/exercises/math/geometry/quadrilaterals/parallelogramRhombus.js +0 -4
  129. package/lib/exercises/math/geometry/quadrilaterals/quadrilateralRecognition.d.ts.map +1 -1
  130. package/lib/exercises/math/geometry/quadrilaterals/quadrilateralRecognition.js +0 -4
  131. package/lib/exercises/math/geometry/shapes/basicShapesRecognition.d.ts.map +1 -1
  132. package/lib/exercises/math/geometry/shapes/basicShapesRecognition.js +6 -7
  133. package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromBasis.d.ts.map +1 -1
  134. package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromBasis.js +0 -10
  135. package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromPicture.d.ts.map +1 -1
  136. package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromPicture.js +0 -10
  137. package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.d.ts.map +1 -1
  138. package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.js +0 -4
  139. package/lib/exercises/math/percent/evolutions/findRightCalculForPriceEvolution.d.ts.map +1 -1
  140. package/lib/exercises/math/percent/evolutions/findRightCalculForPriceEvolution.js +0 -4
  141. package/lib/exercises/math/probaStat/basicProbas/mostLeastProbable.d.ts.map +1 -1
  142. package/lib/exercises/math/probaStat/basicProbas/mostLeastProbable.js +0 -10
  143. package/lib/exercises/math/probaStat/basicProbas/possibleValuesForProba.d.ts.map +1 -1
  144. package/lib/exercises/math/probaStat/basicProbas/possibleValuesForProba.js +24 -9
  145. package/lib/exercises/math/probaStat/checkEquiprobability.d.ts.map +1 -1
  146. package/lib/exercises/math/probaStat/checkEquiprobability.js +0 -10
  147. package/lib/exercises/math/probaStat/conditionalProbaWriteFromFrench.d.ts.map +1 -1
  148. package/lib/exercises/math/probaStat/conditionalProbaWriteFromFrench.js +9 -6
  149. package/lib/exercises/math/probaStat/events/describeEvent.d.ts.map +1 -1
  150. package/lib/exercises/math/probaStat/events/describeEvent.js +0 -10
  151. package/lib/exercises/math/probaStat/events/eventNotation.d.ts.map +1 -1
  152. package/lib/exercises/math/probaStat/events/eventNotation.js +0 -10
  153. package/lib/exercises/math/probaStat/probaAsSumOfProbas.d.ts +0 -1
  154. package/lib/exercises/math/probaStat/probaAsSumOfProbas.d.ts.map +1 -1
  155. package/lib/exercises/math/probaStat/probaAsSumOfProbas.js +13 -14
  156. package/lib/exercises/math/probaStat/stats1var/compareSeriesDispersion.d.ts.map +1 -1
  157. package/lib/exercises/math/probaStat/stats1var/compareSeriesDispersion.js +0 -4
  158. package/lib/exercises/math/probaStat/stats1var/getQuartileProportionQuestion.d.ts.map +1 -1
  159. package/lib/exercises/math/probaStat/stats1var/getQuartileProportionQuestion.js +0 -10
  160. package/lib/exercises/math/probaStat/stats1var/interpretIndicatorsForLists.d.ts.map +1 -1
  161. package/lib/exercises/math/probaStat/stats1var/interpretIndicatorsForLists.js +2 -3
  162. package/lib/exercises/math/probaStat/stats1var/plausibilityOfAverage.d.ts.map +1 -1
  163. package/lib/exercises/math/probaStat/stats1var/plausibilityOfAverage.js +26 -25
  164. package/lib/exercises/math/probaStat/stats2var/fineAdjustementExercise.d.ts.map +1 -1
  165. package/lib/exercises/math/probaStat/stats2var/fineAdjustementExercise.js +0 -4
  166. package/lib/exercises/math/python/pythonForLoopInstructionCompletion.d.ts.map +1 -1
  167. package/lib/exercises/math/python/pythonForLoopInstructionCompletion.js +0 -10
  168. package/lib/exercises/math/python/pythonIfStatementCompletion.d.ts.map +1 -1
  169. package/lib/exercises/math/python/pythonIfStatementCompletion.js +7 -8
  170. package/lib/exercises/math/python/pythonSimpleFunctionInstructionCompletion.d.ts.map +1 -1
  171. package/lib/exercises/math/python/pythonSimpleFunctionInstructionCompletion.js +0 -10
  172. package/lib/exercises/math/python/pythonWhileStatementCompletion.d.ts.map +1 -1
  173. package/lib/exercises/math/python/pythonWhileStatementCompletion.js +5 -6
  174. package/lib/exercises/math/python/pythonWhileStatementOperationCompletion.d.ts.map +1 -1
  175. package/lib/exercises/math/python/pythonWhileStatementOperationCompletion.js +5 -6
  176. package/lib/exercises/math/python/variableType.d.ts.map +1 -1
  177. package/lib/exercises/math/python/variableType.js +0 -10
  178. package/lib/exercises/math/sampling/isSamplingRepresentative.d.ts.map +1 -1
  179. package/lib/exercises/math/sampling/isSamplingRepresentative.js +0 -4
  180. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.d.ts.map +1 -1
  181. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.js +0 -4
  182. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.d.ts.map +1 -1
  183. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +0 -4
  184. package/lib/exercises/math/sequences/geometric/geometricVariations.d.ts.map +1 -1
  185. package/lib/exercises/math/sequences/geometric/geometricVariations.js +0 -4
  186. package/lib/exercises/math/sets/intervals/isNumberInInterval.d.ts.map +1 -1
  187. package/lib/exercises/math/sets/intervals/isNumberInInterval.js +0 -10
  188. package/lib/exercises/math/sets/isNumberDecimal.d.ts.map +1 -1
  189. package/lib/exercises/math/sets/isNumberDecimal.js +0 -10
  190. package/lib/exercises/math/sets/nameOfNumberSets.d.ts.map +1 -1
  191. package/lib/exercises/math/sets/nameOfNumberSets.js +0 -10
  192. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.d.ts.map +1 -1
  193. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.js +0 -1
  194. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.d.ts.map +1 -1
  195. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.js +0 -4
  196. package/lib/exercises/pc/chemicalReactions/identifyLimitingReagent.d.ts.map +1 -1
  197. package/lib/exercises/pc/chemicalReactions/identifyLimitingReagent.js +0 -4
  198. package/lib/exercises/pc/chemicalReactions/identifyStoichiometricMixture.d.ts.map +1 -1
  199. package/lib/exercises/pc/chemicalReactions/identifyStoichiometricMixture.js +0 -4
  200. package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.d.ts.map +1 -1
  201. package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.js +0 -4
  202. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.d.ts.map +1 -1
  203. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.js +0 -4
  204. package/lib/exercises/pc/moleculeNomenclature.d.ts.map +1 -1
  205. package/lib/exercises/pc/moleculeNomenclature.js +0 -4
  206. package/lib/exercises/pc/motion/motionReference.d.ts.map +1 -1
  207. package/lib/exercises/pc/motion/motionReference.js +0 -4
  208. package/lib/exercises/pc/motion/typeOfAcceleration.d.ts.map +1 -1
  209. package/lib/exercises/pc/motion/typeOfAcceleration.js +0 -4
  210. package/lib/exercises/pc/sound/frequencyComparison.d.ts.map +1 -1
  211. package/lib/exercises/pc/sound/frequencyComparison.js +0 -4
  212. package/lib/index.d.ts +10 -5
  213. package/lib/index.d.ts.map +1 -1
  214. package/lib/math/progCalc/progCalc.d.ts +3 -3
  215. package/lib/math/progCalc/progCalc.d.ts.map +1 -1
  216. package/lib/math/progCalc/progCalc.js +13 -3
  217. package/lib/tests/exoTest.d.ts.map +1 -1
  218. package/lib/tests/exoTest.js +7 -0
  219. package/lib/tests/questionTest.d.ts.map +1 -1
  220. package/lib/tests/questionTest.js +3 -2
  221. package/package.json +1 -1
@@ -5,7 +5,6 @@ import { VectorConstructor } from "../../../../../math/geometry/vector.js";
5
5
  import { randint } from "../../../../../math/utils/random/randint.js";
6
6
  import { coinFlip } from "../../../../../utils/alea/coinFlip.js";
7
7
  import { random } from "../../../../../utils/alea/random.js";
8
- import { handleVEAError } from "../../../../../utils/errors/handleVEAError.js";
9
8
  const getPropositions = (n, { answer }) => {
10
9
  const propositions = [];
11
10
  addValidProp(propositions, answer, "raw");
@@ -51,14 +50,6 @@ const getCorrection = (identifiers) => {
51
50
  }
52
51
  return `Puisque les droites $(${firstVec.name})$ et $(${secondVec.name})$ ne sont pas parallèles, les vecteurs $${firstVec.toTex()}$ et $${secondVec.toTex()}$ ne sont pas colinéaires.`;
53
52
  };
54
- const isAnswerValid = () => {
55
- try {
56
- throw Error("VEA not implemented");
57
- }
58
- catch (err) {
59
- return handleVEAError(err);
60
- }
61
- };
62
53
  const getColinearityFromPictureQuestion = () => {
63
54
  let firstVec, secondVec;
64
55
  let isGenerationOk = false;
@@ -218,7 +209,6 @@ export const colinearityFromPicture = {
218
209
  qcmTimer: 60,
219
210
  freeTimer: 60,
220
211
  getPropositions,
221
- isAnswerValid,
222
212
  subject: "Mathématiques",
223
213
  getInstruction,
224
214
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"equalCaracteristicFromGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/vectors/equalCaracteristicFromGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA2RF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAgB7D,CAAC"}
1
+ {"version":3,"file":"equalCaracteristicFromGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/vectors/equalCaracteristicFromGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAwRF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAe7D,CAAC"}
@@ -260,9 +260,6 @@ const getPropositions = (n, { answer }) => {
260
260
  tryToAddWrongProp(propositions, "Non", "raw");
261
261
  return shuffleProps(propositions, n);
262
262
  };
263
- const isAnswerValid = (ans, { answer }) => {
264
- return ans === answer;
265
- };
266
263
  export const equalCaracteristicFromGraph = {
267
264
  id: "equalCaracteristicFromGraph",
268
265
  label: "Caractéristiques des vecteurs : direction, sens, norme, égalité, opposés",
@@ -271,7 +268,6 @@ export const equalCaracteristicFromGraph = {
271
268
  qcmTimer: 60,
272
269
  freeTimer: 60,
273
270
  getPropositions,
274
- isAnswerValid,
275
271
  answerType: "QCU",
276
272
  hasGeogebra: true,
277
273
  subject: "Mathématiques",
@@ -1 +1 @@
1
- {"version":3,"file":"findRightCalculForPriceEvolution.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/findRightCalculForPriceEvolution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAsLF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAelE,CAAC"}
1
+ {"version":3,"file":"findRightCalculForPriceEvolution.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/findRightCalculForPriceEvolution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAmLF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAclE,CAAC"}
@@ -93,9 +93,6 @@ $$`;
93
93
  const getKeys = () => {
94
94
  return [];
95
95
  };
96
- const isAnswerValid = () => {
97
- throw Error("VEA not implemented");
98
- };
99
96
  const getFindRightCalculQuestion = () => {
100
97
  const evolution = randint(-6, 7, [0]) * 10;
101
98
  const type = evolution < 0 ? random([1, 2]) : random([3, 4]);
@@ -136,7 +133,6 @@ export const findRightCalculForPriceEvolution = {
136
133
  qcmTimer: 60,
137
134
  freeTimer: 60,
138
135
  getPropositions,
139
- isAnswerValid,
140
136
  subject: "Mathématiques",
141
137
  answerType: "QCU",
142
138
  getQuestionFromIdentifiers,
@@ -1 +1 @@
1
- {"version":3,"file":"mostLeastProbable.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/basicProbas/mostLeastProbable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAM7C,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AA+HF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAkBnD,CAAC"}
1
+ {"version":3,"file":"mostLeastProbable.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/basicProbas/mostLeastProbable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAM7C,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAuHF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAiBnD,CAAC"}
@@ -2,7 +2,6 @@ import { addValidProp, tryToAddWrongProp, shuffleProps, } from "../../../../exer
2
2
  import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { RationalConstructor } from "../../../../math/numbers/rationals/rational.js";
4
4
  import { randfloat } from "../../../../math/utils/random/randfloat.js";
5
- import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
6
5
  import { coinFlip } from "../../../../utils/alea/coinFlip.js";
7
6
  import { reifyAlgebraic, } from "../../../../tree/nodes/nodeConstructor.js";
8
7
  import { round } from "../../../../math/utils/round.js";
@@ -62,14 +61,6 @@ Puisque $${sortedAsc
62
61
  .join("\\leq")}$, l'issue la ${target} probable est donc $${result}$.`;
63
62
  };
64
63
  const getKeys = () => [];
65
- const isAnswerValid = (ans, { answer }) => {
66
- try {
67
- return ans.trim() === answer;
68
- }
69
- catch (err) {
70
- return handleVEAError(err);
71
- }
72
- };
73
64
  const getMostLeastProbableQuestion = () => {
74
65
  let numericValues = [];
75
66
  let counter = 0;
@@ -106,7 +97,6 @@ export const mostLeastProbable = {
106
97
  qcmTimer: 60,
107
98
  freeTimer: 60,
108
99
  getPropositions,
109
- isAnswerValid,
110
100
  subject: "Mathématiques",
111
101
  getInstruction,
112
102
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"possibleValuesForProba.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/basicProbas/possibleValuesForProba.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAUrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAW7C,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,eAAe,EAAE,CAAC;IAClC,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AA2EF,KAAK,OAAO,GAAG;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAwMF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAgBjE,CAAC"}
1
+ {"version":3,"file":"possibleValuesForProba.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/basicProbas/possibleValuesForProba.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAUrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAW7C,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,eAAe,EAAE,CAAC;IAClC,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AA2EF,KAAK,OAAO,GAAG;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAuNF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAgBjE,CAAC"}
@@ -19,10 +19,10 @@ import { random } from "../../../../utils/alea/random.js";
19
19
  import { shuffle } from "../../../../utils/alea/shuffle.js";
20
20
  const getInstruction = (identifiers) => {
21
21
  const { isFilterPossibleProba } = identifiers;
22
- return `Parmi les valeurs de la liste ci-dessous, donner celles qui sont des valeurs ${isFilterPossibleProba ? "possibles" : "impossibles"} pour une probabilité.`;
22
+ return `Parmi les valeurs de la liste ci-dessous, donner celles qui sont des valeurs ${isFilterPossibleProba ? "**possibles**" : "**impossibles**"} pour une probabilité.`;
23
23
  };
24
24
  const getHint = () => {
25
- return "Une probabilité est toujours comprise entre $0\\%$ et $100\\%$.";
25
+ return "Une probabilité est un nombre compris entre $0$ et $1$.";
26
26
  };
27
27
  const getCorrection = (identifiers) => {
28
28
  const { arrayOfNodeIds, isFilterPossibleProba } = identifiers;
@@ -69,7 +69,14 @@ const getPropositions = (_, { answer, ...identifiers }) => {
69
69
  return propositions;
70
70
  };
71
71
  const optsDefault = {
72
- numberTypes: ["Entier", "Décimal", "Fraction", "Puiss10", "Sci", "Réel"],
72
+ numberTypes: [
73
+ "Entier",
74
+ "Décimal",
75
+ "Fraction",
76
+ "Puissance de 10",
77
+ "Écriture scientifique",
78
+ "Réel",
79
+ ],
73
80
  };
74
81
  const options = [
75
82
  {
@@ -77,7 +84,14 @@ const options = [
77
84
  label: "Types de nombres",
78
85
  type: GeneratorOptionType.multiselect,
79
86
  target: GeneratorOptionTarget.generation,
80
- values: ["Entier", "Décimal", "Fraction", "Puiss10", "Sci", "Réel"],
87
+ values: [
88
+ "Entier",
89
+ "Décimal",
90
+ "Fraction",
91
+ "Puissance de 10",
92
+ "Écriture scientifique",
93
+ "Réel",
94
+ ],
81
95
  defaultValue: optsDefault.numberTypes,
82
96
  },
83
97
  ];
@@ -98,9 +112,9 @@ const createRandomNode = (numberType, isPossibleProba) => {
98
112
  return frac(num, den);
99
113
  }
100
114
  }
101
- case "Puiss10":
115
+ case "Puissance de 10":
102
116
  return power(10, randint(-15, 1));
103
- case "Sci":
117
+ case "Écriture scientifique":
104
118
  if (probaFlip(0.7)) {
105
119
  return multiply(randfloat(1, 10, randint(1, 5)), power(10, randint(-15, 0)));
106
120
  }
@@ -142,9 +156,9 @@ const createRandomNode = (numberType, isPossibleProba) => {
142
156
  return frac(num, den);
143
157
  }
144
158
  }
145
- case "Puiss10":
159
+ case "Puissance de 10":
146
160
  return power(10, randint(1, 15));
147
- case "Sci":
161
+ case "Écriture scientifique":
148
162
  if (probaFlip(0.7)) {
149
163
  return coinFlip()
150
164
  ? multiply(randfloat(1, 10, randint(1, 5), [1]), power(10, randint(0, 15)))
@@ -175,10 +189,11 @@ const getPossibleValuesForProbaQuestion = (optsIn) => {
175
189
  //create numberType list
176
190
  const dictNumberTypeToPriority = {
177
191
  Entier: 1,
178
- Puiss10: 2,
192
+ "Puissance de 10": 2,
179
193
  Décimal: 3,
180
194
  Fraction: 4,
181
195
  Réel: 5,
196
+ "Écriture scientifique": 6,
182
197
  };
183
198
  let arrNumberType = [...opts.numberTypes];
184
199
  //filler
@@ -1 +1 @@
1
- {"version":3,"file":"checkEquiprobability.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/checkEquiprobability.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAoIF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAkBtD,CAAC"}
1
+ {"version":3,"file":"checkEquiprobability.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/checkEquiprobability.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AA6HF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAiBtD,CAAC"}
@@ -3,7 +3,6 @@ import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuesti
3
3
  import { randint } from "../../../math/utils/random/randint.js";
4
4
  import { frac } from "../../../tree/nodes/operators/fractionNode.js";
5
5
  import { coinFlip } from "../../../utils/alea/coinFlip.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");
@@ -65,14 +64,6 @@ ${distribution.every((v) => v === distribution[0])
65
64
  const getKeys = () => {
66
65
  return [];
67
66
  };
68
- const isAnswerValid = (ans, { answer }) => {
69
- try {
70
- return ans === answer;
71
- }
72
- catch (err) {
73
- return handleVEAError(err);
74
- }
75
- };
76
67
  const getCheckEquiprobabilityQuestion = () => {
77
68
  let total;
78
69
  let distribution;
@@ -117,7 +108,6 @@ export const checkEquiprobability = {
117
108
  qcmTimer: 60,
118
109
  freeTimer: 60,
119
110
  getPropositions,
120
- isAnswerValid,
121
111
  subject: "Mathématiques",
122
112
  getInstruction,
123
113
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"conditionalProbaWriteFromFrench.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/conditionalProbaWriteFromFrench.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAcT,MAAM,mBAAmB,CAAC;AAK3B,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AA0QF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,WAAW,CAejE,CAAC"}
1
+ {"version":3,"file":"conditionalProbaWriteFromFrench.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/conditionalProbaWriteFromFrench.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAcT,MAAM,mBAAmB,CAAC;AAK3B,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AA8QF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,WAAW,CAcjE,CAAC"}
@@ -108,9 +108,13 @@ const getInstruction = (identifiers) => {
108
108
  let instruction = `${situation.context}`;
109
109
  instruction += `
110
110
 
111
- Soit A l'évenement : "${situation.strA}".
111
+ Soit $A$ l'évenement :
112
112
 
113
- Soit B l'évenement : "${situation.strB}".`;
113
+ > ${situation.strA}
114
+
115
+ Soit $B$ l'évenement :
116
+
117
+ > ${situation.strB}`;
114
118
  instruction += `
115
119
 
116
120
  Écris en langage mathématique :
@@ -179,9 +183,9 @@ const getQuestionFromIdentifiers = (identifiers) => {
179
183
  const getPropositions = (n, { answer }) => {
180
184
  const propositions = [];
181
185
  addValidProp(propositions, answer);
182
- tryToAddWrongProp(propositions, `P(A\\cap B)`, "tex");
183
- tryToAddWrongProp(propositions, `P_A(B)`, "tex");
184
- tryToAddWrongProp(propositions, `P_B(A)`, "tex");
186
+ tryToAddWrongProp(propositions, `P\\left(A\\cap B\\right)`, "tex");
187
+ tryToAddWrongProp(propositions, `P_A\\left(B\\right)`, "tex");
188
+ tryToAddWrongProp(propositions, `P_B\\left(A\\right)`, "tex");
185
189
  tryToAddWrongProp(propositions, `P(A)`, "tex");
186
190
  tryToAddWrongProp(propositions, `P(B)`, "tex");
187
191
  return shuffleProps(propositions, n);
@@ -213,5 +217,4 @@ export const conditionalProbaWriteFromFrench = {
213
217
  subject: "Mathématiques",
214
218
  hasHintAndCorrection: true,
215
219
  getQuestionFromIdentifiers,
216
- answerType: "QCU",
217
220
  };
@@ -1 +1 @@
1
- {"version":3,"file":"describeEvent.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/events/describeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,QAAQ,EAAE,OAAO,GAAG,cAAc,GAAG,MAAM,CAAC;CAC7C,CAAC;AAoLF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAkB/C,CAAC"}
1
+ {"version":3,"file":"describeEvent.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/events/describeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,QAAQ,EAAE,OAAO,GAAG,cAAc,GAAG,MAAM,CAAC;CAC7C,CAAC;AA6KF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAiB/C,CAAC"}
@@ -2,7 +2,6 @@ import { addValidProp, shuffleProps, tryToAddWrongProp, propWhile, } from "../..
2
2
  import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { coinFlip } from "../../../../utils/alea/coinFlip.js";
4
4
  import { random } from "../../../../utils/alea/random.js";
5
- import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
6
5
  const getPropositions = (n, { answer, eventA, eventB }) => {
7
6
  const propositions = [];
8
7
  addValidProp(propositions, answer, "raw");
@@ -108,14 +107,6 @@ const getCorrection = (identifiers) => {
108
107
  const getKeys = () => {
109
108
  return [];
110
109
  };
111
- const isAnswerValid = () => {
112
- try {
113
- throw Error("VEA not implemented");
114
- }
115
- catch (err) {
116
- return handleVEAError(err);
117
- }
118
- };
119
110
  const getDescribeEventQuestion = () => {
120
111
  const allEvents = [
121
112
  "trouver des mûres",
@@ -164,7 +155,6 @@ export const describeEvent = {
164
155
  qcmTimer: 60,
165
156
  freeTimer: 60,
166
157
  getPropositions,
167
- isAnswerValid,
168
158
  subject: "Mathématiques",
169
159
  getInstruction,
170
160
  getHint,
@@ -1 +1 @@
1
- {"version":3,"file":"eventNotation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/events/eventNotation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,QAAQ,EAAE,OAAO,GAAG,cAAc,GAAG,MAAM,CAAC;CAC7C,CAAC;AAmJF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAkB/C,CAAC"}
1
+ {"version":3,"file":"eventNotation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/events/eventNotation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,QAAQ,EAAE,OAAO,GAAG,cAAc,GAAG,MAAM,CAAC;CAC7C,CAAC;AA4IF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAiB/C,CAAC"}
@@ -2,7 +2,6 @@ import { addValidProp, shuffleProps, tryToAddWrongProp, propWhile, } from "../..
2
2
  import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { coinFlip } from "../../../../utils/alea/coinFlip.js";
4
4
  import { random } from "../../../../utils/alea/random.js";
5
- import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
6
5
  const getPropositions = (n, { answer }) => {
7
6
  const propositions = [];
8
7
  addValidProp(propositions, answer);
@@ -82,14 +81,6 @@ $$`;
82
81
  const getKeys = () => {
83
82
  return [];
84
83
  };
85
- const isAnswerValid = () => {
86
- try {
87
- throw Error("VEA not implemented");
88
- }
89
- catch (err) {
90
- return handleVEAError(err);
91
- }
92
- };
93
84
  const getEventNotationQuestion = () => {
94
85
  const allEvents = [
95
86
  "trouver des mûres",
@@ -138,7 +129,6 @@ export const eventNotation = {
138
129
  qcmTimer: 60,
139
130
  freeTimer: 60,
140
131
  getPropositions,
141
- isAnswerValid,
142
132
  subject: "Mathématiques",
143
133
  getInstruction,
144
134
  getHint,
@@ -4,7 +4,6 @@ type Identifiers = {
4
4
  indexSituation: number;
5
5
  eventIds: EventIdentifiers;
6
6
  arrProba: NodeIdentifiers[];
7
- isProbasAreNumbers: boolean;
8
7
  };
9
8
  type EventIdentifiers = {
10
9
  type: "elementary";
@@ -1 +1 @@
1
- {"version":3,"file":"probaAsSumOfProbas.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/probaAsSumOfProbas.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAkBT,MAAM,mBAAmB,CAAC;AAK3B,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAc7C,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAE5B,kBAAkB,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,KAAK,gBAAgB,GACjB;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,CAAC,EAAE,eAAe,CAAC;CACpB,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,CAAC,EAAE,eAAe,CAAC;IACnB,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAifN,KAAK,OAAO,GAAG;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,kBAAkB,EAAE,OAAO,EAAE,CAAC;CAC/B,CAAC;AAsTF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAe7D,CAAC"}
1
+ {"version":3,"file":"probaAsSumOfProbas.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/probaAsSumOfProbas.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAkBT,MAAM,mBAAmB,CAAC;AAK3B,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAc7C,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B,CAAC;AAEF,KAAK,gBAAgB,GACjB;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,CAAC,EAAE,eAAe,CAAC;CACpB,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,CAAC,EAAE,eAAe,CAAC;IACnB,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AA4eN,KAAK,OAAO,GAAG;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,kBAAkB,EAAE,OAAO,EAAE,CAAC;CAC/B,CAAC;AAyTF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAe7D,CAAC"}
@@ -250,7 +250,8 @@ class FiniteProbDistr {
250
250
  }
251
251
  }
252
252
  const getInstruction = (identifiers) => {
253
- const { indexSituation, eventIds, arrProba, isProbasAreNumbers } = identifiers;
253
+ const { indexSituation, eventIds, arrProba } = identifiers;
254
+ const isProbasAreNumbers = true;
254
255
  const situation = arrayOfSituations[indexSituation];
255
256
  const finiteProbDistr = FiniteProbDistrConstructor.fromArrProba(arrProba.map((nodeIds) => NodeConstructor.fromIdentifiers(nodeIds)));
256
257
  let instruction = `${situation.str}`;
@@ -281,8 +282,9 @@ const getAnswerValueNode = (identifiers) => {
281
282
  return nodeSumSimplified;
282
283
  };
283
284
  const getAnswerNode = (identifiers) => {
284
- const { eventIds, isProbasAreNumbers } = identifiers;
285
+ const { eventIds } = identifiers;
285
286
  const evUnion = EventConstructor.fromIdentifiers(eventIds);
287
+ const isProbasAreNumbers = true;
286
288
  if (isProbasAreNumbers) {
287
289
  return getAnswerValueNode(identifiers);
288
290
  }
@@ -294,17 +296,11 @@ const getAnswer = (identifiers) => {
294
296
  return getAnswerNode(identifiers).toTex();
295
297
  };
296
298
  const getHint = () => {
297
- return `Les issues élémentaires sont mutuellement exclusives : Elles ne peuvent pas se produire en même temps.
298
- Si on prend deux issues élémentaires $E_1$ et $E_2$, alors:
299
-
300
- $$
301
- P(E_1 \\cap E_2) = 0
302
- $$
303
-
304
- Cela permet de calculer facilement la probabilité de l'union d'évènements élémentaires.`;
299
+ return `La probabilité d’un événement peut se calculer comme la somme des issues élémentaires qui le composent.`;
305
300
  };
306
301
  const getCorrection = (identifiers) => {
307
- const { eventIds, arrProba, isProbasAreNumbers } = identifiers;
302
+ const { eventIds, arrProba } = identifiers;
303
+ const isProbasAreNumbers = true;
308
304
  const evUnion = EventConstructor.fromIdentifiers(eventIds);
309
305
  let strCorrection = `Les issues élémentaires sont mutuellement exclusives.
310
306
  La probabilité de l'évènement "${eventIds.str}" est la somme des probabilités des issues élémentaires dont il est l'union.`;
@@ -377,7 +373,8 @@ const options = [
377
373
  },
378
374
  ];
379
375
  const getKeys = (identifiers) => {
380
- const { indexSituation, arrProba, isProbasAreNumbers } = identifiers;
376
+ const { indexSituation, arrProba } = identifiers;
377
+ const isProbasAreNumbers = true;
381
378
  const situation = arrayOfSituations[indexSituation];
382
379
  return [
383
380
  ...[
@@ -406,7 +403,8 @@ const getKeys = (identifiers) => {
406
403
  ];
407
404
  };
408
405
  const getPropositions = (n, { answer, ...identifiers }) => {
409
- const { eventIds, arrProba, isProbasAreNumbers } = identifiers;
406
+ const { eventIds, arrProba } = identifiers;
407
+ const isProbasAreNumbers = true;
410
408
  const evUnion = EventConstructor.fromIdentifiers(eventIds);
411
409
  const propositions = [];
412
410
  addValidProp(propositions, answer);
@@ -487,7 +485,8 @@ const getValueNode = (tex, arrProba) => {
487
485
  });
488
486
  };
489
487
  const isAnswerValid = (ans, { answer, ...identifiers }) => {
490
- const { arrProba, isProbasAreNumbers } = identifiers;
488
+ const { arrProba } = identifiers;
489
+ const isProbasAreNumbers = true;
491
490
  const nodeAnswer = getAnswerValueNode(identifiers);
492
491
  let nodeAns;
493
492
  if (isProbasAreNumbers) {
@@ -1 +1 @@
1
- {"version":3,"file":"compareSeriesDispersion.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/compareSeriesDispersion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAYrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AA+HF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAqBzD,CAAC"}
1
+ {"version":3,"file":"compareSeriesDispersion.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/compareSeriesDispersion.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,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AA4HF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAoBzD,CAAC"}
@@ -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":"interpretIndicatorsForLists.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/interpretIndicatorsForLists.ts"],"names":[],"mappings":"AAAA,OAAO,EAWL,QAAQ,EACT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AA2GF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAiB7D,CAAC"}
1
+ {"version":3,"file":"interpretIndicatorsForLists.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/interpretIndicatorsForLists.ts"],"names":[],"mappings":"AAAA,OAAO,EAWL,QAAQ,EACT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AA2GF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAgB7D,CAAC"}
@@ -9,7 +9,7 @@ const getInstruction = (identifiers) => {
9
9
  return `On considère les séries suivantes :
10
10
 
11
11
  ${series.map(([name, values]) => {
12
- return `Série ${name} : ${values
12
+ return `- Série $${name}$ : ${values
13
13
  .map((value) => `$${value.frenchify()}$`)
14
14
  .join(" ; ")}`;
15
15
  }).join(`
@@ -85,6 +85,5 @@ export const interpretIndicatorsForLists = {
85
85
  hasHintAndCorrection: true,
86
86
  subject: "Mathématiques",
87
87
  getQuestionFromIdentifiers,
88
- answerType: "QCM",
89
- isQCM: true,
88
+ answerType: "QCU",
90
89
  };
@@ -1 +1 @@
1
- {"version":3,"file":"plausibilityOfAverage.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/plausibilityOfAverage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,kBAAkB,EAAE,OAAO,CAAC;CAC7B,CAAC;AAyKF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAkBvD,CAAC"}
1
+ {"version":3,"file":"plausibilityOfAverage.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/plausibilityOfAverage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,kBAAkB,EAAE,OAAO,CAAC;CAC7B,CAAC;AAoKF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAkBvD,CAAC"}
@@ -3,6 +3,7 @@ import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQue
3
3
  import { randint } from "../../../../math/utils/random/randint.js";
4
4
  import { coinFlip } from "../../../../utils/alea/coinFlip.js";
5
5
  import { random } from "../../../../utils/alea/random.js";
6
+ import { mdTable } from "../../../../utils/markdown/mdTable.js";
6
7
  const getInstruction = (identifiers) => {
7
8
  const { a, values, isQuestionIsAboveA } = identifiers;
8
9
  return `Si on considère la série suivante :
@@ -17,40 +18,40 @@ La proposition suivante est-elle vraie ?
17
18
  `;
18
19
  };
19
20
  const getHint = ({ a }) => {
20
- return `Regarder l'écart des valeurs par rapport à $${a.frenchify()}$.`;
21
+ return `Regarde l'écart des valeurs par rapport à $${a.frenchify()}$.`;
21
22
  };
22
23
  const getCorrection = (identifiers) => {
23
24
  const { a, values, isAboveA } = identifiers;
24
25
  const answer = getAnswer(identifiers);
25
26
  const valuesBelowA = values.filter((v) => v < a);
26
27
  const valuesAboveA = values.filter((v) => v > a);
27
- return `${answer}, car si l'on regarde les valeurs strictement inférieures à $${a.frenchify()}$ :
28
-
29
- ${valuesBelowA
30
- .map((v) => `
31
-
32
- $${v.frenchify()}$ est $${(a - v).frenchify()}$ points en dessous de $${a.frenchify()}$
28
+ return `${answer}, car si l'on regarde les écarts par rapport à $${a.frenchify()}$ :
33
29
 
34
- `)
35
- .join("")}
36
- Ce qui fait en tout $${valuesBelowA
37
- .map((v) => a - v)
38
- .reduce((acc, v) => acc + v, 0)
39
- .frenchify()}$ points en dessous de $${a.frenchify()}$.
30
+ $\\ $
40
31
 
41
- Si l'on regarde les valeurs strictement supérieures à $${a.frenchify()}$ :
42
-
43
- ${valuesAboveA
44
- .map((v) => `
45
-
46
- $${v.frenchify()}$ est $${(v - a).frenchify()}$ points en dessus de $${a.frenchify()}$
32
+ ${mdTable([
33
+ ["\\text{Valeur}", "\\text{Écart}"],
34
+ [`\\text{Valeurs inférieures à } ${a.frenchify()}`, "\\text{}"],
35
+ ...valuesBelowA.map((v) => [v.frenchify(), (v - a).frenchify()]),
36
+ [
37
+ "\\text{Total inférieur}",
38
+ valuesBelowA
39
+ .map((v) => v - a)
40
+ .reduce((acc, v) => acc + v, 0)
41
+ .frenchify(),
42
+ ],
43
+ [`\\text{Valeurs supérieures à } ${a.frenchify()}`, "\\text{}"],
44
+ ...valuesAboveA.map((v) => [v.frenchify(), `+${(v - a).frenchify()}`]),
45
+ [
46
+ "\\text{Total supérieur}",
47
+ `+${valuesAboveA
48
+ .map((v) => v - a)
49
+ .reduce((acc, v) => acc + v, 0)
50
+ .frenchify()}`,
51
+ ],
52
+ ], true)}
47
53
 
48
- `)
49
- .join("")}
50
- Ce qui fait en tout $${valuesAboveA
51
- .map((v) => v - a)
52
- .reduce((acc, v) => acc + v, 0)
53
- .frenchify()}$ points au dessus de $${a.frenchify()}$.
54
+ $\\ $
54
55
 
55
56
  Le total ${isAboveA ? `supérieur` : `inférieur`} est plus grand, en valeur absolue, que le total ${isAboveA ? `inférieur` : `supérieur`} donc on peut affirmer que la moyenne de cette série est strictement ${isAboveA ? `supérieure` : `inférieure`} à $${a.frenchify()}$.`;
56
57
  };
@@ -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
  };