math-exercises 3.0.68 → 3.0.70

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 (699) hide show
  1. package/lib/exercises/exercise.d.ts +9 -1
  2. package/lib/exercises/exercise.d.ts.map +1 -1
  3. package/lib/exercises/math/calcul/addAndSub.d.ts.map +1 -1
  4. package/lib/exercises/math/calcul/addAndSub.js +4 -0
  5. package/lib/exercises/math/calcul/addAndSubWithoutRelatives.d.ts +3 -0
  6. package/lib/exercises/math/calcul/addAndSubWithoutRelatives.d.ts.map +1 -1
  7. package/lib/exercises/math/calcul/addAndSubWithoutRelatives.js +33 -20
  8. package/lib/exercises/math/calcul/digitDecimalRank.d.ts.map +1 -1
  9. package/lib/exercises/math/calcul/digitDecimalRank.js +36 -13
  10. package/lib/exercises/math/calcul/digitDecimalRankNumber.d.ts.map +1 -1
  11. package/lib/exercises/math/calcul/digitDecimalRankNumber.js +27 -12
  12. package/lib/exercises/math/calcul/digitRank.d.ts.map +1 -1
  13. package/lib/exercises/math/calcul/digitRank.js +37 -13
  14. package/lib/exercises/math/calcul/digitRankNumber.d.ts.map +1 -1
  15. package/lib/exercises/math/calcul/digitRankNumber.js +21 -12
  16. package/lib/exercises/math/calcul/fractions/fractionToPercentToDecimal.d.ts.map +1 -1
  17. package/lib/exercises/math/calcul/fractions/fractionToPercentToDecimal.js +55 -37
  18. package/lib/exercises/math/calcul/fractions/fractionsSumsMultiplesDenominators.d.ts.map +1 -1
  19. package/lib/exercises/math/calcul/fractions/fractionsSumsMultiplesDenominators.js +4 -4
  20. package/lib/exercises/math/calcul/fractions/fractionsSumsPrimeDenominators.d.ts.map +1 -1
  21. package/lib/exercises/math/calcul/fractions/fractionsSumsPrimeDenominators.js +31 -18
  22. package/lib/exercises/math/calcul/fractions/fractionsSumsSameDenominators.d.ts.map +1 -1
  23. package/lib/exercises/math/calcul/fractions/fractionsSumsSameDenominators.js +59 -35
  24. package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSub.d.ts.map +1 -1
  25. package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSub.js +33 -17
  26. package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSubNoRelative.d.ts.map +1 -1
  27. package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSubNoRelative.js +36 -18
  28. package/lib/exercises/math/calcul/mentalCaluls/mentalDivisions.d.ts.map +1 -1
  29. package/lib/exercises/math/calcul/mentalCaluls/mentalDivisions.js +38 -30
  30. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplications.d.ts.map +1 -1
  31. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplications.js +35 -21
  32. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplicationsNoRelative.d.ts.map +1 -1
  33. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplicationsNoRelative.js +4 -0
  34. package/lib/exercises/math/calcul/mentalCaluls/mentalPercentage.d.ts.map +1 -1
  35. package/lib/exercises/math/calcul/mentalCaluls/mentalPercentage.js +22 -9
  36. package/lib/exercises/math/calcul/operations/expressionNature.d.ts +2 -1
  37. package/lib/exercises/math/calcul/operations/expressionNature.d.ts.map +1 -1
  38. package/lib/exercises/math/calcul/operations/expressionNature.js +36 -15
  39. package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesis.d.ts +2 -1
  40. package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesis.d.ts.map +1 -1
  41. package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesis.js +26 -15
  42. package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesisNoRelatives.d.ts +2 -1
  43. package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesisNoRelatives.d.ts.map +1 -1
  44. package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesisNoRelatives.js +26 -17
  45. package/lib/exercises/math/calcul/operations/operationsPrioritiesWithoutRelative.d.ts +1 -0
  46. package/lib/exercises/math/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
  47. package/lib/exercises/math/calcul/operations/operationsPrioritiesWithoutRelative.js +89 -60
  48. package/lib/exercises/math/calcul/ordering/decimalOrdering.d.ts.map +1 -1
  49. package/lib/exercises/math/calcul/ordering/decimalOrdering.js +30 -13
  50. package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.d.ts.map +1 -1
  51. package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.js +26 -13
  52. package/lib/exercises/math/calcul/ordering/framing.d.ts.map +1 -1
  53. package/lib/exercises/math/calcul/ordering/framing.js +70 -59
  54. package/lib/exercises/math/calcul/ordering/integerOrdering.d.ts.map +1 -1
  55. package/lib/exercises/math/calcul/ordering/integerOrdering.js +30 -11
  56. package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.d.ts.map +1 -1
  57. package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.js +4 -0
  58. package/lib/exercises/math/calcul/proportionality/isTableProportional.d.ts.map +1 -1
  59. package/lib/exercises/math/calcul/proportionality/isTableProportional.js +42 -24
  60. package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.d.ts.map +1 -1
  61. package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.js +4 -0
  62. package/lib/exercises/math/calcul/proportionality/scaleUsage.d.ts +1 -0
  63. package/lib/exercises/math/calcul/proportionality/scaleUsage.d.ts.map +1 -1
  64. package/lib/exercises/math/calcul/proportionality/scaleUsage.js +75 -39
  65. package/lib/exercises/math/calcul/writing/index.d.ts +1 -1
  66. package/lib/exercises/math/calcul/writing/index.d.ts.map +1 -1
  67. package/lib/exercises/math/calcul/writing/index.js +3 -1
  68. package/lib/exercises/math/calcul/writing/numberToFrenchWriting.d.ts +0 -5
  69. package/lib/exercises/math/calcul/writing/numberToFrenchWriting.d.ts.map +1 -1
  70. package/lib/exercises/math/calcul/writing/numberToFrenchWriting.js +87 -64
  71. package/lib/exercises/math/calculLitteral/distributivity/allIdentities.d.ts.map +1 -1
  72. package/lib/exercises/math/calculLitteral/distributivity/allIdentities.js +29 -5
  73. package/lib/exercises/math/calculLitteral/distributivity/idRmq1.d.ts +2 -1
  74. package/lib/exercises/math/calculLitteral/distributivity/idRmq1.d.ts.map +1 -1
  75. package/lib/exercises/math/calculLitteral/distributivity/idRmq1.js +3 -3
  76. package/lib/exercises/math/calculLitteral/distributivity/idRmq2.d.ts +2 -1
  77. package/lib/exercises/math/calculLitteral/distributivity/idRmq2.d.ts.map +1 -1
  78. package/lib/exercises/math/calculLitteral/distributivity/idRmq2.js +3 -3
  79. package/lib/exercises/math/calculLitteral/distributivity/idRmq3.d.ts +2 -1
  80. package/lib/exercises/math/calculLitteral/distributivity/idRmq3.d.ts.map +1 -1
  81. package/lib/exercises/math/calculLitteral/distributivity/idRmq3.js +3 -3
  82. package/lib/exercises/math/calculLitteral/factorisation/facto1.d.ts.map +1 -1
  83. package/lib/exercises/math/calculLitteral/factorisation/facto1.js +3 -1
  84. package/lib/exercises/math/calculLitteral/systems/basicNiceValuesSystemResolution.js +1 -1
  85. package/lib/exercises/math/combinatory/anagrams.d.ts.map +1 -1
  86. package/lib/exercises/math/combinatory/anagrams.js +18 -7
  87. package/lib/exercises/math/combinatory/ballsCounting.d.ts.map +1 -1
  88. package/lib/exercises/math/combinatory/ballsCounting.js +8 -6
  89. package/lib/exercises/math/combinatory/diceCounting.d.ts.map +1 -1
  90. package/lib/exercises/math/combinatory/diceCounting.js +62 -27
  91. package/lib/exercises/math/complex/addComplex.d.ts.map +1 -1
  92. package/lib/exercises/math/complex/addComplex.js +31 -18
  93. package/lib/exercises/math/complex/argumentFromAlgebraicComplex.d.ts.map +1 -1
  94. package/lib/exercises/math/complex/argumentFromAlgebraicComplex.js +24 -11
  95. package/lib/exercises/math/complex/conjugateComplex.d.ts.map +1 -1
  96. package/lib/exercises/math/complex/conjugateComplex.js +20 -7
  97. package/lib/exercises/math/complex/conjugateDivideComplex.d.ts.map +1 -1
  98. package/lib/exercises/math/complex/conjugateDivideComplex.js +29 -16
  99. package/lib/exercises/math/complex/conjugateMultiplyComplex.d.ts.map +1 -1
  100. package/lib/exercises/math/complex/conjugateMultiplyComplex.js +26 -13
  101. package/lib/exercises/math/complex/divideComplex.d.ts.map +1 -1
  102. package/lib/exercises/math/complex/divideComplex.js +29 -16
  103. package/lib/exercises/math/complex/inverseComplex.d.ts.map +1 -1
  104. package/lib/exercises/math/complex/inverseComplex.js +18 -7
  105. package/lib/exercises/math/complex/linearCombinaisonComplex.d.ts.map +1 -1
  106. package/lib/exercises/math/complex/linearCombinaisonComplex.js +30 -13
  107. package/lib/exercises/math/complex/moduloFromAlgebraicComplex.d.ts.map +1 -1
  108. package/lib/exercises/math/complex/moduloFromAlgebraicComplex.js +20 -8
  109. package/lib/exercises/math/complex/mutiplyComplex.d.ts.map +1 -1
  110. package/lib/exercises/math/complex/mutiplyComplex.js +26 -13
  111. package/lib/exercises/math/complex/reAndIm.d.ts.map +1 -1
  112. package/lib/exercises/math/complex/reAndIm.js +22 -9
  113. package/lib/exercises/math/conversion/volumeCapacityConversion.d.ts.map +1 -1
  114. package/lib/exercises/math/conversion/volumeCapacityConversion.js +1 -0
  115. package/lib/exercises/math/dataRepresentations/testGen.d.ts.map +1 -1
  116. package/lib/exercises/math/dataRepresentations/testGen.js +5 -1
  117. package/lib/exercises/math/dataRepresentations/testGenGGB.d.ts.map +1 -1
  118. package/lib/exercises/math/dataRepresentations/testGenGGB.js +5 -1
  119. package/lib/exercises/math/dataRepresentations/testGenStudentGGB.d.ts.map +1 -1
  120. package/lib/exercises/math/dataRepresentations/testGenStudentGGB.js +5 -1
  121. package/lib/exercises/math/derivation/convexity/convexityQuadrinomials.d.ts.map +1 -1
  122. package/lib/exercises/math/derivation/convexity/convexityQuadrinomials.js +4 -0
  123. package/lib/exercises/math/derivation/convexity/convexityTrinomials.d.ts.map +1 -1
  124. package/lib/exercises/math/derivation/convexity/convexityTrinomials.js +4 -0
  125. package/lib/exercises/math/derivation/convexity/inflexionPointQuadrinomials.d.ts.map +1 -1
  126. package/lib/exercises/math/derivation/convexity/inflexionPointQuadrinomials.js +4 -2
  127. package/lib/exercises/math/derivation/derivative/exp/expDerivativeFour.d.ts.map +1 -1
  128. package/lib/exercises/math/derivation/derivative/exp/expDerivativeFour.js +4 -2
  129. package/lib/exercises/math/derivation/derivative/exp/expDerivativeOne.d.ts.map +1 -1
  130. package/lib/exercises/math/derivation/derivative/exp/expDerivativeOne.js +4 -0
  131. package/lib/exercises/math/derivation/derivative/exp/expDerivativeTwo.d.ts.map +1 -1
  132. package/lib/exercises/math/derivation/derivative/exp/expDerivativeTwo.js +4 -0
  133. package/lib/exercises/math/derivation/derivative/exp/secondDerivativeOfExpoFunction.d.ts.map +1 -1
  134. package/lib/exercises/math/derivation/derivative/exp/secondDerivativeOfExpoFunction.js +4 -2
  135. package/lib/exercises/math/derivation/derivative/inverseFunctionDerivative.d.ts.map +1 -1
  136. package/lib/exercises/math/derivation/derivative/inverseFunctionDerivative.js +4 -0
  137. package/lib/exercises/math/derivation/derivative/ln/lnDerivativeTwo.d.ts.map +1 -1
  138. package/lib/exercises/math/derivation/derivative/ln/lnDerivativeTwo.js +4 -0
  139. package/lib/exercises/math/derivation/derivative/polynomial/constanteDerivative.d.ts +2 -1
  140. package/lib/exercises/math/derivation/derivative/polynomial/constanteDerivative.d.ts.map +1 -1
  141. package/lib/exercises/math/derivation/derivative/polynomial/constanteDerivative.js +6 -4
  142. package/lib/exercises/math/derivation/derivative/polynomial/firstDegreeDerivative.d.ts +2 -1
  143. package/lib/exercises/math/derivation/derivative/polynomial/firstDegreeDerivative.d.ts.map +1 -1
  144. package/lib/exercises/math/derivation/derivative/polynomial/firstDegreeDerivative.js +4 -0
  145. package/lib/exercises/math/derivation/derivative/polynomial/secondDegreeDerivative.d.ts +2 -1
  146. package/lib/exercises/math/derivation/derivative/polynomial/secondDegreeDerivative.d.ts.map +1 -1
  147. package/lib/exercises/math/derivation/derivative/polynomial/secondDegreeDerivative.js +4 -0
  148. package/lib/exercises/math/derivation/derivative/polynomial/secondDerivativeOfThirdDegreeFunction.d.ts.map +1 -1
  149. package/lib/exercises/math/derivation/derivative/polynomial/secondDerivativeOfThirdDegreeFunction.js +4 -0
  150. package/lib/exercises/math/derivation/derivative/polynomial/secondDerivativeOfTrinom.d.ts.map +1 -1
  151. package/lib/exercises/math/derivation/derivative/polynomial/secondDerivativeOfTrinom.js +4 -0
  152. package/lib/exercises/math/derivation/derivative/polynomial/thirdDegreeDerivative.d.ts +2 -1
  153. package/lib/exercises/math/derivation/derivative/polynomial/thirdDegreeDerivative.d.ts.map +1 -1
  154. package/lib/exercises/math/derivation/derivative/polynomial/thirdDegreeDerivative.js +4 -10
  155. package/lib/exercises/math/derivation/derivative/polynomial/usualderivative.d.ts.map +1 -1
  156. package/lib/exercises/math/derivation/derivative/polynomial/usualderivative.js +32 -4
  157. package/lib/exercises/math/derivation/derivative/power/powerCompositionDerivation.d.ts.map +1 -1
  158. package/lib/exercises/math/derivation/derivative/power/powerCompositionDerivation.js +4 -2
  159. package/lib/exercises/math/derivation/derivative/power/powerFunctionDerivative.d.ts.map +1 -1
  160. package/lib/exercises/math/derivation/derivative/power/powerFunctionDerivative.js +4 -0
  161. package/lib/exercises/math/derivation/derivative/productDerivative.d.ts.map +1 -1
  162. package/lib/exercises/math/derivation/derivative/productDerivative.js +4 -0
  163. package/lib/exercises/math/derivation/derivative/quotientDerivative.d.ts.map +1 -1
  164. package/lib/exercises/math/derivation/derivative/quotientDerivative.js +4 -0
  165. package/lib/exercises/math/derivation/derivative/sqrt/rootFunctionDerivative.d.ts.map +1 -1
  166. package/lib/exercises/math/derivation/derivative/sqrt/rootFunctionDerivative.js +4 -0
  167. package/lib/exercises/math/derivation/derivative/sqrt/sqrtCompositionDerivation.d.ts.map +1 -1
  168. package/lib/exercises/math/derivation/derivative/sqrt/sqrtCompositionDerivation.js +4 -0
  169. package/lib/exercises/math/derivation/derivative/trigo/cosCompositionDerivation.d.ts.map +1 -1
  170. package/lib/exercises/math/derivation/derivative/trigo/cosCompositionDerivation.js +4 -0
  171. package/lib/exercises/math/derivation/derivative/trigo/cosSecondDegreeDerivative.d.ts.map +1 -1
  172. package/lib/exercises/math/derivation/derivative/trigo/cosSecondDegreeDerivative.js +4 -0
  173. package/lib/exercises/math/derivation/derivative/trigo/sinCompositionDerivation.d.ts.map +1 -1
  174. package/lib/exercises/math/derivation/derivative/trigo/sinCompositionDerivation.js +4 -0
  175. package/lib/exercises/math/derivation/derivative/trigo/sinSecondDegreeDerivative.d.ts.map +1 -1
  176. package/lib/exercises/math/derivation/derivative/trigo/sinSecondDegreeDerivative.js +4 -0
  177. package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.d.ts +4 -3
  178. package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.d.ts.map +1 -1
  179. package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.js +32 -16
  180. package/lib/exercises/math/functions/absolute/absolueValueAffineEquation.d.ts.map +1 -1
  181. package/lib/exercises/math/functions/absolute/absolueValueAffineEquation.js +4 -0
  182. package/lib/exercises/math/functions/absolute/absolueValueInequationsSup.d.ts.map +1 -1
  183. package/lib/exercises/math/functions/absolute/absolueValueInequationsSup.js +4 -4
  184. package/lib/exercises/math/functions/absolute/absoluteValueEquations.d.ts.map +1 -1
  185. package/lib/exercises/math/functions/absolute/absoluteValueEquations.js +22 -10
  186. package/lib/exercises/math/functions/absolute/absoluteValueInequations.d.ts.map +1 -1
  187. package/lib/exercises/math/functions/absolute/absoluteValueInequations.js +22 -8
  188. package/lib/exercises/math/functions/affines/affineAdjustment.d.ts.map +1 -1
  189. package/lib/exercises/math/functions/affines/affineAdjustment.js +4 -4
  190. package/lib/exercises/math/functions/affines/affineAdjustmentComplete.d.ts.map +1 -1
  191. package/lib/exercises/math/functions/affines/affineAdjustmentComplete.js +4 -4
  192. package/lib/exercises/math/functions/affines/affineAdjustmentRsquared.d.ts.map +1 -1
  193. package/lib/exercises/math/functions/affines/affineAdjustmentRsquared.js +4 -4
  194. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.d.ts.map +1 -1
  195. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.js +4 -4
  196. package/lib/exercises/math/functions/affines/affineExpressionReading.d.ts.map +1 -1
  197. package/lib/exercises/math/functions/affines/affineExpressionReading.js +1 -0
  198. package/lib/exercises/math/functions/affines/affineMeanValue.d.ts.map +1 -1
  199. package/lib/exercises/math/functions/affines/affineMeanValue.js +33 -14
  200. package/lib/exercises/math/functions/affines/algebricExpressionOfAffine.d.ts.map +1 -1
  201. package/lib/exercises/math/functions/affines/algebricExpressionOfAffine.js +4 -4
  202. package/lib/exercises/math/functions/affines/leadingCoeffAndOriginOrdinate.d.ts.map +1 -1
  203. package/lib/exercises/math/functions/affines/leadingCoeffAndOriginOrdinate.js +4 -0
  204. package/lib/exercises/math/functions/affines/leadingCoefficient.d.ts.map +1 -1
  205. package/lib/exercises/math/functions/affines/leadingCoefficient.js +4 -5
  206. package/lib/exercises/math/functions/affines/leadingCoefficientCalculV1.d.ts.map +1 -1
  207. package/lib/exercises/math/functions/affines/leadingCoefficientCalculV1.js +4 -2
  208. package/lib/exercises/math/functions/basics/graphicEquation.d.ts.map +1 -1
  209. package/lib/exercises/math/functions/basics/graphicEquation.js +4 -2
  210. package/lib/exercises/math/functions/basics/graphicInequation.d.ts.map +1 -1
  211. package/lib/exercises/math/functions/basics/graphicInequation.js +4 -2
  212. package/lib/exercises/math/functions/basics/graphicInequationAffine.d.ts.map +1 -1
  213. package/lib/exercises/math/functions/basics/graphicInequationAffine.js +4 -5
  214. package/lib/exercises/math/functions/basics/imageAntecedentFromSentence.d.ts.map +1 -1
  215. package/lib/exercises/math/functions/basics/imageAntecedentFromSentence.js +4 -3
  216. package/lib/exercises/math/functions/basics/inverseImageFunction.d.ts.map +1 -1
  217. package/lib/exercises/math/functions/basics/inverseImageFunction.js +4 -6
  218. package/lib/exercises/math/functions/basics/inverseImageFunctionGeogebra.d.ts.map +1 -1
  219. package/lib/exercises/math/functions/basics/inverseImageFunctionGeogebra.js +0 -2
  220. package/lib/exercises/math/functions/basics/inverseImageFunctionTable.d.ts.map +1 -1
  221. package/lib/exercises/math/functions/basics/inverseImageFunctionTable.js +16 -15
  222. package/lib/exercises/math/functions/basics/twoFunctionsEquation.d.ts +1 -0
  223. package/lib/exercises/math/functions/basics/twoFunctionsEquation.d.ts.map +1 -1
  224. package/lib/exercises/math/functions/basics/twoFunctionsEquation.js +46 -32
  225. package/lib/exercises/math/functions/basics/twoFunctionsInequation.d.ts.map +1 -1
  226. package/lib/exercises/math/functions/basics/twoFunctionsInequation.js +4 -2
  227. package/lib/exercises/math/functions/cube/cubicEquation.d.ts.map +1 -1
  228. package/lib/exercises/math/functions/cube/cubicEquation.js +4 -3
  229. package/lib/exercises/math/functions/exponential/expFactorization.d.ts.map +1 -1
  230. package/lib/exercises/math/functions/exponential/expFactorization.js +1 -0
  231. package/lib/exercises/math/functions/exponentials/exponentialsVariations.d.ts.map +1 -1
  232. package/lib/exercises/math/functions/exponentials/exponentialsVariations.js +4 -1
  233. package/lib/exercises/math/functions/integral/integralAffines.d.ts.map +1 -1
  234. package/lib/exercises/math/functions/integral/integralAffines.js +4 -2
  235. package/lib/exercises/math/functions/integral/integralDerivatedUCosU.d.ts.map +1 -1
  236. package/lib/exercises/math/functions/integral/integralDerivatedUCosU.js +27 -12
  237. package/lib/exercises/math/functions/integral/integralDerivatedUSinU.d.ts.map +1 -1
  238. package/lib/exercises/math/functions/integral/integralDerivatedUSinU.js +26 -11
  239. package/lib/exercises/math/functions/integral/integralExpAxPlusB.d.ts.map +1 -1
  240. package/lib/exercises/math/functions/integral/integralExpAxPlusB.js +26 -11
  241. package/lib/exercises/math/functions/integral/integralExpU.d.ts.map +1 -1
  242. package/lib/exercises/math/functions/integral/integralExpU.js +38 -20
  243. package/lib/exercises/math/functions/integral/integralFractions.d.ts.map +1 -1
  244. package/lib/exercises/math/functions/integral/integralFractions.js +40 -21
  245. package/lib/exercises/math/functions/integral/integralKCosinus.d.ts.map +1 -1
  246. package/lib/exercises/math/functions/integral/integralKCosinus.js +29 -12
  247. package/lib/exercises/math/functions/integral/integralKSinus.d.ts.map +1 -1
  248. package/lib/exercises/math/functions/integral/integralKSinus.js +29 -12
  249. package/lib/exercises/math/functions/integral/integralTrinomials.d.ts.map +1 -1
  250. package/lib/exercises/math/functions/integral/integralTrinomials.js +4 -2
  251. package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.d.ts +0 -1
  252. package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.d.ts.map +1 -1
  253. package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.js +36 -15
  254. package/lib/exercises/math/functions/logarithm/log10Simplifying.d.ts.map +1 -1
  255. package/lib/exercises/math/functions/logarithm/log10Simplifying.js +43 -22
  256. package/lib/exercises/math/functions/logarithm/logEquation.d.ts.map +1 -1
  257. package/lib/exercises/math/functions/logarithm/logEquation.js +20 -11
  258. package/lib/exercises/math/functions/logarithm/logPowerEquation.d.ts.map +1 -1
  259. package/lib/exercises/math/functions/logarithm/logPowerEquation.js +26 -14
  260. package/lib/exercises/math/functions/logarithm/logSimplifiying.d.ts.map +1 -1
  261. package/lib/exercises/math/functions/logarithm/logSimplifiying.js +4 -3
  262. package/lib/exercises/math/functions/parity/parityFromAlgebra.d.ts.map +1 -1
  263. package/lib/exercises/math/functions/parity/parityFromAlgebra.js +29 -13
  264. package/lib/exercises/math/functions/parity/parityFromGraph.d.ts.map +1 -1
  265. package/lib/exercises/math/functions/parity/parityFromGraph.js +30 -12
  266. package/lib/exercises/math/functions/rationalFraction/rationalFractionForbiddenValue.d.ts.map +1 -1
  267. package/lib/exercises/math/functions/rationalFraction/rationalFractionForbiddenValue.js +27 -14
  268. package/lib/exercises/math/functions/sign/affineProductSign.d.ts.map +1 -1
  269. package/lib/exercises/math/functions/sign/affineProductSign.js +4 -4
  270. package/lib/exercises/math/functions/square/squareImageInterval.d.ts.map +1 -1
  271. package/lib/exercises/math/functions/square/squareImageInterval.js +39 -19
  272. package/lib/exercises/math/functions/trinoms/devForm/coefficientsIdentification.d.ts.map +1 -1
  273. package/lib/exercises/math/functions/trinoms/devForm/coefficientsIdentification.js +4 -3
  274. package/lib/exercises/math/functions/trinoms/devForm/variationsFromAlgebricForm.d.ts +1 -0
  275. package/lib/exercises/math/functions/trinoms/devForm/variationsFromAlgebricForm.d.ts.map +1 -1
  276. package/lib/exercises/math/functions/trinoms/devForm/variationsFromAlgebricForm.js +26 -9
  277. package/lib/exercises/math/functions/trinoms/equation/deltaTrinom.d.ts.map +1 -1
  278. package/lib/exercises/math/functions/trinoms/equation/deltaTrinom.js +25 -10
  279. package/lib/exercises/math/functions/trinoms/equation/secondDegreeInequation.d.ts.map +1 -1
  280. package/lib/exercises/math/functions/trinoms/equation/secondDegreeInequation.js +73 -41
  281. package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationByFactorisation.d.ts.map +1 -1
  282. package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationByFactorisation.js +4 -2
  283. package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationFromCano.d.ts.map +1 -1
  284. package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationFromCano.js +4 -2
  285. package/lib/exercises/math/functions/trinoms/factoForm/factorizedFormFromRoots.d.ts.map +1 -1
  286. package/lib/exercises/math/functions/trinoms/factoForm/factorizedFormFromRoots.js +4 -4
  287. package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.d.ts.map +1 -1
  288. package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.js +4 -5
  289. package/lib/exercises/math/functions/trinoms/parabole/trinomSymetryAxisFromFacto.d.ts.map +1 -1
  290. package/lib/exercises/math/functions/trinoms/parabole/trinomSymetryAxisFromFacto.js +4 -4
  291. package/lib/exercises/math/functions/trinoms/roots/findSecondRoot.d.ts.map +1 -1
  292. package/lib/exercises/math/functions/trinoms/roots/findSecondRoot.js +4 -4
  293. package/lib/exercises/math/functions/trinoms/roots/niceRootsFromDevForm.d.ts.map +1 -1
  294. package/lib/exercises/math/functions/trinoms/roots/niceRootsFromDevForm.js +4 -2
  295. package/lib/exercises/math/functions/trinoms/roots/rootsFromDevForm.d.ts.map +1 -1
  296. package/lib/exercises/math/functions/trinoms/roots/rootsFromDevForm.js +4 -2
  297. package/lib/exercises/math/functions/trinoms/roots/rootsFromFactorizedForm.d.ts.map +1 -1
  298. package/lib/exercises/math/functions/trinoms/roots/rootsFromFactorizedForm.js +4 -2
  299. package/lib/exercises/math/functions/trinoms/roots/rootsProduct.d.ts.map +1 -1
  300. package/lib/exercises/math/functions/trinoms/roots/rootsProduct.js +4 -4
  301. package/lib/exercises/math/functions/trinoms/roots/rootsReading.d.ts.map +1 -1
  302. package/lib/exercises/math/functions/trinoms/roots/rootsReading.js +4 -3
  303. package/lib/exercises/math/functions/trinoms/roots/rootsSum.d.ts.map +1 -1
  304. package/lib/exercises/math/functions/trinoms/roots/rootsSum.js +4 -4
  305. package/lib/exercises/math/functions/trinoms/sign/trinomSignFromFacto.d.ts.map +1 -1
  306. package/lib/exercises/math/functions/trinoms/sign/trinomSignFromFacto.js +4 -0
  307. package/lib/exercises/math/functions/trinoms/sign/trinomSignFromRoots.d.ts.map +1 -1
  308. package/lib/exercises/math/functions/trinoms/sign/trinomSignFromRoots.js +4 -0
  309. package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaFromDevForm.d.ts.map +1 -1
  310. package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaFromDevForm.js +32 -11
  311. package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaInCanonicalForm.d.ts.map +1 -1
  312. package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaInCanonicalForm.js +32 -16
  313. package/lib/exercises/math/functions/trinoms/summitAndCanonical/canonicalFromDevForm.d.ts.map +1 -1
  314. package/lib/exercises/math/functions/trinoms/summitAndCanonical/canonicalFromDevForm.js +24 -9
  315. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.d.ts.map +1 -1
  316. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.js +24 -9
  317. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumTypeFromAlgebricForm.d.ts +1 -0
  318. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumTypeFromAlgebricForm.d.ts.map +1 -1
  319. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumTypeFromAlgebricForm.js +29 -12
  320. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromDevForm.d.ts.map +1 -1
  321. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromDevForm.js +4 -0
  322. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromRoots.d.ts.map +1 -1
  323. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromRoots.js +4 -0
  324. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitReading.d.ts.map +1 -1
  325. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitReading.js +4 -2
  326. package/lib/exercises/math/functions/trinoms/trinomialMeanValue.d.ts.map +1 -1
  327. package/lib/exercises/math/functions/trinoms/trinomialMeanValue.js +33 -14
  328. package/lib/exercises/math/geometry/areas/circleRadiusFromArea.d.ts.map +1 -1
  329. package/lib/exercises/math/geometry/areas/circleRadiusFromArea.js +1 -0
  330. package/lib/exercises/math/geometry/areas/squareSideFromArea.d.ts.map +1 -1
  331. package/lib/exercises/math/geometry/areas/squareSideFromArea.js +1 -0
  332. package/lib/exercises/math/geometry/cartesian/cartesianFromTwoPoints.js +1 -1
  333. package/lib/exercises/math/geometry/euclidianConstructions/buildMediatriceWithCompass.d.ts +2 -0
  334. package/lib/exercises/math/geometry/euclidianConstructions/buildMediatriceWithCompass.d.ts.map +1 -1
  335. package/lib/exercises/math/geometry/euclidianConstructions/buildMediatriceWithCompass.js +55 -27
  336. package/lib/exercises/math/geometry/euclidianConstructions/buildPointFromAxialSymetry.d.ts.map +1 -1
  337. package/lib/exercises/math/geometry/euclidianConstructions/buildPointFromAxialSymetry.js +4 -0
  338. package/lib/exercises/math/geometry/euclidianConstructions/buildTriangleWithSizes.d.ts.map +1 -1
  339. package/lib/exercises/math/geometry/euclidianConstructions/buildTriangleWithSizes.js +4 -0
  340. package/lib/exercises/math/geometry/euclidianConstructions/pointImageFromTranslation.d.ts.map +1 -1
  341. package/lib/exercises/math/geometry/euclidianConstructions/pointImageFromTranslation.js +6 -2
  342. package/lib/exercises/math/geometry/lines/isPointOnCartesianLine.d.ts.map +1 -1
  343. package/lib/exercises/math/geometry/lines/isPointOnCartesianLine.js +7 -5
  344. package/lib/exercises/math/geometry/lines/isPointOnLine.d.ts.map +1 -1
  345. package/lib/exercises/math/geometry/lines/isPointOnLine.js +4 -0
  346. package/lib/exercises/math/geometry/parametric/extractPointFromParametricLine.d.ts.map +1 -1
  347. package/lib/exercises/math/geometry/parametric/extractPointFromParametricLine.js +4 -0
  348. package/lib/exercises/math/geometry/parametric/extractVectorFromParametricLine.d.ts.map +1 -1
  349. package/lib/exercises/math/geometry/parametric/extractVectorFromParametricLine.js +4 -0
  350. package/lib/exercises/math/geometry/parametric/pointFromParametricLine.d.ts.map +1 -1
  351. package/lib/exercises/math/geometry/parametric/pointFromParametricLine.js +4 -0
  352. package/lib/exercises/math/geometry/perimeters/circleRadiusFromPerimeter.d.ts.map +1 -1
  353. package/lib/exercises/math/geometry/perimeters/circleRadiusFromPerimeter.js +4 -0
  354. package/lib/exercises/math/geometry/perimeters/rectangleSideFromPerimeter.d.ts.map +1 -1
  355. package/lib/exercises/math/geometry/perimeters/rectangleSideFromPerimeter.js +4 -0
  356. package/lib/exercises/math/geometry/perimeters/squareSideFromPerimeter.d.ts.map +1 -1
  357. package/lib/exercises/math/geometry/perimeters/squareSideFromPerimeter.js +4 -0
  358. package/lib/exercises/math/geometry/pythagore/isTriangleRight.d.ts.map +1 -1
  359. package/lib/exercises/math/geometry/pythagore/isTriangleRight.js +4 -0
  360. package/lib/exercises/math/geometry/quadrilaterals/parallelogramAngles.d.ts.map +1 -1
  361. package/lib/exercises/math/geometry/quadrilaterals/parallelogramAngles.js +4 -0
  362. package/lib/exercises/math/geometry/quadrilaterals/quadrilateralRecognition.d.ts.map +1 -1
  363. package/lib/exercises/math/geometry/quadrilaterals/quadrilateralRecognition.js +4 -0
  364. package/lib/exercises/math/geometry/shapes/basicShapesNaming.d.ts +4 -1
  365. package/lib/exercises/math/geometry/shapes/basicShapesNaming.d.ts.map +1 -1
  366. package/lib/exercises/math/geometry/shapes/basicShapesNaming.js +97 -44
  367. package/lib/exercises/math/geometry/shapes/basicShapesRecognition.d.ts.map +1 -1
  368. package/lib/exercises/math/geometry/shapes/basicShapesRecognition.js +42 -23
  369. package/lib/exercises/math/geometry/thales/thalesCalcul.d.ts.map +1 -1
  370. package/lib/exercises/math/geometry/thales/thalesCalcul.js +8 -4
  371. package/lib/exercises/math/geometry/vectors/chasles.d.ts.map +1 -1
  372. package/lib/exercises/math/geometry/vectors/chasles.js +36 -12
  373. package/lib/exercises/math/geometry/vectors/coordinatesReading.d.ts.map +1 -1
  374. package/lib/exercises/math/geometry/vectors/coordinatesReading.js +28 -14
  375. package/lib/exercises/math/geometry/vectors/determinant.d.ts.map +1 -1
  376. package/lib/exercises/math/geometry/vectors/determinant.js +26 -12
  377. package/lib/exercises/math/geometry/vectors/drawAVectorInGGB.d.ts.map +1 -1
  378. package/lib/exercises/math/geometry/vectors/drawAVectorInGGB.js +25 -11
  379. package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.d.ts +1 -0
  380. package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.d.ts.map +1 -1
  381. package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.js +60 -33
  382. package/lib/exercises/math/geometry/vectors/fourthParallelogramPoint.d.ts.map +1 -1
  383. package/lib/exercises/math/geometry/vectors/fourthParallelogramPoint.js +34 -19
  384. package/lib/exercises/math/geometry/vectors/paralellismViaColinearity.d.ts.map +1 -1
  385. package/lib/exercises/math/geometry/vectors/paralellismViaColinearity.js +42 -20
  386. package/lib/exercises/math/geometry/vectors/parallelogramViaEqualVectors.d.ts.map +1 -1
  387. package/lib/exercises/math/geometry/vectors/parallelogramViaEqualVectors.js +42 -20
  388. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOrthoInSquare.d.ts.map +1 -1
  389. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOrthoInSquare.js +4 -0
  390. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCoords.d.ts.map +1 -1
  391. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCoords.js +4 -2
  392. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.d.ts.map +1 -1
  393. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.js +4 -0
  394. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaNorms.d.ts.map +1 -1
  395. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaNorms.js +4 -0
  396. package/lib/exercises/math/geometry/vectors/traceOppositeVector.d.ts.map +1 -1
  397. package/lib/exercises/math/geometry/vectors/traceOppositeVector.js +4 -0
  398. package/lib/exercises/math/geometry/vectors/traceVectorDifference.d.ts.map +1 -1
  399. package/lib/exercises/math/geometry/vectors/traceVectorDifference.js +4 -0
  400. package/lib/exercises/math/geometry/vectors/traceVectorMultiple.d.ts.map +1 -1
  401. package/lib/exercises/math/geometry/vectors/traceVectorMultiple.js +4 -0
  402. package/lib/exercises/math/geometry/vectors/traceVectorSum.d.ts.map +1 -1
  403. package/lib/exercises/math/geometry/vectors/traceVectorSum.js +4 -0
  404. package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts +2 -0
  405. package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts.map +1 -1
  406. package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.js +45 -25
  407. package/lib/exercises/math/geometry/vectors/vectorLinearCombination.d.ts.map +1 -1
  408. package/lib/exercises/math/geometry/vectors/vectorLinearCombination.js +33 -14
  409. package/lib/exercises/math/geometry/vectors/vectorNormCalculation.d.ts.map +1 -1
  410. package/lib/exercises/math/geometry/vectors/vectorNormCalculation.js +9 -3
  411. package/lib/exercises/math/limits/limitReading.d.ts +5 -1
  412. package/lib/exercises/math/limits/limitReading.d.ts.map +1 -1
  413. package/lib/exercises/math/limits/limitReading.js +96 -38
  414. package/lib/exercises/math/limits/polynomLimit.d.ts.map +1 -1
  415. package/lib/exercises/math/limits/polynomLimit.js +0 -2
  416. package/lib/exercises/math/limits/rationalFracForbiddenValueLimit.d.ts.map +1 -1
  417. package/lib/exercises/math/limits/rationalFracForbiddenValueLimit.js +37 -20
  418. package/lib/exercises/math/limits/rationalFracLimit.d.ts.map +1 -1
  419. package/lib/exercises/math/limits/rationalFracLimit.js +34 -17
  420. package/lib/exercises/math/limits/sequenceGeometricLimit.d.ts.map +1 -1
  421. package/lib/exercises/math/limits/sequenceGeometricLimit.js +4 -0
  422. package/lib/exercises/math/limits/sequencePolynomLimit.d.ts.map +1 -1
  423. package/lib/exercises/math/limits/sequencePolynomLimit.js +23 -10
  424. package/lib/exercises/math/limits/sequencePolynomNoFILimit.d.ts.map +1 -1
  425. package/lib/exercises/math/limits/sequencePolynomNoFILimit.js +24 -11
  426. package/lib/exercises/math/limits/sequencePolynomProductLimit.d.ts.map +1 -1
  427. package/lib/exercises/math/limits/sequencePolynomProductLimit.js +31 -18
  428. package/lib/exercises/math/limits/sequenceRationalFracLimit.d.ts.map +1 -1
  429. package/lib/exercises/math/limits/sequenceRationalFracLimit.js +33 -16
  430. package/lib/exercises/math/matrices/matrixGeneralTerm.d.ts.map +1 -1
  431. package/lib/exercises/math/matrices/matrixGeneralTerm.js +21 -8
  432. package/lib/exercises/math/matrices/matrixInversibilityDomain.d.ts.map +1 -1
  433. package/lib/exercises/math/matrices/matrixInversibilityDomain.js +44 -26
  434. package/lib/exercises/math/matrices/productCell.d.ts +2 -0
  435. package/lib/exercises/math/matrices/productCell.d.ts.map +1 -1
  436. package/lib/exercises/math/matrices/productCell.js +27 -12
  437. package/lib/exercises/math/powers/decimalToScientific.d.ts.map +1 -1
  438. package/lib/exercises/math/powers/decimalToScientific.js +9 -0
  439. package/lib/exercises/math/primitive/constantPrimitive.d.ts +2 -1
  440. package/lib/exercises/math/primitive/constantPrimitive.d.ts.map +1 -1
  441. package/lib/exercises/math/primitive/constantPrimitive.js +3 -3
  442. package/lib/exercises/math/primitive/exponentialPrimitive.d.ts +2 -1
  443. package/lib/exercises/math/primitive/exponentialPrimitive.d.ts.map +1 -1
  444. package/lib/exercises/math/primitive/exponentialPrimitive.js +3 -3
  445. package/lib/exercises/math/primitive/polynomialPrimitive.d.ts +2 -1
  446. package/lib/exercises/math/primitive/polynomialPrimitive.d.ts.map +1 -1
  447. package/lib/exercises/math/primitive/polynomialPrimitive.js +3 -3
  448. package/lib/exercises/math/primitive/sinCosPrimitive.d.ts +2 -1
  449. package/lib/exercises/math/primitive/sinCosPrimitive.d.ts.map +1 -1
  450. package/lib/exercises/math/primitive/sinCosPrimitive.js +3 -3
  451. package/lib/exercises/math/primitive/usualPrimitives.d.ts.map +1 -1
  452. package/lib/exercises/math/primitive/usualPrimitives.js +33 -6
  453. package/lib/exercises/math/probaStat/binomial/varianceOfBinomialProba.d.ts.map +1 -1
  454. package/lib/exercises/math/probaStat/binomial/varianceOfBinomialProba.js +1 -0
  455. package/lib/exercises/math/probaStat/stats1var/quartilesList.d.ts.map +1 -1
  456. package/lib/exercises/math/probaStat/stats1var/quartilesList.js +4 -1
  457. package/lib/exercises/math/probaStat/stats2var/averagePoint.d.ts.map +1 -1
  458. package/lib/exercises/math/probaStat/stats2var/averagePoint.js +1 -2
  459. package/lib/exercises/math/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts.map +1 -1
  460. package/lib/exercises/math/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +47 -23
  461. package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts.map +1 -1
  462. package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormula.js +4 -6
  463. package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplictFormulaFirstTermRandom.d.ts.map +1 -1
  464. package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplictFormulaFirstTermRandom.js +4 -0
  465. package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.d.ts.map +1 -1
  466. package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.js +30 -12
  467. package/lib/exercises/math/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -1
  468. package/lib/exercises/math/sequences/arithmetic/arithmeticFindReason.js +4 -0
  469. package/lib/exercises/math/sequences/arithmetic/arithmeticFindReasonRandomRange.d.ts.map +1 -1
  470. package/lib/exercises/math/sequences/arithmetic/arithmeticFindReasonRandomRange.js +23 -9
  471. package/lib/exercises/math/sequences/arithmetic/arithmeticFindTerm.d.ts.map +1 -1
  472. package/lib/exercises/math/sequences/arithmetic/arithmeticFindTerm.js +62 -41
  473. package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.d.ts.map +1 -1
  474. package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.js +4 -2
  475. package/lib/exercises/math/sequences/arithmetic/arithmeticReasonUsage.d.ts.map +1 -1
  476. package/lib/exercises/math/sequences/arithmetic/arithmeticReasonUsage.js +4 -0
  477. package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
  478. package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +26 -10
  479. package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
  480. package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.js +33 -14
  481. package/lib/exercises/math/sequences/arithmetic/firstIntegersSum.d.ts.map +1 -1
  482. package/lib/exercises/math/sequences/arithmetic/firstIntegersSum.js +4 -2
  483. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.d.ts.map +1 -1
  484. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.js +35 -14
  485. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.d.ts.map +1 -1
  486. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +37 -24
  487. package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromFirstTerms.d.ts.map +1 -1
  488. package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromFirstTerms.js +4 -0
  489. package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.d.ts.map +1 -1
  490. package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.js +29 -15
  491. package/lib/exercises/math/sequences/explicitFormulaUsage.d.ts.map +1 -1
  492. package/lib/exercises/math/sequences/explicitFormulaUsage.js +27 -10
  493. package/lib/exercises/math/sequences/genericSequenceVariations.d.ts.map +1 -1
  494. package/lib/exercises/math/sequences/genericSequenceVariations.js +23 -10
  495. package/lib/exercises/math/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -1
  496. package/lib/exercises/math/sequences/geometric/geometricExplicitFormulaUsage.js +9 -3
  497. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -1
  498. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormula.js +45 -17
  499. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstTermRandom.d.ts.map +1 -1
  500. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstTermRandom.js +20 -9
  501. package/lib/exercises/math/sequences/geometric/geometricFindReason.d.ts.map +1 -1
  502. package/lib/exercises/math/sequences/geometric/geometricFindReason.js +20 -9
  503. package/lib/exercises/math/sequences/geometric/geometricFindTerm.d.ts.map +1 -1
  504. package/lib/exercises/math/sequences/geometric/geometricFindTerm.js +60 -41
  505. package/lib/exercises/math/sequences/geometric/geometricFirstTermsSum.d.ts.map +1 -1
  506. package/lib/exercises/math/sequences/geometric/geometricFirstTermsSum.js +1 -0
  507. package/lib/exercises/math/sequences/geometric/geometricReasonUsage.d.ts.map +1 -1
  508. package/lib/exercises/math/sequences/geometric/geometricReasonUsage.js +26 -10
  509. package/lib/exercises/math/sequences/geometric/geometricRecognizeReasonFromFirstTerms.d.ts.map +1 -1
  510. package/lib/exercises/math/sequences/geometric/geometricRecognizeReasonFromFirstTerms.js +4 -0
  511. package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
  512. package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.js +27 -10
  513. package/lib/exercises/math/sequences/geometric/geometricVariations.d.ts.map +1 -1
  514. package/lib/exercises/math/sequences/geometric/geometricVariations.js +4 -0
  515. package/lib/exercises/math/sequences/recurrenceFormulaUsage.d.ts.map +1 -1
  516. package/lib/exercises/math/sequences/recurrenceFormulaUsage.js +23 -11
  517. package/lib/exercises/math/sequences/sequenceEvaluation.d.ts.map +1 -1
  518. package/lib/exercises/math/sequences/sequenceEvaluation.js +45 -21
  519. package/lib/exercises/math/sets/intervals/intervalsUnion.d.ts.map +1 -1
  520. package/lib/exercises/math/sets/intervals/intervalsUnion.js +1 -2
  521. package/lib/exercises/pc/calibrationCurveOfSolution.d.ts.map +1 -1
  522. package/lib/exercises/pc/calibrationCurveOfSolution.js +56 -48
  523. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.js +3 -1
  524. package/lib/exercises/pc/chemicalElements/weightPercent.d.ts.map +1 -1
  525. package/lib/exercises/pc/chemicalElements/weightPercent.js +1 -0
  526. package/lib/exercises/pc/chemicalEquations.d.ts.map +1 -1
  527. package/lib/exercises/pc/chemicalEquations.js +0 -2
  528. package/lib/exercises/pc/chemicalReactions/chemicalEquations.d.ts +8 -0
  529. package/lib/exercises/pc/chemicalReactions/chemicalEquations.d.ts.map +1 -0
  530. package/lib/exercises/pc/chemicalReactions/chemicalEquations.js +62 -0
  531. package/lib/exercises/pc/chemicalReactions/chemicalReactionsProduct.d.ts +9 -0
  532. package/lib/exercises/pc/chemicalReactions/chemicalReactionsProduct.d.ts.map +1 -0
  533. package/lib/exercises/pc/chemicalReactions/chemicalReactionsProduct.js +70 -0
  534. package/lib/exercises/pc/chemicalReactions/index.d.ts +2 -0
  535. package/lib/exercises/pc/chemicalReactions/index.d.ts.map +1 -1
  536. package/lib/exercises/pc/chemicalReactions/index.js +2 -0
  537. package/lib/exercises/pc/delution.d.ts.map +1 -1
  538. package/lib/exercises/pc/delution.js +25 -12
  539. package/lib/exercises/pc/dosage/concentrationCalculation.d.ts.map +1 -1
  540. package/lib/exercises/pc/dosage/concentrationCalculation.js +5 -3
  541. package/lib/exercises/pc/electricity/calculateVoltage.d.ts.map +1 -1
  542. package/lib/exercises/pc/electricity/calculateVoltage.js +112 -90
  543. package/lib/exercises/pc/electricity/electricEnergyFromPower.d.ts.map +1 -1
  544. package/lib/exercises/pc/electricity/electricEnergyFromPower.js +1 -0
  545. package/lib/exercises/pc/energy/calorificValue.d.ts.map +1 -1
  546. package/lib/exercises/pc/energy/calorificValue.js +58 -29
  547. package/lib/exercises/pc/energy/combustionTransferEnergy.d.ts.map +1 -1
  548. package/lib/exercises/pc/energy/combustionTransferEnergy.js +52 -29
  549. package/lib/exercises/pc/energy/combustionTransferEnergy2.d.ts.map +1 -1
  550. package/lib/exercises/pc/energy/combustionTransferEnergy2.js +96 -67
  551. package/lib/exercises/pc/energy/efficencyOfConverter.d.ts.map +1 -1
  552. package/lib/exercises/pc/energy/efficencyOfConverter.js +53 -40
  553. package/lib/exercises/pc/energy/efficiencyCalculation.d.ts.map +1 -1
  554. package/lib/exercises/pc/energy/efficiencyCalculation.js +68 -38
  555. package/lib/exercises/pc/energy/energyTransfer.d.ts +0 -2
  556. package/lib/exercises/pc/energy/energyTransfer.d.ts.map +1 -1
  557. package/lib/exercises/pc/energy/energyTransfer.js +27 -11
  558. package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.d.ts.map +1 -1
  559. package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.js +111 -64
  560. package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.d.ts.map +1 -1
  561. package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.js +86 -38
  562. package/lib/exercises/pc/fluids/mariotte.d.ts.map +1 -1
  563. package/lib/exercises/pc/fluids/mariotte.js +40 -23
  564. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.d.ts.map +1 -1
  565. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.js +80 -52
  566. package/lib/exercises/pc/forces/electroStaticForce.d.ts.map +1 -1
  567. package/lib/exercises/pc/forces/electroStaticForce.js +73 -58
  568. package/lib/exercises/pc/forces/forceWork.d.ts.map +1 -1
  569. package/lib/exercises/pc/forces/forceWork.js +22 -7
  570. package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.d.ts.map +1 -1
  571. package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.js +87 -38
  572. package/lib/exercises/pc/forces/gravitationalAttractionValue.d.ts.map +1 -1
  573. package/lib/exercises/pc/forces/gravitationalAttractionValue.js +31 -16
  574. package/lib/exercises/pc/forces/gravitationalForcePlanets.d.ts.map +1 -1
  575. package/lib/exercises/pc/forces/gravitationalForcePlanets.js +71 -31
  576. package/lib/exercises/pc/forces/massWeight.d.ts.map +1 -1
  577. package/lib/exercises/pc/forces/massWeight.js +53 -20
  578. package/lib/exercises/pc/forces/pressingForce.d.ts.map +1 -1
  579. package/lib/exercises/pc/forces/pressingForce.js +71 -31
  580. package/lib/exercises/pc/formulaFromComposition.d.ts.map +1 -1
  581. package/lib/exercises/pc/formulaFromComposition.js +28 -8
  582. package/lib/exercises/pc/identifyAtomicMassOrAtomicNb.d.ts.map +1 -1
  583. package/lib/exercises/pc/identifyAtomicMassOrAtomicNb.js +31 -12
  584. package/lib/exercises/pc/index.d.ts +4 -6
  585. package/lib/exercises/pc/index.d.ts.map +1 -1
  586. package/lib/exercises/pc/index.js +4 -6
  587. package/lib/exercises/pc/kineticEnergy.d.ts.map +1 -1
  588. package/lib/exercises/pc/kineticEnergy.js +22 -10
  589. package/lib/exercises/pc/math/isolateVariables.d.ts.map +1 -1
  590. package/lib/exercises/pc/math/isolateVariables.js +114 -32
  591. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.d.ts.map +1 -1
  592. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.js +34 -18
  593. package/lib/exercises/pc/mecanicalWaves/elongationReading.d.ts.map +1 -1
  594. package/lib/exercises/pc/mecanicalWaves/elongationReading.js +35 -13
  595. package/lib/exercises/pc/molarQuantity.d.ts.map +1 -1
  596. package/lib/exercises/pc/molarQuantity.js +29 -13
  597. package/lib/exercises/pc/mole/concentrationReading.d.ts +4 -1
  598. package/lib/exercises/pc/mole/concentrationReading.d.ts.map +1 -1
  599. package/lib/exercises/pc/mole/concentrationReading.js +28 -10
  600. package/lib/exercises/pc/mole/molFromMass.d.ts.map +1 -1
  601. package/lib/exercises/pc/mole/molFromMass.js +21 -8
  602. package/lib/exercises/pc/mole/molFromMolarMass.d.ts.map +1 -1
  603. package/lib/exercises/pc/mole/molFromMolarMass.js +21 -8
  604. package/lib/exercises/pc/mole/molarMass.d.ts +3 -1
  605. package/lib/exercises/pc/mole/molarMass.d.ts.map +1 -1
  606. package/lib/exercises/pc/mole/molarMass.js +22 -9
  607. package/lib/exercises/pc/mole/moleculeCountFromMassAndAvogadro.d.ts.map +1 -1
  608. package/lib/exercises/pc/mole/moleculeCountFromMassAndAvogadro.js +25 -11
  609. package/lib/exercises/pc/mole/moleculeCountFromMol.d.ts.map +1 -1
  610. package/lib/exercises/pc/mole/moleculeCountFromMol.js +18 -7
  611. package/lib/exercises/pc/moleculeFormula.d.ts.map +1 -1
  612. package/lib/exercises/pc/moleculeFormula.js +30 -9
  613. package/lib/exercises/pc/moleculeNomenclature.d.ts.map +1 -1
  614. package/lib/exercises/pc/moleculeNomenclature.js +23 -8
  615. package/lib/exercises/pc/motion/averageSpeed.d.ts.map +1 -1
  616. package/lib/exercises/pc/motion/averageSpeed.js +68 -55
  617. package/lib/exercises/pc/motion/averageSpeedCalculation.d.ts.map +1 -1
  618. package/lib/exercises/pc/motion/averageSpeedCalculation.js +97 -39
  619. package/lib/exercises/pc/motion/characteristicsOfVelocityVector.d.ts +4 -1
  620. package/lib/exercises/pc/motion/characteristicsOfVelocityVector.d.ts.map +1 -1
  621. package/lib/exercises/pc/motion/characteristicsOfVelocityVector.js +51 -49
  622. package/lib/exercises/pc/motion/motionReference.d.ts +1 -0
  623. package/lib/exercises/pc/motion/motionReference.d.ts.map +1 -1
  624. package/lib/exercises/pc/motion/motionReference.js +47 -26
  625. package/lib/exercises/pc/motion/typeOfAcceleration.d.ts +1 -1
  626. package/lib/exercises/pc/motion/typeOfAcceleration.d.ts.map +1 -1
  627. package/lib/exercises/pc/motion/typeOfAcceleration.js +61 -62
  628. package/lib/exercises/pc/motion/typeOfMovement.d.ts +2 -1
  629. package/lib/exercises/pc/motion/typeOfMovement.d.ts.map +1 -1
  630. package/lib/exercises/pc/motion/typeOfMovement.js +58 -57
  631. package/lib/exercises/pc/orderOfMagnitude.d.ts.map +1 -1
  632. package/lib/exercises/pc/orderOfMagnitude.js +24 -23
  633. package/lib/exercises/pc/pH.d.ts.map +1 -1
  634. package/lib/exercises/pc/pH.js +37 -16
  635. package/lib/exercises/pc/perceivedFrequency.d.ts.map +1 -1
  636. package/lib/exercises/pc/perceivedFrequency.js +26 -13
  637. package/lib/exercises/pc/potentialEnergy.d.ts.map +1 -1
  638. package/lib/exercises/pc/potentialEnergy.js +23 -11
  639. package/lib/exercises/pc/power/calculatePowerOfLight.d.ts +2 -2
  640. package/lib/exercises/pc/power/calculatePowerOfLight.d.ts.map +1 -1
  641. package/lib/exercises/pc/power/calculatePowerOfLight.js +65 -39
  642. package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.d.ts +3 -1
  643. package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.d.ts.map +1 -1
  644. package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.js +48 -47
  645. package/lib/exercises/pc/snellDescartes.d.ts.map +1 -1
  646. package/lib/exercises/pc/snellDescartes.js +31 -13
  647. package/lib/exercises/pc/sound/findPeriodFromGraph.d.ts.map +1 -1
  648. package/lib/exercises/pc/sound/findPeriodFromGraph.js +42 -26
  649. package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.d.ts +1 -0
  650. package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.d.ts.map +1 -1
  651. package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.js +51 -32
  652. package/lib/exercises/pc/sound/findSoundFrequencyFromPeriod.d.ts.map +1 -1
  653. package/lib/exercises/pc/sound/findSoundFrequencyFromPeriod.js +20 -7
  654. package/lib/exercises/pc/sound/findSoundPeriodFromFrequency.d.ts.map +1 -1
  655. package/lib/exercises/pc/sound/findSoundPeriodFromFrequency.js +20 -7
  656. package/lib/exercises/pc/sound/frequencyComparison.d.ts.map +1 -1
  657. package/lib/exercises/pc/sound/frequencyComparison.js +25 -14
  658. package/lib/exercises/pc/spectral/spectralEnergy.d.ts +1 -3
  659. package/lib/exercises/pc/spectral/spectralEnergy.d.ts.map +1 -1
  660. package/lib/exercises/pc/spectral/spectralEnergy.js +98 -56
  661. package/lib/exercises/pc/waves/findDistanceFromEarth.d.ts.map +1 -1
  662. package/lib/exercises/pc/waves/findDistanceFromEarth.js +22 -9
  663. package/lib/exercises/pc/waves/lightDistanceConversion.d.ts.map +1 -1
  664. package/lib/exercises/pc/waves/lightDistanceConversion.js +104 -76
  665. package/lib/exercises/pc/waves/periodicWaveCelerity.d.ts +1 -0
  666. package/lib/exercises/pc/waves/periodicWaveCelerity.d.ts.map +1 -1
  667. package/lib/exercises/pc/waves/periodicWaveCelerity.js +81 -25
  668. package/lib/exercises/pc/weight/calculateWeight.d.ts.map +1 -1
  669. package/lib/exercises/pc/weight/calculateWeight.js +55 -26
  670. package/lib/exercises/pc/weight/weightOnTheMoon.d.ts.map +1 -1
  671. package/lib/exercises/pc/weight/weightOnTheMoon.js +67 -32
  672. package/lib/index.d.ts +63 -41
  673. package/lib/index.d.ts.map +1 -1
  674. package/lib/latexTester.js +7 -2
  675. package/lib/math/geometry/ray.d.ts +8 -1
  676. package/lib/math/geometry/ray.d.ts.map +1 -1
  677. package/lib/math/geometry/ray.js +11 -1
  678. package/lib/math/polynomials/trinom.d.ts +5 -0
  679. package/lib/math/polynomials/trinom.d.ts.map +1 -1
  680. package/lib/math/polynomials/trinom.js +6 -0
  681. package/lib/pc/constants/molecularChemistry/reaction.js +1 -1
  682. package/lib/pc/measure/measure.d.ts +11 -4
  683. package/lib/pc/measure/measure.d.ts.map +1 -1
  684. package/lib/pc/measure/measure.js +10 -6
  685. package/lib/playground.d.ts.map +1 -1
  686. package/lib/playground.js +8 -1
  687. package/lib/tests/exoTest.d.ts.map +1 -1
  688. package/lib/tests/exoTest.js +13 -0
  689. package/lib/tests/mega.test.d.ts +2 -0
  690. package/lib/tests/mega.test.d.ts.map +1 -0
  691. package/lib/tests/mega.test.js +13 -0
  692. package/lib/tests/megaxl.test.d.ts +2 -0
  693. package/lib/tests/megaxl.test.d.ts.map +1 -0
  694. package/lib/tests/megaxl.test.js +10 -0
  695. package/lib/tests/singleExo.test.d.ts.map +1 -1
  696. package/lib/tests/singleExo.test.js +2 -2
  697. package/lib/tree/nodes/operators/powerNode.d.ts.map +1 -1
  698. package/lib/tree/nodes/operators/powerNode.js +2 -1
  699. package/package.json +3 -1
@@ -1,9 +1,10 @@
1
- import { Exercise, QCMGenerator, QuestionGenerator, VEA } from "../../../../exercises/exercise.js";
1
+ import { Exercise, GetQuestionFromIdentifiers, QCMGenerator, QuestionGenerator, VEA } from "../../../../exercises/exercise.js";
2
2
  type Identifiers = {
3
3
  affine1Coeffs: number[];
4
4
  affine2Coeffs: number[];
5
5
  };
6
6
  export declare const getThirdIdentityQuestion: QuestionGenerator<Identifiers>;
7
+ export declare const getThirdIdentityQuestionFromIdentifiers: GetQuestionFromIdentifiers<Identifiers>;
7
8
  export declare const getThirdIdentityPropositions: QCMGenerator<Identifiers>;
8
9
  export declare const isThirdIdentityAnswerValid: VEA<Identifiers>;
9
10
  export declare const thirdIdentity: Exercise<Identifiers>;
@@ -1 +1 @@
1
- {"version":3,"file":"idRmq3.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/idRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQR,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,6BAA6B,CAAC;AAiBrC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAoEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,WAAW,CAQnE,CAAC;AAiBF,eAAO,MAAM,4BAA4B,EAAE,YAAY,CAAC,WAAW,CA2BlE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,GAAG,CAAC,WAAW,CAgBvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAa/C,CAAC"}
1
+ {"version":3,"file":"idRmq3.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/idRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAKR,0BAA0B,EAG1B,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,6BAA6B,CAAC;AAiBrC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAoEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,WAAW,CAQnE,CAAC;AAEF,eAAO,MAAM,uCAAuC,EAAE,0BAA0B,CAC9E,WAAW,CAaZ,CAAC;AACF,eAAO,MAAM,4BAA4B,EAAE,YAAY,CAAC,WAAW,CA2BlE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,GAAG,CAAC,WAAW,CAgBvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAa/C,CAAC"}
@@ -78,9 +78,9 @@ export const getThirdIdentityQuestion = () => {
78
78
  affine1Coeffs: affine.coefficients,
79
79
  affine2Coeffs: affine2.coefficients,
80
80
  };
81
- return getQuestionFromIdentifiers(identifiers);
81
+ return getThirdIdentityQuestionFromIdentifiers(identifiers);
82
82
  };
83
- const getQuestionFromIdentifiers = (identifiers) => {
83
+ export const getThirdIdentityQuestionFromIdentifiers = (identifiers) => {
84
84
  const question = {
85
85
  instruction: getInstruction(identifiers),
86
86
  startStatement: getStartStatement(identifiers),
@@ -138,5 +138,5 @@ export const thirdIdentity = {
138
138
  freeTimer: 60,
139
139
  subject: "Mathématiques",
140
140
  hasHintAndCorrection: true,
141
- getQuestionFromIdentifiers,
141
+ getQuestionFromIdentifiers: getThirdIdentityQuestionFromIdentifiers,
142
142
  };
@@ -1 +1 @@
1
- {"version":3,"file":"facto1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/facto1.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAwBrC;;;GAGG;AACH,KAAK,WAAW,GAAG;IAEjB,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAIlB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AA4NF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAepD,CAAC"}
1
+ {"version":3,"file":"facto1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/facto1.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AA0BrC;;;GAGG;AACH,KAAK,WAAW,GAAG;IAEjB,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAIlB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AA6NF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAepD,CAAC"}
@@ -5,6 +5,7 @@ import { addValidProp, tryToAddWrongProp, } from "../../../../exercises/exercise
5
5
  import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
6
6
  import { Affine, AffineConstructor } from "../../../../math/polynomials/affine.js";
7
7
  import { randint } from "../../../../math/utils/random/randint.js";
8
+ import { isOppositeNode } from "../../../../tree/nodes/functions/oppositeNode.js";
8
9
  import { add } from "../../../../tree/nodes/operators/addNode.js";
9
10
  import { MultiplyNode, isMultiplyNode, multiply, } from "../../../../tree/nodes/operators/multiplyNode.js";
10
11
  import { isPowerNode, isSquareNode, } from "../../../../tree/nodes/operators/powerNode.js";
@@ -149,7 +150,8 @@ const isAnswerValid = (ans, { answer, ...identifiers }) => {
149
150
  if (answer !== "0" &&
150
151
  !isMultiplyNode(parsed) &&
151
152
  !isSquareNode(parsed) &&
152
- !isPowerNode(parsed))
153
+ !isPowerNode(parsed) &&
154
+ !isOppositeNode(parsed))
153
155
  return false;
154
156
  const simp = parsed.simplify({
155
157
  forbidFactorize: true,
@@ -23,7 +23,7 @@ $$
23
23
  *Donner le couple solution sous la forme $\\left(x;y\\right)$ : par exemple, si la solution est $x=2$ et $y=3$, alors on écrira $\\left(2;3\\right)$.*`;
24
24
  };
25
25
  const getHint = (identifiers) => {
26
- return `On peut utilise la méthode par substitution ou bien celle par combinaison :
26
+ return `Utilise la méthode par substitution ou bien celle par combinaison :
27
27
 
28
28
  - Si une des variables est facile à isoler dans une des équations, alors on utilise la méthode par substitution : on isole cette variable, puis on injecte le résultat obtenu dans l'autre équation.
29
29
 
@@ -1 +1 @@
1
- {"version":3,"file":"anagrams.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/combinatory/anagrams.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAQT,MAAM,6BAA6B,CAAC;AAsGrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAsDF,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,WAAW,CAa1C,CAAC"}
1
+ {"version":3,"file":"anagrams.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/combinatory/anagrams.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAsGrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAoEF,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,WAAW,CAY1C,CAAC"}
@@ -97,8 +97,12 @@ const letters = [
97
97
  "à",
98
98
  "ç",
99
99
  ];
100
- const getAnagramsQuestion = () => {
101
- const word = random(words);
100
+ const getInstruction = (identifiers) => {
101
+ const { word } = identifiers;
102
+ return `Combien d'anagrammes mathématiques du mot ${word} sont possibles ?`;
103
+ };
104
+ const getAnswer = (identifiers) => {
105
+ const { word } = identifiers;
102
106
  const repeats = [];
103
107
  const wordLetters = word.split("");
104
108
  letters.forEach((letter) => {
@@ -120,12 +124,20 @@ const getAnagramsQuestion = () => {
120
124
  arrangements *= getFacto(nbOfRepeats);
121
125
  });
122
126
  const answer = facto / arrangements + "";
127
+ return answer;
128
+ };
129
+ const getAnagramsQuestion = () => {
130
+ const word = random(words);
131
+ const identifiers = { word };
132
+ return getQuestionFromIdentifiers(identifiers);
133
+ };
134
+ const getQuestionFromIdentifiers = (identifiers) => {
123
135
  const question = {
124
- answer,
125
- instruction: `Combien d'anagrammes mathématiques du mot ${word} sont possibles ? `,
136
+ answer: getAnswer(identifiers),
137
+ instruction: getInstruction(identifiers),
126
138
  keys: [],
127
139
  answerFormat: "tex",
128
- identifiers: { word },
140
+ identifiers,
129
141
  };
130
142
  return question;
131
143
  };
@@ -147,13 +159,12 @@ export const anagrams = {
147
159
  id: "anagrams",
148
160
  connector: "=",
149
161
  label: "Compter le nombre d'anagrammes d'un mot",
150
- levels: ["TermSpé"],
151
162
  isSingleStep: true,
152
- sections: ["Combinatoire et dénombrement"],
153
163
  generator: (nb) => getDistinctQuestions(getAnagramsQuestion, nb),
154
164
  qcmTimer: 60,
155
165
  freeTimer: 60,
156
166
  getPropositions,
157
167
  isAnswerValid,
158
168
  subject: "Mathématiques",
169
+ getQuestionFromIdentifiers,
159
170
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ballsCounting.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/combinatory/ballsCounting.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAUT,MAAM,6BAA6B,CAAC;AAIrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAiJF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAe/C,CAAC"}
1
+ {"version":3,"file":"ballsCounting.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/combinatory/ballsCounting.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAIrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAwJF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAY/C,CAAC"}
@@ -58,8 +58,10 @@ const getInstruction = (identifiers) => {
58
58
  instruction = `comportant exactement une boule verte`;
59
59
  }
60
60
  return `Une urne contient $${blacks}$ boules noires numérotées de $1$ à $${blacks}$, $${reds}$ boules rouges numérotées de $1$ à $${reds}$ et $${greens}$ boules vertes numérotées de $1$ à $${greens}$.
61
- On tire successivement et sans remise $3$ boules dans l'urne.
62
- Combien de tirages ${instruction} sont possibles ?`;
61
+
62
+ On tire successivement et sans remise $3$ boules dans l'urne.
63
+
64
+ Combien de tirages ${instruction} sont possibles ?`;
63
65
  };
64
66
  const getBallsCountingQuestion = () => {
65
67
  const type = randint(0, 6);
@@ -67,6 +69,9 @@ const getBallsCountingQuestion = () => {
67
69
  const greens = randint(2, 6);
68
70
  const reds = randint(3, 6);
69
71
  const identifiers = { type, reds, greens, blacks };
72
+ return getQuestionFromIdentifiers(identifiers);
73
+ };
74
+ const getQuestionFromIdentifiers = (identifiers) => {
70
75
  const question = {
71
76
  answer: getAnswer(identifiers),
72
77
  instruction: getInstruction(identifiers),
@@ -122,15 +127,12 @@ export const ballsCounting = {
122
127
  id: "ballsCounting",
123
128
  connector: "=",
124
129
  label: "Dénombrement avec des boules",
125
- levels: ["TermSpé"],
126
130
  isSingleStep: true,
127
- sections: ["Combinatoire et dénombrement"],
128
131
  generator: (nb) => getDistinctQuestions(getBallsCountingQuestion, nb),
129
132
  qcmTimer: 60,
130
133
  freeTimer: 60,
131
134
  getPropositions,
132
135
  isAnswerValid,
133
136
  subject: "Mathématiques",
134
- getAnswer,
135
- getInstruction,
137
+ getQuestionFromIdentifiers,
136
138
  };
@@ -1 +1 @@
1
- {"version":3,"file":"diceCounting.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/combinatory/diceCounting.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAQT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAkHF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAa9C,CAAC"}
1
+ {"version":3,"file":"diceCounting.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/combinatory/diceCounting.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAyJF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAY9C,CAAC"}
@@ -1,64 +1,100 @@
1
1
  import { shuffleProps, tryToAddWrongProp, addValidProp, } from "../../../exercises/exercise.js";
2
2
  import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { randint } from "../../../math/utils/random/randint.js";
4
- const getDiceCountingQuestion = () => {
5
- const type = randint(0, 8);
4
+ const getInstruction = (identifiers) => {
5
+ const { type, face1, face2, face3 } = identifiers;
6
6
  let instruction = "";
7
- let answer = "";
8
- let face1;
9
- let face2;
10
- let face3;
11
7
  switch (type) {
12
8
  case 0:
13
9
  instruction = `avec exactement deux chiffres identiques`;
14
- answer = 6 * 3 * 5 + "";
15
10
  break;
16
11
  case 1:
17
12
  instruction = `avec trois chiffres identiques`;
18
- answer = 6 + "";
19
13
  break;
20
14
  case 2:
21
- face1 = randint(1, 7);
22
15
  instruction = `avec exactement une fois la face $${face1}$`;
23
- answer = 3 * 5 * 5 + "";
24
16
  break;
25
17
  case 3:
26
- face1 = randint(1, 7);
27
18
  instruction = `avec exactement deux fois la face $${face1}$`;
28
- answer = 3 * 5 + "";
29
19
  break;
30
20
  case 4:
31
- face1 = randint(1, 7);
32
- face2 = randint(1, 7, [face1]);
33
- face3 = randint(1, 7, [face1, face2]);
34
21
  instruction = `avec exactement les faces $${face1}$, $${face2}$ et $${face3}$`;
35
- answer = 6 + "";
36
22
  break;
37
23
  case 5:
38
- face1 = randint(1, 7);
39
- face2 = randint(1, 7, [face1]);
40
- face3 = randint(1, 7, [face1, face2]);
41
24
  instruction = `avec exactement une fois la face $${face1}$ et une fois la face $${face2}$`;
42
- answer = 3 * 5 + "";
43
25
  break;
44
26
  case 6:
45
27
  instruction = `dans lesquels toutes les faces sont différentes`;
46
- answer = 6 * 5 * 4 + "";
47
28
  break;
48
29
  case 7:
30
+ default:
49
31
  instruction = "";
50
- answer = 6 * 6 * 6 + "";
51
32
  break;
52
33
  }
34
+ return `On tire $3$ fois consécutivement un dé à six faces numérotées de $1$ à $6$.
35
+
36
+ Combien de tirages ${instruction} sont possibles ?`;
37
+ };
38
+ const getAnswer = (identifiers) => {
39
+ const { type, face1, face2, face3 } = identifiers;
40
+ switch (type) {
41
+ case 0:
42
+ return 6 * 3 * 5 + "";
43
+ case 1:
44
+ return 6 + "";
45
+ case 2:
46
+ return 3 * 5 * 5 + "";
47
+ case 3:
48
+ return 3 * 5 + "";
49
+ case 4:
50
+ return 6 + "";
51
+ case 5:
52
+ return 3 * 5 + "";
53
+ case 6:
54
+ return 6 * 5 * 4 + "";
55
+ case 7:
56
+ default:
57
+ return 6 * 6 * 6 + "";
58
+ }
59
+ };
60
+ const getQuestionFromIdentifiers = (identifiers) => {
53
61
  const question = {
54
- answer: answer,
55
- instruction: `On tire $3$ fois consécutivement un dé à six faces numérotées de $1$ à $6$. Combien de tirages ${instruction} sont possibles ?`,
62
+ answer: getAnswer(identifiers),
63
+ instruction: getInstruction(identifiers),
56
64
  keys: [],
57
65
  answerFormat: "tex",
58
- identifiers: { type, face1, face2, face3 },
66
+ identifiers,
59
67
  };
60
68
  return question;
61
69
  };
70
+ const getDiceCountingQuestion = () => {
71
+ const type = randint(0, 8);
72
+ let face1;
73
+ let face2;
74
+ let face3;
75
+ switch (type) {
76
+ case 2:
77
+ face1 = randint(1, 7);
78
+ break;
79
+ case 3:
80
+ face1 = randint(1, 7);
81
+ break;
82
+ case 4:
83
+ face1 = randint(1, 7);
84
+ face2 = randint(1, 7, [face1]);
85
+ face3 = randint(1, 7, [face1, face2]);
86
+ break;
87
+ case 5:
88
+ face1 = randint(1, 7);
89
+ face2 = randint(1, 7, [face1]);
90
+ face3 = randint(1, 7, [face1, face2]);
91
+ break;
92
+ default:
93
+ break;
94
+ }
95
+ const identifiers = { type, face1, face2, face3 };
96
+ return getQuestionFromIdentifiers(identifiers);
97
+ };
62
98
  const getPropositions = (n, { answer, type }) => {
63
99
  const propositions = [];
64
100
  addValidProp(propositions, answer);
@@ -110,13 +146,12 @@ export const diceCounting = {
110
146
  id: "diceCounting",
111
147
  connector: "=",
112
148
  label: "Dénombrement avec des dés",
113
- levels: ["TermSpé"],
114
149
  isSingleStep: true,
115
- sections: ["Combinatoire et dénombrement"],
116
150
  generator: (nb) => getDistinctQuestions(getDiceCountingQuestion, nb),
117
151
  qcmTimer: 60,
118
152
  freeTimer: 60,
119
153
  getPropositions,
120
154
  isAnswerValid,
121
155
  subject: "Mathématiques",
156
+ getQuestionFromIdentifiers,
122
157
  };
@@ -1 +1 @@
1
- {"version":3,"file":"addComplex.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/complex/addComplex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAsDF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,WAAW,CAa5C,CAAC"}
1
+ {"version":3,"file":"addComplex.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/complex/addComplex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAuEF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,WAAW,CAY5C,CAAC"}
@@ -2,30 +2,44 @@ import { addValidProp, tryToAddWrongProp, } from "../../../exercises/exercise.js
2
2
  import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { Complex, ComplexConstructor } from "../../../math/complex/complex.js";
4
4
  import { shuffle } from "../../../utils/alea/shuffle.js";
5
- const getAddComplexQuestion = () => {
6
- const z1 = ComplexConstructor.random();
7
- let z2;
8
- do {
9
- z2 = ComplexConstructor.random();
10
- } while (z1.im === 0 && z2.im === 0);
5
+ const getInstruction = (identifiers) => {
6
+ const z1 = new Complex(identifiers.z1Re, identifiers.z1Im);
7
+ const z2 = new Complex(identifiers.z2Re, identifiers.z2Im);
8
+ return `Soit $z=${z1.toTree().toTex()}$ et $z'=${z2.toTree().toTex()}$.
9
+
10
+ Calculer $z + z'$.`;
11
+ };
12
+ const getAnswer = (identifiers) => {
13
+ const z1 = new Complex(identifiers.z1Re, identifiers.z1Im);
14
+ const z2 = new Complex(identifiers.z2Re, identifiers.z2Im);
11
15
  const answer = z1.add(z2).toTree().toTex();
16
+ return answer;
17
+ };
18
+ const getQuestionFromIdentifiers = (identifiers) => {
12
19
  const question = {
13
- answer,
14
- instruction: `Soit $z=${z1.toTree().toTex()}$ et $z'=${z2
15
- .toTree()
16
- .toTex()}$. Calculer $z + z'$.`,
20
+ answer: getAnswer(identifiers),
21
+ instruction: getInstruction(identifiers),
17
22
  keys: ["i", "z", "quote"],
18
23
  answerFormat: "tex",
19
24
  startStatement: "z+z'",
20
- identifiers: {
21
- z1Re: z1.re,
22
- z1Im: z1.im,
23
- z2Re: z2.re,
24
- z2Im: z2.im,
25
- },
25
+ identifiers,
26
26
  };
27
27
  return question;
28
28
  };
29
+ const getAddComplexQuestion = () => {
30
+ const z1 = ComplexConstructor.random();
31
+ let z2;
32
+ do {
33
+ z2 = ComplexConstructor.random();
34
+ } while (z1.im === 0 && z2.im === 0);
35
+ const identifiers = {
36
+ z1Re: z1.re,
37
+ z1Im: z1.im,
38
+ z2Re: z2.re,
39
+ z2Im: z2.im,
40
+ };
41
+ return getQuestionFromIdentifiers(identifiers);
42
+ };
29
43
  const getPropositions = (n, { answer, z1Re, z1Im, z2Re, z2Im }) => {
30
44
  const propositions = [];
31
45
  addValidProp(propositions, answer);
@@ -49,13 +63,12 @@ export const addComplex = {
49
63
  id: "addComplex",
50
64
  connector: "=",
51
65
  label: "Additionner deux nombres complexes",
52
- levels: ["MathExp"],
53
66
  isSingleStep: true,
54
- sections: ["Nombres complexes"],
55
67
  generator: (nb) => getDistinctQuestions(getAddComplexQuestion, nb),
56
68
  qcmTimer: 60,
57
69
  freeTimer: 60,
58
70
  getPropositions,
59
71
  isAnswerValid,
60
72
  subject: "Mathématiques",
73
+ getQuestionFromIdentifiers,
61
74
  };
@@ -1 +1 @@
1
- {"version":3,"file":"argumentFromAlgebraicComplex.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/complex/argumentFromAlgebraicComplex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,6BAA6B,CAAC;AAarC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AA8CF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAc9D,CAAC"}
1
+ {"version":3,"file":"argumentFromAlgebraicComplex.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/complex/argumentFromAlgebraicComplex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAarC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAgEF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAa9D,CAAC"}
@@ -9,6 +9,27 @@ import { SqrtNode } from "../../../tree/nodes/functions/sqrtNode.js";
9
9
  import { NumberNode } from "../../../tree/nodes/numbers/numberNode.js";
10
10
  import { MultiplyNode } from "../../../tree/nodes/operators/multiplyNode.js";
11
11
  import { random } from "../../../utils/alea/random.js";
12
+ const getInstruction = (identifiers) => {
13
+ const zTex = identifiers.zTex;
14
+ return `Soit $z=${zTex}$.
15
+
16
+ Déterminer l'argument principal de $z$.`;
17
+ };
18
+ const getAnswer = (identifiers) => {
19
+ const arg = mainTrigoValues.find((point) => point.angle.evaluate({}) === identifiers.arg);
20
+ const answer = arg.angle.toTex();
21
+ return answer;
22
+ };
23
+ const getQuestionFromIdentifiers = (identifiers) => {
24
+ const question = {
25
+ answer: getAnswer(identifiers),
26
+ instruction: getInstruction(identifiers),
27
+ keys: ["pi"],
28
+ answerFormat: "tex",
29
+ identifiers,
30
+ };
31
+ return question;
32
+ };
12
33
  const getArgumentFromAlgebraicComplexQuestion = () => {
13
34
  const arg = random(mainTrigoValues);
14
35
  const factor = random([
@@ -20,15 +41,8 @@ const getArgumentFromAlgebraicComplexQuestion = () => {
20
41
  const im = new MultiplyNode(factor, arg.sin).simplify();
21
42
  const z = new ComplexNode(re, im);
22
43
  const zTex = z.toTex();
23
- const answer = arg.angle.toTex();
24
- const question = {
25
- answer: answer,
26
- instruction: `Soit $z=${zTex}$. Déterminer l'argument principal de $z$.`,
27
- keys: ["pi"],
28
- answerFormat: "tex",
29
- identifiers: { arg: arg.angle.evaluate({}), zTex },
30
- };
31
- return question;
44
+ const identifiers = { arg: arg.angle.evaluate({}), zTex };
45
+ return getQuestionFromIdentifiers(identifiers);
32
46
  };
33
47
  const getPropositions = (n, { answer }) => {
34
48
  const propositions = [];
@@ -48,13 +62,12 @@ export const argumentFromAlgebraicComplex = {
48
62
  id: "argumentFromAlgebraicComplex",
49
63
  connector: "=",
50
64
  label: "Déterminer l'argument d'un nombre complexe via sa forme algébrique",
51
- levels: ["MathExp"],
52
65
  isSingleStep: true,
53
- sections: ["Nombres complexes"],
54
66
  generator: (nb) => getDistinctQuestions(getArgumentFromAlgebraicComplexQuestion, nb),
55
67
  qcmTimer: 60,
56
68
  freeTimer: 60,
57
69
  getPropositions,
58
70
  isAnswerValid,
59
71
  subject: "Mathématiques",
72
+ getQuestionFromIdentifiers,
60
73
  };
@@ -1 +1 @@
1
- {"version":3,"file":"conjugateComplex.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/complex/conjugateComplex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AA2CF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAclD,CAAC"}
1
+ {"version":3,"file":"conjugateComplex.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/complex/conjugateComplex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AA4DF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAalD,CAAC"}
@@ -2,19 +2,33 @@ import { addValidProp, tryToAddWrongProp, } from "../../../exercises/exercise.js
2
2
  import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { Complex, ComplexConstructor } from "../../../math/complex/complex.js";
4
4
  import { shuffle } from "../../../utils/alea/shuffle.js";
5
- const getConjugateComplexQuestion = () => {
6
- const complex = ComplexConstructor.random();
5
+ const getInstruction = (identifiers) => {
6
+ const { re, im } = identifiers;
7
+ const complex = new Complex(re, im);
8
+ return `Déterminer le conjugué de $z=${complex.toTree().toTex()}$.`;
9
+ };
10
+ const getAnswer = (identifiers) => {
11
+ const { re, im } = identifiers;
12
+ const complex = new Complex(re, im);
7
13
  const answer = complex.conjugate().toTree().toTex();
14
+ return answer;
15
+ };
16
+ const getQuestionFromIdentifiers = (identifiers) => {
8
17
  const question = {
9
- answer,
10
- instruction: `Déterminer le conjugué de $z=${complex.toTree().toTex()}$.`,
18
+ answer: getAnswer(identifiers),
19
+ instruction: getInstruction(identifiers),
11
20
  keys: ["i", "overline"],
12
21
  answerFormat: "tex",
13
22
  startStatement: "\\overline z",
14
- identifiers: { re: complex.re, im: complex.im },
23
+ identifiers,
15
24
  };
16
25
  return question;
17
26
  };
27
+ const getConjugateComplexQuestion = () => {
28
+ const complex = ComplexConstructor.random();
29
+ const identifiers = { re: complex.re, im: complex.im };
30
+ return getQuestionFromIdentifiers(identifiers);
31
+ };
18
32
  const getPropositions = (n, { answer, re, im }) => {
19
33
  const propositions = [];
20
34
  addValidProp(propositions, answer);
@@ -40,12 +54,11 @@ export const conjugateComplex = {
40
54
  connector: "=",
41
55
  getPropositions,
42
56
  label: "Conjugué d'un nombre complexe",
43
- levels: ["MathExp"],
44
57
  isSingleStep: true,
45
- sections: ["Nombres complexes"],
46
58
  generator: (nb) => getDistinctQuestions(getConjugateComplexQuestion, nb),
47
59
  qcmTimer: 60,
48
60
  freeTimer: 60,
49
61
  isAnswerValid,
50
62
  subject: "Mathématiques",
63
+ getQuestionFromIdentifiers,
51
64
  };
@@ -1 +1 @@
1
- {"version":3,"file":"conjugateDivideComplex.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/complex/conjugateDivideComplex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,EAAE,CAAC;IACb,EAAE,EAAE,MAAM,EAAE,CAAC;CACd,CAAC;AAuDF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAcxD,CAAC"}
1
+ {"version":3,"file":"conjugateDivideComplex.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/complex/conjugateDivideComplex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,EAAE,CAAC;IACb,EAAE,EAAE,MAAM,EAAE,CAAC;CACd,CAAC;AAwEF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAaxD,CAAC"}
@@ -2,30 +2,44 @@ import { addValidProp, tryToAddWrongProp, } from "../../../exercises/exercise.js
2
2
  import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { Complex, ComplexConstructor } from "../../../math/complex/complex.js";
4
4
  import { shuffle } from "../../../utils/alea/shuffle.js";
5
- const getConjugateDivideComplexQuestion = () => {
6
- const z1 = ComplexConstructor.random();
7
- let z2;
8
- do {
9
- z2 = ComplexConstructor.random();
10
- } while (z1.im === 0 && z2.im === 0);
5
+ const getInstruction = (identifiers) => {
6
+ const z1 = new Complex(identifiers.z1[0], identifiers.z1[1]);
7
+ const z2 = new Complex(identifiers.z2[0], identifiers.z2[1]);
8
+ return `Soit $z=${z1.toTree().toTex()}$ et $z'=${z2.toTree().toTex()}$.
9
+
10
+ Calculer le conjugué de $\\frac{z}{z'}$.`;
11
+ };
12
+ const getAnswer = (identifiers) => {
13
+ const z1 = new Complex(identifiers.z1[0], identifiers.z1[1]);
14
+ const z2 = new Complex(identifiers.z2[0], identifiers.z2[1]);
11
15
  const conjz1 = z1.conjugate();
12
16
  const conjz2 = z2.conjugate();
13
17
  const answerTex = conjz1.divideNode(conjz2).toTex();
18
+ return answerTex;
19
+ };
20
+ const getQuestionFromIdentifiers = (identifiers) => {
14
21
  const question = {
15
- answer: answerTex,
16
- instruction: `Soit $z=${z1.toTree().toTex()}$ et $z'=${z2
17
- .toTree()
18
- .toTex()}$. Calculer le conjugué de $\\frac{z}{z'}$.`,
22
+ answer: getAnswer(identifiers),
23
+ instruction: getInstruction(identifiers),
19
24
  keys: ["i", "z", "overline", "quote"],
20
25
  answerFormat: "tex",
21
26
  startStatement: "\\overline{\\frac{z}{z'}}",
22
- identifiers: {
23
- z1: [z1.re, z1.im],
24
- z2: [z2.re, z2.im],
25
- },
27
+ identifiers,
26
28
  };
27
29
  return question;
28
30
  };
31
+ const getConjugateDivideComplexQuestion = () => {
32
+ const z1 = ComplexConstructor.random();
33
+ let z2;
34
+ do {
35
+ z2 = ComplexConstructor.random();
36
+ } while (z1.im === 0 && z2.im === 0);
37
+ const identifiers = {
38
+ z1: [z1.re, z1.im],
39
+ z2: [z2.re, z2.im],
40
+ };
41
+ return getQuestionFromIdentifiers(identifiers);
42
+ };
29
43
  const getPropositions = (n, { answer }) => {
30
44
  const propositions = [];
31
45
  addValidProp(propositions, answer);
@@ -46,13 +60,12 @@ export const conjugateDivideComplex = {
46
60
  id: "conjugateDivideComplex",
47
61
  connector: "=",
48
62
  label: "Conjugué d'une fraction de nombres complexes",
49
- levels: ["MathExp"],
50
63
  isSingleStep: true,
51
- sections: ["Nombres complexes"],
52
64
  generator: (nb) => getDistinctQuestions(getConjugateDivideComplexQuestion, nb),
53
65
  qcmTimer: 60,
54
66
  freeTimer: 60,
55
67
  getPropositions,
56
68
  isAnswerValid,
57
69
  subject: "Mathématiques",
70
+ getQuestionFromIdentifiers,
58
71
  };
@@ -1 +1 @@
1
- {"version":3,"file":"conjugateMultiplyComplex.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/complex/conjugateMultiplyComplex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,6BAA6B,CAAC;AAIrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,EAAE,CAAC;IACb,EAAE,EAAE,MAAM,EAAE,CAAC;CACd,CAAC;AAsDF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAc1D,CAAC"}
1
+ {"version":3,"file":"conjugateMultiplyComplex.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/complex/conjugateMultiplyComplex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAIrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,EAAE,CAAC;IACb,EAAE,EAAE,MAAM,EAAE,CAAC;CACd,CAAC;AAuEF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAa1D,CAAC"}