math-exercises 3.0.67 → 3.0.69

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 (236) hide show
  1. package/lib/exercises/math/calcul/fractions/fractionToPercentToDecimal.d.ts.map +1 -1
  2. package/lib/exercises/math/calcul/fractions/fractionToPercentToDecimal.js +55 -37
  3. package/lib/exercises/math/calcul/fractions/fractionsSumsMultiplesDenominators.d.ts.map +1 -1
  4. package/lib/exercises/math/calcul/fractions/fractionsSumsMultiplesDenominators.js +4 -4
  5. package/lib/exercises/math/calcul/fractions/fractionsSumsPrimeDenominators.d.ts.map +1 -1
  6. package/lib/exercises/math/calcul/fractions/fractionsSumsPrimeDenominators.js +31 -18
  7. package/lib/exercises/math/calcul/fractions/fractionsSumsSameDenominators.d.ts.map +1 -1
  8. package/lib/exercises/math/calcul/fractions/fractionsSumsSameDenominators.js +59 -35
  9. package/lib/exercises/math/calculLitteral/systems/basicNiceValuesSystemResolution.js +1 -1
  10. package/lib/exercises/math/combinatory/anagrams.d.ts.map +1 -1
  11. package/lib/exercises/math/combinatory/anagrams.js +18 -7
  12. package/lib/exercises/math/combinatory/ballsCounting.d.ts.map +1 -1
  13. package/lib/exercises/math/combinatory/ballsCounting.js +8 -6
  14. package/lib/exercises/math/combinatory/diceCounting.d.ts.map +1 -1
  15. package/lib/exercises/math/combinatory/diceCounting.js +62 -27
  16. package/lib/exercises/math/functions/absolute/absolueValueAffineEquation.d.ts.map +1 -1
  17. package/lib/exercises/math/functions/absolute/absolueValueAffineEquation.js +4 -0
  18. package/lib/exercises/math/functions/absolute/absolueValueInequationsSup.d.ts.map +1 -1
  19. package/lib/exercises/math/functions/absolute/absolueValueInequationsSup.js +4 -4
  20. package/lib/exercises/math/functions/absolute/absoluteValueEquations.d.ts.map +1 -1
  21. package/lib/exercises/math/functions/absolute/absoluteValueEquations.js +22 -10
  22. package/lib/exercises/math/functions/absolute/absoluteValueInequations.d.ts.map +1 -1
  23. package/lib/exercises/math/functions/absolute/absoluteValueInequations.js +22 -8
  24. package/lib/exercises/math/functions/affines/affineAdjustment.d.ts.map +1 -1
  25. package/lib/exercises/math/functions/affines/affineAdjustment.js +4 -4
  26. package/lib/exercises/math/functions/affines/affineAdjustmentComplete.d.ts.map +1 -1
  27. package/lib/exercises/math/functions/affines/affineAdjustmentComplete.js +4 -4
  28. package/lib/exercises/math/functions/affines/affineAdjustmentRsquared.d.ts.map +1 -1
  29. package/lib/exercises/math/functions/affines/affineAdjustmentRsquared.js +4 -4
  30. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.d.ts.map +1 -1
  31. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.js +4 -4
  32. package/lib/exercises/math/functions/affines/affineExpressionReading.d.ts.map +1 -1
  33. package/lib/exercises/math/functions/affines/affineExpressionReading.js +1 -0
  34. package/lib/exercises/math/functions/affines/affineMeanValue.d.ts.map +1 -1
  35. package/lib/exercises/math/functions/affines/affineMeanValue.js +33 -14
  36. package/lib/exercises/math/functions/affines/algebricExpressionOfAffine.d.ts.map +1 -1
  37. package/lib/exercises/math/functions/affines/algebricExpressionOfAffine.js +4 -4
  38. package/lib/exercises/math/functions/affines/leadingCoeffAndOriginOrdinate.d.ts.map +1 -1
  39. package/lib/exercises/math/functions/affines/leadingCoeffAndOriginOrdinate.js +4 -0
  40. package/lib/exercises/math/functions/affines/leadingCoefficient.d.ts.map +1 -1
  41. package/lib/exercises/math/functions/affines/leadingCoefficient.js +4 -5
  42. package/lib/exercises/math/functions/affines/leadingCoefficientCalculV1.d.ts.map +1 -1
  43. package/lib/exercises/math/functions/affines/leadingCoefficientCalculV1.js +4 -2
  44. package/lib/exercises/math/functions/basics/graphicEquation.d.ts.map +1 -1
  45. package/lib/exercises/math/functions/basics/graphicEquation.js +4 -2
  46. package/lib/exercises/math/functions/basics/graphicInequation.d.ts.map +1 -1
  47. package/lib/exercises/math/functions/basics/graphicInequation.js +4 -2
  48. package/lib/exercises/math/functions/basics/graphicInequationAffine.d.ts.map +1 -1
  49. package/lib/exercises/math/functions/basics/graphicInequationAffine.js +4 -5
  50. package/lib/exercises/math/functions/basics/imageAntecedentFromSentence.d.ts.map +1 -1
  51. package/lib/exercises/math/functions/basics/imageAntecedentFromSentence.js +4 -3
  52. package/lib/exercises/math/functions/basics/inverseImageFunction.d.ts.map +1 -1
  53. package/lib/exercises/math/functions/basics/inverseImageFunction.js +4 -6
  54. package/lib/exercises/math/functions/basics/inverseImageFunctionGeogebra.d.ts.map +1 -1
  55. package/lib/exercises/math/functions/basics/inverseImageFunctionGeogebra.js +0 -2
  56. package/lib/exercises/math/functions/basics/inverseImageFunctionTable.d.ts.map +1 -1
  57. package/lib/exercises/math/functions/basics/inverseImageFunctionTable.js +16 -15
  58. package/lib/exercises/math/functions/basics/twoFunctionsEquation.d.ts +1 -0
  59. package/lib/exercises/math/functions/basics/twoFunctionsEquation.d.ts.map +1 -1
  60. package/lib/exercises/math/functions/basics/twoFunctionsEquation.js +46 -32
  61. package/lib/exercises/math/functions/basics/twoFunctionsInequation.d.ts.map +1 -1
  62. package/lib/exercises/math/functions/basics/twoFunctionsInequation.js +4 -2
  63. package/lib/exercises/math/functions/cube/cubicEquation.d.ts.map +1 -1
  64. package/lib/exercises/math/functions/cube/cubicEquation.js +4 -3
  65. package/lib/exercises/math/functions/exponentials/exponentialsVariations.d.ts.map +1 -1
  66. package/lib/exercises/math/functions/exponentials/exponentialsVariations.js +4 -1
  67. package/lib/exercises/math/functions/integral/integralAffines.d.ts.map +1 -1
  68. package/lib/exercises/math/functions/integral/integralAffines.js +4 -2
  69. package/lib/exercises/math/functions/integral/integralDerivatedUCosU.d.ts.map +1 -1
  70. package/lib/exercises/math/functions/integral/integralDerivatedUCosU.js +27 -12
  71. package/lib/exercises/math/functions/integral/integralDerivatedUSinU.d.ts.map +1 -1
  72. package/lib/exercises/math/functions/integral/integralDerivatedUSinU.js +26 -11
  73. package/lib/exercises/math/functions/integral/integralExpAxPlusB.d.ts.map +1 -1
  74. package/lib/exercises/math/functions/integral/integralExpAxPlusB.js +26 -11
  75. package/lib/exercises/math/functions/integral/integralExpU.d.ts.map +1 -1
  76. package/lib/exercises/math/functions/integral/integralExpU.js +38 -20
  77. package/lib/exercises/math/functions/integral/integralFractions.d.ts.map +1 -1
  78. package/lib/exercises/math/functions/integral/integralFractions.js +40 -21
  79. package/lib/exercises/math/functions/integral/integralKCosinus.d.ts.map +1 -1
  80. package/lib/exercises/math/functions/integral/integralKCosinus.js +29 -12
  81. package/lib/exercises/math/functions/integral/integralKSinus.d.ts.map +1 -1
  82. package/lib/exercises/math/functions/integral/integralKSinus.js +29 -12
  83. package/lib/exercises/math/functions/integral/integralTrinomials.d.ts.map +1 -1
  84. package/lib/exercises/math/functions/integral/integralTrinomials.js +4 -2
  85. package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.d.ts +0 -1
  86. package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.d.ts.map +1 -1
  87. package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.js +36 -15
  88. package/lib/exercises/math/functions/logarithm/log10Simplifying.d.ts.map +1 -1
  89. package/lib/exercises/math/functions/logarithm/log10Simplifying.js +43 -22
  90. package/lib/exercises/math/functions/logarithm/logEquation.d.ts.map +1 -1
  91. package/lib/exercises/math/functions/logarithm/logEquation.js +20 -11
  92. package/lib/exercises/math/functions/logarithm/logPowerEquation.d.ts.map +1 -1
  93. package/lib/exercises/math/functions/logarithm/logPowerEquation.js +26 -14
  94. package/lib/exercises/math/functions/logarithm/logSimplifiying.d.ts.map +1 -1
  95. package/lib/exercises/math/functions/logarithm/logSimplifiying.js +4 -3
  96. package/lib/exercises/math/functions/parity/parityFromAlgebra.d.ts.map +1 -1
  97. package/lib/exercises/math/functions/parity/parityFromAlgebra.js +29 -13
  98. package/lib/exercises/math/functions/parity/parityFromGraph.d.ts.map +1 -1
  99. package/lib/exercises/math/functions/parity/parityFromGraph.js +30 -12
  100. package/lib/exercises/math/functions/rationalFraction/rationalFractionForbiddenValue.d.ts.map +1 -1
  101. package/lib/exercises/math/functions/rationalFraction/rationalFractionForbiddenValue.js +27 -14
  102. package/lib/exercises/math/functions/sign/affineProductSign.d.ts.map +1 -1
  103. package/lib/exercises/math/functions/sign/affineProductSign.js +4 -4
  104. package/lib/exercises/math/functions/square/squareImageInterval.d.ts.map +1 -1
  105. package/lib/exercises/math/functions/square/squareImageInterval.js +39 -19
  106. package/lib/exercises/math/functions/trinoms/devForm/coefficientsIdentification.d.ts.map +1 -1
  107. package/lib/exercises/math/functions/trinoms/devForm/coefficientsIdentification.js +4 -3
  108. package/lib/exercises/math/functions/trinoms/devForm/variationsFromAlgebricForm.d.ts +1 -0
  109. package/lib/exercises/math/functions/trinoms/devForm/variationsFromAlgebricForm.d.ts.map +1 -1
  110. package/lib/exercises/math/functions/trinoms/devForm/variationsFromAlgebricForm.js +26 -9
  111. package/lib/exercises/math/functions/trinoms/equation/deltaTrinom.d.ts.map +1 -1
  112. package/lib/exercises/math/functions/trinoms/equation/deltaTrinom.js +25 -10
  113. package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationByFactorisation.d.ts.map +1 -1
  114. package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationByFactorisation.js +4 -2
  115. package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationFromCano.d.ts.map +1 -1
  116. package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationFromCano.js +4 -2
  117. package/lib/exercises/math/functions/trinoms/factoForm/factorizedFormFromRoots.d.ts.map +1 -1
  118. package/lib/exercises/math/functions/trinoms/factoForm/factorizedFormFromRoots.js +4 -4
  119. package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.d.ts.map +1 -1
  120. package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.js +4 -5
  121. package/lib/exercises/math/functions/trinoms/parabole/trinomSymetryAxisFromFacto.d.ts.map +1 -1
  122. package/lib/exercises/math/functions/trinoms/parabole/trinomSymetryAxisFromFacto.js +4 -4
  123. package/lib/exercises/math/functions/trinoms/roots/findSecondRoot.d.ts.map +1 -1
  124. package/lib/exercises/math/functions/trinoms/roots/findSecondRoot.js +4 -4
  125. package/lib/exercises/math/functions/trinoms/roots/niceRootsFromDevForm.d.ts.map +1 -1
  126. package/lib/exercises/math/functions/trinoms/roots/niceRootsFromDevForm.js +4 -2
  127. package/lib/exercises/math/functions/trinoms/roots/rootsFromDevForm.d.ts.map +1 -1
  128. package/lib/exercises/math/functions/trinoms/roots/rootsFromDevForm.js +4 -2
  129. package/lib/exercises/math/functions/trinoms/roots/rootsFromFactorizedForm.d.ts.map +1 -1
  130. package/lib/exercises/math/functions/trinoms/roots/rootsFromFactorizedForm.js +4 -2
  131. package/lib/exercises/math/functions/trinoms/roots/rootsProduct.d.ts.map +1 -1
  132. package/lib/exercises/math/functions/trinoms/roots/rootsProduct.js +4 -4
  133. package/lib/exercises/math/functions/trinoms/roots/rootsReading.d.ts.map +1 -1
  134. package/lib/exercises/math/functions/trinoms/roots/rootsReading.js +4 -3
  135. package/lib/exercises/math/functions/trinoms/roots/rootsSum.d.ts.map +1 -1
  136. package/lib/exercises/math/functions/trinoms/roots/rootsSum.js +4 -4
  137. package/lib/exercises/math/functions/trinoms/sign/trinomSignFromFacto.d.ts.map +1 -1
  138. package/lib/exercises/math/functions/trinoms/sign/trinomSignFromFacto.js +4 -0
  139. package/lib/exercises/math/functions/trinoms/sign/trinomSignFromRoots.d.ts.map +1 -1
  140. package/lib/exercises/math/functions/trinoms/sign/trinomSignFromRoots.js +4 -0
  141. package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaFromDevForm.d.ts.map +1 -1
  142. package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaFromDevForm.js +32 -11
  143. package/lib/exercises/math/functions/trinoms/summitAndCanonical/canonicalFromDevForm.d.ts.map +1 -1
  144. package/lib/exercises/math/functions/trinoms/summitAndCanonical/canonicalFromDevForm.js +24 -9
  145. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.d.ts.map +1 -1
  146. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.js +24 -9
  147. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumTypeFromAlgebricForm.d.ts +1 -0
  148. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumTypeFromAlgebricForm.d.ts.map +1 -1
  149. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumTypeFromAlgebricForm.js +29 -12
  150. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromDevForm.d.ts.map +1 -1
  151. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromDevForm.js +4 -0
  152. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromRoots.d.ts.map +1 -1
  153. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromRoots.js +4 -0
  154. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitReading.d.ts.map +1 -1
  155. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitReading.js +3 -0
  156. package/lib/exercises/math/functions/trinoms/trinomialMeanValue.d.ts.map +1 -1
  157. package/lib/exercises/math/functions/trinoms/trinomialMeanValue.js +33 -14
  158. package/lib/exercises/math/geometry/cartesian/cartesianFromTwoPoints.js +1 -1
  159. package/lib/exercises/math/geometry/euclidianConstructions/buildMediatriceWithCompass.d.ts +2 -0
  160. package/lib/exercises/math/geometry/euclidianConstructions/buildMediatriceWithCompass.d.ts.map +1 -1
  161. package/lib/exercises/math/geometry/euclidianConstructions/buildMediatriceWithCompass.js +55 -27
  162. package/lib/exercises/math/geometry/euclidianConstructions/buildPointFromAxialSymetry.d.ts.map +1 -1
  163. package/lib/exercises/math/geometry/euclidianConstructions/buildPointFromAxialSymetry.js +4 -0
  164. package/lib/exercises/math/geometry/euclidianConstructions/buildTriangleWithSizes.d.ts.map +1 -1
  165. package/lib/exercises/math/geometry/euclidianConstructions/buildTriangleWithSizes.js +4 -0
  166. package/lib/exercises/math/geometry/euclidianConstructions/pointImageFromTranslation.d.ts.map +1 -1
  167. package/lib/exercises/math/geometry/euclidianConstructions/pointImageFromTranslation.js +6 -2
  168. package/lib/exercises/math/geometry/lines/isPointOnCartesianLine.d.ts.map +1 -1
  169. package/lib/exercises/math/geometry/lines/isPointOnCartesianLine.js +7 -5
  170. package/lib/exercises/math/geometry/lines/isPointOnLine.d.ts.map +1 -1
  171. package/lib/exercises/math/geometry/lines/isPointOnLine.js +4 -0
  172. package/lib/exercises/math/geometry/parametric/extractPointFromParametricLine.d.ts.map +1 -1
  173. package/lib/exercises/math/geometry/parametric/extractPointFromParametricLine.js +4 -0
  174. package/lib/exercises/math/geometry/parametric/extractVectorFromParametricLine.d.ts.map +1 -1
  175. package/lib/exercises/math/geometry/parametric/extractVectorFromParametricLine.js +4 -0
  176. package/lib/exercises/math/geometry/parametric/pointFromParametricLine.d.ts.map +1 -1
  177. package/lib/exercises/math/geometry/parametric/pointFromParametricLine.js +4 -0
  178. package/lib/exercises/math/geometry/perimeters/circleRadiusFromPerimeter.d.ts.map +1 -1
  179. package/lib/exercises/math/geometry/perimeters/circleRadiusFromPerimeter.js +4 -0
  180. package/lib/exercises/math/geometry/perimeters/rectangleSideFromPerimeter.d.ts.map +1 -1
  181. package/lib/exercises/math/geometry/perimeters/rectangleSideFromPerimeter.js +4 -0
  182. package/lib/exercises/math/geometry/perimeters/squareSideFromPerimeter.d.ts.map +1 -1
  183. package/lib/exercises/math/geometry/perimeters/squareSideFromPerimeter.js +4 -0
  184. package/lib/exercises/math/geometry/pythagore/isTriangleRight.d.ts.map +1 -1
  185. package/lib/exercises/math/geometry/pythagore/isTriangleRight.js +4 -0
  186. package/lib/exercises/math/geometry/quadrilaterals/parallelogramAngles.d.ts.map +1 -1
  187. package/lib/exercises/math/geometry/quadrilaterals/parallelogramAngles.js +4 -0
  188. package/lib/exercises/math/geometry/quadrilaterals/quadrilateralRecognition.d.ts.map +1 -1
  189. package/lib/exercises/math/geometry/quadrilaterals/quadrilateralRecognition.js +4 -0
  190. package/lib/exercises/math/geometry/shapes/basicShapesRecognition.d.ts.map +1 -1
  191. package/lib/exercises/math/geometry/shapes/basicShapesRecognition.js +42 -23
  192. package/lib/exercises/math/geometry/thales/thalesCalcul.d.ts.map +1 -1
  193. package/lib/exercises/math/geometry/thales/thalesCalcul.js +8 -4
  194. package/lib/exercises/math/geometry/vectors/chasles.d.ts.map +1 -1
  195. package/lib/exercises/math/geometry/vectors/chasles.js +36 -12
  196. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOrthoInSquare.d.ts.map +1 -1
  197. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOrthoInSquare.js +4 -0
  198. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCoords.d.ts.map +1 -1
  199. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCoords.js +4 -2
  200. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.d.ts.map +1 -1
  201. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.js +4 -0
  202. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaNorms.d.ts.map +1 -1
  203. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaNorms.js +4 -0
  204. package/lib/exercises/math/percent/index.d.ts +1 -0
  205. package/lib/exercises/math/percent/index.d.ts.map +1 -1
  206. package/lib/exercises/math/percent/index.js +1 -0
  207. package/lib/exercises/pc/energy/calorificValue.d.ts.map +1 -1
  208. package/lib/exercises/pc/energy/calorificValue.js +58 -29
  209. package/lib/exercises/pc/energy/combustionTransferEnergy.d.ts.map +1 -1
  210. package/lib/exercises/pc/energy/combustionTransferEnergy.js +52 -29
  211. package/lib/exercises/pc/energy/combustionTransferEnergy2.d.ts.map +1 -1
  212. package/lib/exercises/pc/energy/combustionTransferEnergy2.js +96 -67
  213. package/lib/exercises/pc/energy/efficencyOfConverter.d.ts.map +1 -1
  214. package/lib/exercises/pc/energy/efficencyOfConverter.js +53 -40
  215. package/lib/exercises/pc/energy/efficiencyCalculation.d.ts.map +1 -1
  216. package/lib/exercises/pc/energy/efficiencyCalculation.js +66 -38
  217. package/lib/exercises/pc/energy/energyTransfer.d.ts +0 -2
  218. package/lib/exercises/pc/energy/energyTransfer.d.ts.map +1 -1
  219. package/lib/exercises/pc/energy/energyTransfer.js +27 -11
  220. package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.d.ts.map +1 -1
  221. package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.js +111 -64
  222. package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.d.ts.map +1 -1
  223. package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.js +86 -38
  224. package/lib/exercises/pc/fluids/mariotte.d.ts.map +1 -1
  225. package/lib/exercises/pc/fluids/mariotte.js +40 -23
  226. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.d.ts.map +1 -1
  227. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.js +81 -52
  228. package/lib/exercises/pc/forces/electroStaticForce.d.ts.map +1 -1
  229. package/lib/exercises/pc/forces/electroStaticForce.js +73 -58
  230. package/lib/exercises/pc/forces/forceWork.d.ts.map +1 -1
  231. package/lib/exercises/pc/forces/forceWork.js +22 -7
  232. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.d.ts.map +1 -1
  233. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.js +0 -2
  234. package/lib/index.d.ts +17 -4
  235. package/lib/index.d.ts.map +1 -1
  236. package/package.json +1 -1
@@ -144,6 +144,9 @@ const getAbsolueValueAffineEquationQuestion = (ops) => {
144
144
  firstAffine: new GeneralAffine(a, b).toIdentifiers(),
145
145
  secondAffine: new GeneralAffine(c, d).toIdentifiers(),
146
146
  };
147
+ return getQuestionFromIdentifiers(identifiers);
148
+ };
149
+ const getQuestionFromIdentifiers = (identifiers) => {
147
150
  const question = {
148
151
  answer: getAnswer(identifiers),
149
152
  instruction: getInstruction(identifiers),
@@ -171,4 +174,5 @@ export const absolueValueAffineEquation = {
171
174
  getCorrection,
172
175
  getAnswer,
173
176
  hasHintAndCorrection: true,
177
+ getQuestionFromIdentifiers,
174
178
  };
@@ -1 +1 @@
1
- {"version":3,"file":"absolueValueInequationsSup.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/absolute/absolueValueInequationsSup.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAsBrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAqGF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAgB5D,CAAC"}
1
+ {"version":3,"file":"absolueValueInequationsSup.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/absolute/absolueValueInequationsSup.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAsBrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AA0GF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAa5D,CAAC"}
@@ -76,6 +76,9 @@ const getAbsolueValueInequationsSupQuestion = (ops) => {
76
76
  c,
77
77
  isStrict,
78
78
  };
79
+ return getQuestionFromIdentifiers(identifiers);
80
+ };
81
+ const getQuestionFromIdentifiers = (identifiers) => {
79
82
  const question = {
80
83
  answer: getAnswer(identifiers),
81
84
  instruction: getInstruction(identifiers),
@@ -98,8 +101,5 @@ export const absolueValueInequationsSup = {
98
101
  getPropositions,
99
102
  isAnswerValid,
100
103
  subject: "Mathématiques",
101
- getInstruction,
102
- // getHint,
103
- // getCorrection,
104
- getAnswer,
104
+ getQuestionFromIdentifiers,
105
105
  };
@@ -1 +1 @@
1
- {"version":3,"file":"absoluteValueEquations.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/absolute/absoluteValueEquations.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAQT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAgEF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAcxD,CAAC"}
1
+ {"version":3,"file":"absoluteValueEquations.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/absolute/absoluteValueEquations.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAiFF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAaxD,CAAC"}
@@ -7,22 +7,35 @@ import { NumberNode } from "../../../../tree/nodes/numbers/numberNode.js";
7
7
  import { DiscreteSetNode } from "../../../../tree/nodes/sets/discreteSetNode.js";
8
8
  import { coinFlip } from "../../../../utils/alea/coinFlip.js";
9
9
  import { probaFlip } from "../../../../utils/alea/probaFlip.js";
10
- const getAbsoluteValueEquationsQuestion = () => {
11
- const poly = new Polynomial([randint(-9, 10, [0]), 1]);
12
- const a = probaFlip(0.9) ? randint(1, 10) : coinFlip() ? 0 : randint(-9, 0);
13
- //|x-b| = a
14
- const b = -poly.coefficients[0];
10
+ const getInstruction = (identifiers) => {
11
+ const { a, b } = identifiers;
12
+ const poly = new Polynomial([-b, 1]);
13
+ return `Résoudre l'équation $|${poly.toTree().toTex()}| = ${a}$.`;
14
+ };
15
+ const getAnswer = (identifiers) => {
16
+ const { a, b } = identifiers;
15
17
  const answer = a === 0
16
18
  ? `S=\\left\\{${b}\\right\\}`
17
19
  : a < 0
18
20
  ? `S=\\varnothing`
19
21
  : `S=\\left\\{${b - a};${b + a}\\right\\}`;
22
+ return answer;
23
+ };
24
+ const getAbsoluteValueEquationsQuestion = () => {
25
+ const poly = new Polynomial([randint(-9, 10, [0]), 1]);
26
+ const a = probaFlip(0.9) ? randint(1, 10) : coinFlip() ? 0 : randint(-9, 0);
27
+ //|x-b| = a
28
+ const b = -poly.coefficients[0];
29
+ const identifiers = { a, b };
30
+ return getQuestionFromIdentifiers(identifiers);
31
+ };
32
+ const getQuestionFromIdentifiers = (identifiers) => {
20
33
  const question = {
21
- answer: answer,
22
- instruction: `Résoudre l'équation $|${poly.toTree().toTex()}| = ${a}$.`,
34
+ answer: getAnswer(identifiers),
35
+ instruction: getInstruction(identifiers),
23
36
  keys: ["S", "equal", "varnothing", "lbrace", "semicolon", "rbrace"],
24
37
  answerFormat: "tex",
25
- identifiers: { a, b },
38
+ identifiers,
26
39
  };
27
40
  return question;
28
41
  };
@@ -60,13 +73,12 @@ export const absoluteValueEquations = {
60
73
  id: "absoluteValueEquation",
61
74
  connector: "\\iff",
62
75
  label: "Résoudre une équation avec valeur absolue",
63
- levels: ["2nde", "1reESM"],
64
76
  isSingleStep: true,
65
- sections: ["Valeur absolue", "Équations"],
66
77
  generator: (nb) => getDistinctQuestions(getAbsoluteValueEquationsQuestion, nb),
67
78
  qcmTimer: 60,
68
79
  freeTimer: 60,
69
80
  getPropositions,
70
81
  isAnswerValid,
71
82
  subject: "Mathématiques",
83
+ getQuestionFromIdentifiers,
72
84
  };
@@ -1 +1 @@
1
- {"version":3,"file":"absoluteValueInequations.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/absolute/absoluteValueInequations.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAQT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAuFF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAc1D,CAAC"}
1
+ {"version":3,"file":"absoluteValueInequations.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/absolute/absoluteValueInequations.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AA2GF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAa1D,CAAC"}
@@ -9,18 +9,33 @@ import { IntervalNode } from "../../../../tree/nodes/sets/intervalNode.js";
9
9
  import { unionIntervalParser } from "../../../../tree/parsers/unionIntervalParser.js";
10
10
  import { coinFlip } from "../../../../utils/alea/coinFlip.js";
11
11
  import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
12
+ const getInstruction = (identifiers) => {
13
+ const { a, b, isStrict } = identifiers;
14
+ const diff = new NumberNode(b - a);
15
+ const add = new NumberNode(b + a);
16
+ const poly = new Polynomial([-b, 1]);
17
+ return `Résoudre l'inéquation $|${poly.toTree().toTex()}|${isStrict ? "<" : "\\le"}${a}$.`;
18
+ };
19
+ const getAnswer = (identifiers) => {
20
+ const { a, b, isStrict } = identifiers;
21
+ const diff = new NumberNode(b - a);
22
+ const add = new NumberNode(b + a);
23
+ const answer = new InequationSolutionNode(new IntervalNode(diff, add, isStrict ? ClosureType.OO : ClosureType.FF)).toTex();
24
+ return answer;
25
+ };
12
26
  const getAbsoluteValueInequationsQuestion = () => {
13
27
  const poly = new Polynomial([randint(-9, 10, [0]), 1]);
14
28
  const a = randint(1, 10);
15
29
  //|x-b| <= a
16
30
  const b = -poly.coefficients[0];
17
31
  const isStrict = coinFlip();
18
- const diff = new NumberNode(b - a);
19
- const add = new NumberNode(b + a);
20
- const answer = new InequationSolutionNode(new IntervalNode(diff, add, isStrict ? ClosureType.OO : ClosureType.FF)).toTex();
32
+ const identifiers = { a, b, isStrict };
33
+ return getQuestionFromIdentifiers(identifiers);
34
+ };
35
+ const getQuestionFromIdentifiers = (identifiers) => {
21
36
  const question = {
22
- answer,
23
- instruction: `Résoudre l'inéquation $|${poly.toTree().toTex()}|${isStrict ? "<" : "\\le"}${a}$.`,
37
+ answer: getAnswer(identifiers),
38
+ instruction: getInstruction(identifiers),
24
39
  keys: [
25
40
  "S",
26
41
  "equal",
@@ -35,7 +50,7 @@ const getAbsoluteValueInequationsQuestion = () => {
35
50
  "inf",
36
51
  ],
37
52
  answerFormat: "tex",
38
- identifiers: { a, b, isStrict },
53
+ identifiers,
39
54
  };
40
55
  return question;
41
56
  };
@@ -67,13 +82,12 @@ export const absoluteValueInequations = {
67
82
  id: "absoluteValueInequations",
68
83
  connector: "\\iff",
69
84
  label: "Résoudre une inéquation avec valeur absolue du type $|ax+b| < c$",
70
- levels: ["2nde", "1reESM"],
71
85
  isSingleStep: true,
72
- sections: ["Valeur absolue", "Inéquations", "Ensembles et intervalles"],
73
86
  generator: (nb) => getDistinctQuestions(getAbsoluteValueInequationsQuestion, nb),
74
87
  qcmTimer: 60,
75
88
  freeTimer: 60,
76
89
  getPropositions,
77
90
  isAnswerValid,
78
91
  subject: "Mathématiques",
92
+ getQuestionFromIdentifiers,
79
93
  };
@@ -1 +1 @@
1
- {"version":3,"file":"affineAdjustment.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineAdjustment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAiBrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAyJF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAgB1D,CAAC"}
1
+ {"version":3,"file":"affineAdjustment.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineAdjustment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAiBrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AA+JF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAa1D,CAAC"}
@@ -54,6 +54,9 @@ const getAffineAdjustmentQuestion = () => {
54
54
  const xValues = data.map((point) => point.x);
55
55
  const yValues = data.map((point) => point.y);
56
56
  const identifiers = { xValues, yValues };
57
+ return getQuestionFromIdentifiers(identifiers);
58
+ };
59
+ const getQuestionFromIdentifiers = (identifiers) => {
57
60
  const question = {
58
61
  answer: getAnswer(identifiers),
59
62
  instruction: getInstruction(identifiers),
@@ -99,15 +102,12 @@ const isAnswerValid = (ans, { answer, xValues, yValues }) => {
99
102
  export const affineAdjustmentExercise = {
100
103
  id: "affineAdjustment",
101
104
  label: "Déterminer l'équation de la droite d'ajustement à partir d'un tableau de données",
102
- levels: ["1rePro"],
103
105
  isSingleStep: true,
104
- sections: ["Statistiques"],
105
106
  generator: (nb) => getDistinctQuestions(getAffineAdjustmentQuestion, nb),
106
107
  qcmTimer: 60,
107
108
  freeTimer: 60,
108
109
  getPropositions,
109
110
  isAnswerValid,
110
111
  subject: "Mathématiques",
111
- getInstruction,
112
- getAnswer,
112
+ getQuestionFromIdentifiers,
113
113
  };
@@ -1 +1 @@
1
- {"version":3,"file":"affineAdjustmentComplete.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineAdjustmentComplete.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAoBrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAoJF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAiBlE,CAAC"}
1
+ {"version":3,"file":"affineAdjustmentComplete.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineAdjustmentComplete.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAoBrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AA0JF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAclE,CAAC"}
@@ -43,6 +43,9 @@ const getAffineAdjustmentCompleteQuestion = () => {
43
43
  xValues,
44
44
  yValues,
45
45
  };
46
+ return getQuestionFromIdentifiers(identifiers);
47
+ };
48
+ const getQuestionFromIdentifiers = (identifiers) => {
46
49
  const question = {
47
50
  answer: getAnswer(identifiers),
48
51
  instruction: getInstruction(identifiers),
@@ -91,9 +94,7 @@ const isAnswerValid = (ans, { answer }) => {
91
94
  export const affineAdjustmentCompleteExercise = {
92
95
  id: "affineAdjustmentComplete",
93
96
  label: "Déterminer l'équation de la droite d'ajustement et le coefficient de détermination",
94
- levels: ["1rePro"],
95
97
  isSingleStep: true,
96
- sections: ["Statistiques"],
97
98
  generator: (nb) => getDistinctQuestions(getAffineAdjustmentCompleteQuestion, nb),
98
99
  answerType: "QCU",
99
100
  qcmTimer: 60,
@@ -101,6 +102,5 @@ export const affineAdjustmentCompleteExercise = {
101
102
  getPropositions,
102
103
  isAnswerValid,
103
104
  subject: "Mathématiques",
104
- getAnswer,
105
- getInstruction,
105
+ getQuestionFromIdentifiers,
106
106
  };
@@ -1 +1 @@
1
- {"version":3,"file":"affineAdjustmentRsquared.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineAdjustmentRsquared.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAkBrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAqGF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAgBlE,CAAC"}
1
+ {"version":3,"file":"affineAdjustmentRsquared.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineAdjustmentRsquared.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAkBrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AA2GF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAalE,CAAC"}
@@ -30,6 +30,9 @@ const getAffineAdjustmentRsquaredQuestion = () => {
30
30
  const xValues = data.map((point) => round(point.x, 1));
31
31
  const yValues = data.map((point) => round(point.y, 1));
32
32
  const identifiers = { xValues, yValues };
33
+ return getQuestionFromIdentifiers(identifiers);
34
+ };
35
+ const getQuestionFromIdentifiers = (identifiers) => {
33
36
  const question = {
34
37
  answer: getAnswer(identifiers),
35
38
  instruction: getInstruction(identifiers),
@@ -68,15 +71,12 @@ const isAnswerValid = (ans, { xValues, yValues }) => {
68
71
  export const affineAdjustmentRsquaredExercise = {
69
72
  id: "affineAdjustmentRsquared",
70
73
  label: "Déterminer le coefficient de détermination à partir d'un tableau de données",
71
- levels: ["1rePro"],
72
74
  isSingleStep: true,
73
- sections: ["Statistiques"],
74
75
  generator: (nb) => getDistinctQuestions(getAffineAdjustmentRsquaredQuestion, nb),
75
76
  qcmTimer: 60,
76
77
  freeTimer: 60,
77
78
  getPropositions,
78
79
  isAnswerValid,
79
80
  subject: "Mathématiques",
80
- getAnswer,
81
- getInstruction,
81
+ getQuestionFromIdentifiers,
82
82
  };
@@ -1 +1 @@
1
- {"version":3,"file":"affineExpressionFromTwoImages.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineExpressionFromTwoImages.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAerC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAgIF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAiB/D,CAAC"}
1
+ {"version":3,"file":"affineExpressionFromTwoImages.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineExpressionFromTwoImages.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAerC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAqIF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAc/D,CAAC"}
@@ -70,6 +70,9 @@ const getAffineExpressionFromTwoImagesQuestion = () => {
70
70
  const xB = randint(-9, 10, [xA]);
71
71
  const yB = randint(-9, 10);
72
72
  const identifiers = { xA, xB, yA, yB };
73
+ return getQuestionFromIdentifiers(identifiers);
74
+ };
75
+ const getQuestionFromIdentifiers = (identifiers) => {
73
76
  const question = {
74
77
  instruction: getInstruction(identifiers),
75
78
  startStatement: "a",
@@ -121,8 +124,5 @@ export const affineExpressionFromTwoImages = {
121
124
  isAnswerValid,
122
125
  subject: "Mathématiques",
123
126
  hasHintAndCorrection: true,
124
- getCorrection,
125
- getInstruction,
126
- getAnswer,
127
- getHint,
127
+ getQuestionFromIdentifiers,
128
128
  };
@@ -1 +1 @@
1
- {"version":3,"file":"affineExpressionReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineExpressionReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAgBrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAuIF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAazD,CAAC"}
1
+ {"version":3,"file":"affineExpressionReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineExpressionReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAgBrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAuIF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}
@@ -115,4 +115,5 @@ export const affineExpressionReading = {
115
115
  isAnswerValid,
116
116
  hasGeogebra: true,
117
117
  subject: "Mathématiques",
118
+ getQuestionFromIdentifiers,
118
119
  };
@@ -1 +1 @@
1
- {"version":3,"file":"affineMeanValue.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineMeanValue.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAqGF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAajD,CAAC"}
1
+ {"version":3,"file":"affineMeanValue.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineMeanValue.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AA6HF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAYjD,CAAC"}
@@ -8,27 +8,47 @@ import { FractionNode } from "../../../../tree/nodes/operators/fractionNode.js";
8
8
  import { MultiplyNode } from "../../../../tree/nodes/operators/multiplyNode.js";
9
9
  import { ClosureType } from "../../../../tree/nodes/sets/closure.js";
10
10
  import { IntervalNode } from "../../../../tree/nodes/sets/intervalNode.js";
11
+ const getInstruction = (identifiers) => {
12
+ const { trinomial, leftbound, rightbound } = identifiers;
13
+ const trinom = new Trinom(trinomial[0], trinomial[1], trinomial[2]);
14
+ const func = trinom.derivate().toTree().toTex();
15
+ const interval = new IntervalNode(leftbound.toTree(), rightbound.toTree(), ClosureType.FF).toTex();
16
+ return `Soit $f$ la fonction définie sur $\\mathbb{R}$ par
17
+
18
+ $$
19
+ f(x) = ${func}
20
+ $$
21
+
22
+ Quelle est la valeur moyenne de $f$ sur $${interval}$ ?`;
23
+ };
24
+ const getAnswer = (identifiers) => {
25
+ const { trinomial, leftbound, rightbound } = identifiers;
26
+ const trinom = new Trinom(trinomial[0], trinomial[1], trinomial[2]);
27
+ const answer = new MultiplyNode(new FractionNode(new NumberNode(1), (rightbound - leftbound).toTree()), (trinom.calculate(rightbound) - trinom.calculate(leftbound)).toTree())
28
+ .simplify()
29
+ .toTex();
30
+ return answer;
31
+ };
11
32
  const getAffineMeanValueQuestion = () => {
12
33
  const a = randint(-10, 10, [0]);
13
34
  const b = randint(-10, 10);
14
35
  const trinomial = new Trinom(a, b, randint(-10, 10));
15
36
  const leftbound = randint(-5, 6);
16
37
  const rightbound = randint(leftbound + 1, leftbound + 1);
17
- const func = trinomial.derivate().toTree().toTex();
18
- const interval = new IntervalNode(leftbound.toTree(), rightbound.toTree(), ClosureType.FF).toTex();
19
- const answer = new MultiplyNode(new FractionNode(new NumberNode(1), (rightbound - leftbound).toTree()), (trinomial.calculate(rightbound) - trinomial.calculate(leftbound)).toTree())
20
- .simplify()
21
- .toTex();
38
+ const identifiers = {
39
+ trinomial: [trinomial.a, trinomial.b, trinomial.c],
40
+ rightbound,
41
+ leftbound,
42
+ };
43
+ return getQuestionFromIdentifiers(identifiers);
44
+ };
45
+ const getQuestionFromIdentifiers = (identifiers) => {
22
46
  const question = {
23
- answer: answer,
24
- instruction: `Soit $f(x) = ${func}$. Quelle est la valeur moyenne de $f$ sur $${interval}$ ?`,
47
+ answer: getAnswer(identifiers),
48
+ instruction: getInstruction(identifiers),
25
49
  keys: [],
26
50
  answerFormat: "tex",
27
- identifiers: {
28
- trinomial: [trinomial.a, trinomial.b, trinomial.c],
29
- rightbound,
30
- leftbound,
31
- },
51
+ identifiers,
32
52
  };
33
53
  return question;
34
54
  };
@@ -62,13 +82,12 @@ const isAnswerValid = (ans, { answer, trinomial, leftbound, rightbound }) => {
62
82
  export const affineMeanValue = {
63
83
  id: "affineMeanValue",
64
84
  label: "Calcul de la valeur moyenne d'une fonction affine",
65
- levels: ["TermSpé"],
66
85
  isSingleStep: true,
67
- sections: ["Intégration"],
68
86
  generator: (nb) => getDistinctQuestions(getAffineMeanValueQuestion, nb),
69
87
  qcmTimer: 60,
70
88
  freeTimer: 60,
71
89
  getPropositions,
72
90
  isAnswerValid,
73
91
  subject: "Mathématiques",
92
+ getQuestionFromIdentifiers,
74
93
  };
@@ -1 +1 @@
1
- {"version":3,"file":"algebricExpressionOfAffine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/algebricExpressionOfAffine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqGF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAgB5D,CAAC"}
1
+ {"version":3,"file":"algebricExpressionOfAffine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/algebricExpressionOfAffine.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;AA0GF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAa5D,CAAC"}
@@ -46,6 +46,9 @@ const getAlgebricExpressionOfAffineQuestion = () => {
46
46
  const a = f.a;
47
47
  const b = f.b;
48
48
  const identifiers = { a, b };
49
+ return getQuestionFromIdentifiers(identifiers);
50
+ };
51
+ const getQuestionFromIdentifiers = (identifiers) => {
49
52
  const question = {
50
53
  answer: getAnswer(identifiers),
51
54
  instruction: getInstruction(identifiers),
@@ -99,9 +102,6 @@ export const algebricExpressionOfAffine = {
99
102
  getPropositions,
100
103
  isAnswerValid,
101
104
  subject: "Mathématiques",
102
- getAnswer,
103
- getInstruction,
104
- getHint,
105
- getCorrection,
105
+ getQuestionFromIdentifiers,
106
106
  hasHintAndCorrection: true,
107
107
  };
@@ -1 +1 @@
1
- {"version":3,"file":"leadingCoeffAndOriginOrdinate.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/leadingCoeffAndOriginOrdinate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAyFF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAiB/D,CAAC"}
1
+ {"version":3,"file":"leadingCoeffAndOriginOrdinate.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/leadingCoeffAndOriginOrdinate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AA+FF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAkB/D,CAAC"}
@@ -47,6 +47,9 @@ const getLeadingCoeffAndOriginOrdinateQuestion = () => {
47
47
  const isAskingA = coinFlip();
48
48
  const f = AffineConstructor.random();
49
49
  const identifiers = { a: f.a, b: f.b, isAskingA };
50
+ return getQuestionFromIdentifiers(identifiers);
51
+ };
52
+ const getQuestionFromIdentifiers = (identifiers) => {
50
53
  const question = {
51
54
  answer: getAnswer(identifiers),
52
55
  instruction: getInstruction(identifiers),
@@ -89,4 +92,5 @@ export const leadingCoeffAndOriginOrdinate = {
89
92
  getHint,
90
93
  getCorrection,
91
94
  hasHintAndCorrection: true,
95
+ getQuestionFromIdentifiers,
92
96
  };
@@ -1 +1 @@
1
- {"version":3,"file":"leadingCoefficient.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/leadingCoefficient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAkBrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAuHF,KAAK,OAAO,GAAG;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAYF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAoB7D,CAAC"}
1
+ {"version":3,"file":"leadingCoefficient.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/leadingCoefficient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAkBrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AA6HF,KAAK,OAAO,GAAG;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAYF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAgB7D,CAAC"}
@@ -80,6 +80,9 @@ const getLeadingCoefficientQuestion = (opts) => {
80
80
  // xB = xA > 0 ? randint(xA - 4, 6, [xA]) : randint(-4, xA + 5, [xA]); // l'écart entre les deux points ne soit pas grand
81
81
  // yB = yA > 0 ? randint(yA - 4, 6) : randint(-4, yA + 5);
82
82
  const identifiers = { xA, xB, yA, yB };
83
+ return getQuestionFromIdentifiers(identifiers);
84
+ };
85
+ const getQuestionFromIdentifiers = (identifiers) => {
83
86
  const question = {
84
87
  instruction: getInstruction(identifiers),
85
88
  answer: getAnswer(identifiers),
@@ -133,11 +136,7 @@ export const leadingCoefficient = {
133
136
  isAnswerValid,
134
137
  hasGeogebra: true,
135
138
  subject: "Mathématiques",
136
- getAnswer,
137
- getInstruction,
138
- getGGBOptions,
139
+ getQuestionFromIdentifiers,
139
140
  options,
140
- getHint,
141
- getCorrection,
142
141
  hasHintAndCorrection: true,
143
142
  };
@@ -1 +1 @@
1
- {"version":3,"file":"leadingCoefficientCalculV1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/leadingCoefficientCalculV1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,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;CACZ,CAAC;AA0GF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAe5D,CAAC"}
1
+ {"version":3,"file":"leadingCoefficientCalculV1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/leadingCoefficientCalculV1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,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;CACZ,CAAC;AAiHF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAc5D,CAAC"}
@@ -40,6 +40,9 @@ const getLeadingCoefficientCalculV1Question = (opts) => {
40
40
  const xB = randint(-9, 10, [xA]);
41
41
  const yB = randint(-9, 10);
42
42
  const identifiers = { xA, xB, yA, yB };
43
+ return getQuestionFromIdentifiers(identifiers, opts);
44
+ };
45
+ const getQuestionFromIdentifiers = (identifiers, opts) => {
43
46
  const question = {
44
47
  instruction: getInstruction(identifiers, opts),
45
48
  startStatement: "a",
@@ -93,6 +96,5 @@ export const leadingCoefficientCalculV1 = {
93
96
  isAnswerValid,
94
97
  subject: "Mathématiques",
95
98
  options,
96
- getInstruction,
97
- getAnswer,
99
+ getQuestionFromIdentifiers,
98
100
  };
@@ -1 +1 @@
1
- {"version":3,"file":"graphicEquation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/graphicEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAiBrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;CAClC,CAAC;AAuHF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAejD,CAAC"}
1
+ {"version":3,"file":"graphicEquation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/graphicEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAiBrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;CAClC,CAAC;AA4HF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAcjD,CAAC"}
@@ -76,6 +76,9 @@ const getGraphicEquationQuestion = () => {
76
76
  ]);
77
77
  }
78
78
  const identifiers = { yValue, splinePoints };
79
+ return getQuestionFromIdentifiers(identifiers);
80
+ };
81
+ const getQuestionFromIdentifiers = (identifiers) => {
79
82
  const question = {
80
83
  answer: getAnswer(identifiers),
81
84
  instruction: getInstruction(identifiers),
@@ -117,9 +120,7 @@ export const graphicEquation = {
117
120
  id: "graphicEquation",
118
121
  connector: "\\iff",
119
122
  label: "Résoudre graphiquement une équation",
120
- levels: ["2ndPro", "2nde", "1rePro", "1reESM", "1reTech"],
121
123
  isSingleStep: true,
122
- sections: ["Équations", "Fonctions"],
123
124
  generator: (nb) => getDistinctQuestions(getGraphicEquationQuestion, nb),
124
125
  qcmTimer: 60,
125
126
  freeTimer: 60,
@@ -127,4 +128,5 @@ export const graphicEquation = {
127
128
  isAnswerValid,
128
129
  hasGeogebra: true,
129
130
  subject: "Mathématiques",
131
+ getQuestionFromIdentifiers,
130
132
  };
@@ -1 +1 @@
1
- {"version":3,"file":"graphicInequation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/graphicInequation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAQrC,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQ/D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,EAAE,CAAC;CAC7D,CAAC;AA+MF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAgBnD,CAAC"}
1
+ {"version":3,"file":"graphicInequation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/graphicInequation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAQrC,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQ/D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,EAAE,CAAC;CAC7D,CAAC;AAqNF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAenD,CAAC"}
@@ -110,6 +110,9 @@ const getGraphicInequationQuestion = () => {
110
110
  isStrict,
111
111
  intervals,
112
112
  };
113
+ return getQuestionFromIdentifiers(identifiers);
114
+ };
115
+ const getQuestionFromIdentifiers = (identifiers) => {
113
116
  const question = {
114
117
  answer: getAnswer(identifiers),
115
118
  instruction: getInstruction(identifiers),
@@ -169,9 +172,7 @@ export const graphicInequation = {
169
172
  id: "graphicInequation",
170
173
  connector: "\\iff",
171
174
  label: "Résoudre graphiquement une inéquation",
172
- levels: ["2ndPro", "2nde", "1rePro", "1reESM", "1reTech"],
173
175
  isSingleStep: true,
174
- sections: ["Inéquations", "Fonctions"],
175
176
  generator: (nb) => getDistinctQuestions(getGraphicInequationQuestion, nb),
176
177
  qcmTimer: 60,
177
178
  freeTimer: 60,
@@ -180,4 +181,5 @@ export const graphicInequation = {
180
181
  hasGeogebra: true,
181
182
  subject: "Mathématiques",
182
183
  pdfOptions: { shouldSpreadPropositions: true },
184
+ getQuestionFromIdentifiers,
183
185
  };
@@ -1 +1 @@
1
- {"version":3,"file":"graphicInequationAffine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/graphicInequationAffine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAkBT,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EACL,gBAAgB,EAGjB,MAAM,sCAAsC,CAAC;AAe9C,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,gBAAgB,CAAC;IAClC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA4HF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAkBzD,CAAC"}
1
+ {"version":3,"file":"graphicInequationAffine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/graphicInequationAffine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EACL,gBAAgB,EAGjB,MAAM,sCAAsC,CAAC;AAe9C,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,gBAAgB,CAAC;IAClC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAkIF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}
@@ -97,6 +97,9 @@ const getGraphicInequationAffineQuestion = (opts) => {
97
97
  yValue,
98
98
  inegalitySymbol,
99
99
  };
100
+ return getQuestionFromIdentifiers(identifiers);
101
+ };
102
+ const getQuestionFromIdentifiers = (identifiers) => {
100
103
  const question = {
101
104
  answer: getAnswer(identifiers),
102
105
  instruction: getInstruction(identifiers),
@@ -120,10 +123,6 @@ export const graphicInequationAffine = {
120
123
  getPropositions,
121
124
  isAnswerValid,
122
125
  subject: "Mathématiques",
123
- // getHint,
124
- // getCorrection,
125
- getInstruction,
126
- getAnswer,
127
- getGGBOptions,
128
126
  hasGeogebra: true,
127
+ getQuestionFromIdentifiers,
129
128
  };
@@ -1 +1 @@
1
- {"version":3,"file":"imageAntecedentFromSentence.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/imageAntecedentFromSentence.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAsEF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAgB7D,CAAC"}
1
+ {"version":3,"file":"imageAntecedentFromSentence.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/imageAntecedentFromSentence.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA2EF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAc7D,CAAC"}
@@ -44,6 +44,9 @@ const getImageAntecedentFromSentenceQuestion = () => {
44
44
  x,
45
45
  y,
46
46
  };
47
+ return getQuestionFromIdentifiers(identifiers);
48
+ };
49
+ const getQuestionFromIdentifiers = (identifiers) => {
47
50
  const question = {
48
51
  answer: getAnswer(identifiers),
49
52
  instruction: getInstruction(identifiers),
@@ -66,8 +69,6 @@ export const imageAntecedentFromSentence = {
66
69
  getPropositions,
67
70
  isAnswerValid,
68
71
  subject: "Mathématiques",
69
- getHint,
70
- getCorrection,
71
- getAnswer,
72
+ getQuestionFromIdentifiers,
72
73
  hasHintAndCorrection: true,
73
74
  };
@@ -1 +1 @@
1
- {"version":3,"file":"inverseImageFunction.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/inverseImageFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IAIjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAuHF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAkBtD,CAAC"}
1
+ {"version":3,"file":"inverseImageFunction.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/inverseImageFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IAIjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA6HF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAatD,CAAC"}