math-exercises 1.3.23 → 1.3.25

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 (134) hide show
  1. package/lib/exercises/calcul/addAndSub.d.ts.map +1 -1
  2. package/lib/exercises/calcul/addAndSub.js +2 -0
  3. package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts.map +1 -1
  4. package/lib/exercises/calcul/addAndSubWithoutRelatives.js +2 -0
  5. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
  6. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +2 -0
  7. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
  8. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +2 -0
  9. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts.map +1 -1
  10. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +2 -0
  11. package/lib/exercises/calcul/fractions/fractionsDivision.d.ts.map +1 -1
  12. package/lib/exercises/calcul/fractions/fractionsDivision.js +2 -0
  13. package/lib/exercises/calcul/fractions/fractionsProduct.d.ts.map +1 -1
  14. package/lib/exercises/calcul/fractions/fractionsProduct.js +2 -0
  15. package/lib/exercises/calcul/fractions/fractionsSum.d.ts.map +1 -1
  16. package/lib/exercises/calcul/fractions/fractionsSum.js +2 -0
  17. package/lib/exercises/calcul/fractions/simplifyFraction.d.ts.map +1 -1
  18. package/lib/exercises/calcul/fractions/simplifyFraction.js +2 -0
  19. package/lib/exercises/calcul/operations/operationsPriorities.d.ts.map +1 -1
  20. package/lib/exercises/calcul/operations/operationsPriorities.js +2 -0
  21. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
  22. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.js +2 -0
  23. package/lib/exercises/calcul/rounding/rounding.d.ts.map +1 -1
  24. package/lib/exercises/calcul/rounding/rounding.js +2 -0
  25. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
  26. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +2 -0
  27. package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
  28. package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +2 -0
  29. package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
  30. package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +2 -0
  31. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
  32. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +2 -0
  33. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
  34. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +2 -0
  35. package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
  36. package/lib/exercises/calculLitteral/equation/equationSimpleSquare.js +3 -2
  37. package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
  38. package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +2 -0
  39. package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
  40. package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +2 -0
  41. package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
  42. package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +2 -0
  43. package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
  44. package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +2 -0
  45. package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
  46. package/lib/exercises/calculLitteral/equation/firstDegreeEquation.js +10 -19
  47. package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.d.ts +1 -1
  48. package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.d.ts.map +1 -1
  49. package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.js +12 -21
  50. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
  51. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.js +2 -0
  52. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
  53. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.js +2 -0
  54. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
  55. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.js +2 -0
  56. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
  57. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +2 -0
  58. package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts.map +1 -1
  59. package/lib/exercises/derivation/derivative/thirdDegreeDerivative.js +3 -1
  60. package/lib/exercises/derivation/derivative/usualderivative.d.ts.map +1 -1
  61. package/lib/exercises/derivation/derivative/usualderivative.js +11 -4
  62. package/lib/exercises/exercise.d.ts +2 -0
  63. package/lib/exercises/exercise.d.ts.map +1 -1
  64. package/lib/exercises/exercises.d.ts.map +1 -1
  65. package/lib/exercises/exercises.js +2 -0
  66. package/lib/exercises/geometry/cartesian/midpoint.d.ts.map +1 -1
  67. package/lib/exercises/geometry/cartesian/midpoint.js +2 -0
  68. package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
  69. package/lib/exercises/geometry/vectors/scalarProductViaCoords.js +2 -0
  70. package/lib/exercises/percent/applyPercent.d.ts +1 -1
  71. package/lib/exercises/percent/applyPercent.d.ts.map +1 -1
  72. package/lib/exercises/percent/applyPercent.js +5 -5
  73. package/lib/exercises/percent/averageEvolutionRate.d.ts +1 -1
  74. package/lib/exercises/percent/averageEvolutionRate.d.ts.map +1 -1
  75. package/lib/exercises/percent/averageEvolutionRate.js +3 -1
  76. package/lib/exercises/percent/globalPercent.d.ts +1 -1
  77. package/lib/exercises/percent/globalPercent.d.ts.map +1 -1
  78. package/lib/exercises/percent/globalPercent.js +4 -4
  79. package/lib/exercises/percent/reciprocalPercentage.d.ts +1 -1
  80. package/lib/exercises/percent/reciprocalPercentage.d.ts.map +1 -1
  81. package/lib/exercises/percent/reciprocalPercentage.js +6 -9
  82. package/lib/exercises/powers/powersDivision.d.ts.map +1 -1
  83. package/lib/exercises/powers/powersDivision.js +2 -0
  84. package/lib/exercises/powers/powersOfTenToDecimal.d.ts.map +1 -1
  85. package/lib/exercises/powers/powersOfTenToDecimal.js +2 -0
  86. package/lib/exercises/powers/powersPower.d.ts.map +1 -1
  87. package/lib/exercises/powers/powersPower.js +2 -0
  88. package/lib/exercises/powers/powersProduct.d.ts.map +1 -1
  89. package/lib/exercises/powers/powersProduct.js +2 -0
  90. package/lib/exercises/powers/scientificToDecimal.d.ts.map +1 -1
  91. package/lib/exercises/powers/scientificToDecimal.js +2 -0
  92. package/lib/exercises/proba/conditionalProbability.d.ts.map +1 -1
  93. package/lib/exercises/proba/conditionalProbability.js +2 -0
  94. package/lib/exercises/proba/marginalAndConditionalFrequency.d.ts +4 -0
  95. package/lib/exercises/proba/marginalAndConditionalFrequency.d.ts.map +1 -0
  96. package/lib/exercises/proba/marginalAndConditionalFrequency.js +73 -0
  97. package/lib/exercises/proba/probabilityTree.d.ts +4 -0
  98. package/lib/exercises/proba/probabilityTree.d.ts.map +1 -0
  99. package/lib/exercises/proba/probabilityTree.js +66 -0
  100. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts.map +1 -1
  101. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +2 -0
  102. package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts.map +1 -1
  103. package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.js +2 -0
  104. package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -1
  105. package/lib/exercises/sequences/arithmetic/arithmeticFindReason.js +2 -0
  106. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts.map +1 -1
  107. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.js +2 -0
  108. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
  109. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +2 -0
  110. package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
  111. package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.js +2 -0
  112. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -1
  113. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +2 -0
  114. package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -1
  115. package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.js +2 -0
  116. package/lib/exercises/sequences/geometric/geometricFindReason.d.ts.map +1 -1
  117. package/lib/exercises/sequences/geometric/geometricFindReason.js +2 -0
  118. package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts.map +1 -1
  119. package/lib/exercises/sequences/geometric/geometricReasonUsage.js +2 -0
  120. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
  121. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.js +2 -0
  122. package/lib/exercises/squareRoots/simpifySquareRoot.d.ts.map +1 -1
  123. package/lib/exercises/squareRoots/simpifySquareRoot.js +2 -0
  124. package/lib/exercises/trigonometry/mainRemarkableValues.d.ts.map +1 -1
  125. package/lib/exercises/trigonometry/mainRemarkableValues.js +2 -0
  126. package/lib/exercises/trigonometry/remarkableValues.d.ts.map +1 -1
  127. package/lib/exercises/trigonometry/remarkableValues.js +2 -0
  128. package/package.json +2 -2
  129. package/lib/exercises/derivation/derivative/affineDerivative.d.ts +0 -4
  130. package/lib/exercises/derivation/derivative/affineDerivative.d.ts.map +0 -1
  131. package/lib/exercises/derivation/derivative/affineDerivative.js +0 -27
  132. package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts +0 -1
  133. package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts.map +0 -1
  134. package/lib/exercises/derivation/derivative/secondDegreeDerivative.js +0 -28
@@ -1 +1 @@
1
- {"version":3,"file":"addAndSub.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSub.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAS/B,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAiBhD"}
1
+ {"version":3,"file":"addAndSub.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSub.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAU/B,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAkBhD"}
@@ -17,6 +17,7 @@ exports.addAndSubExercise = {
17
17
  section: 'Calculs',
18
18
  isSingleStep: true,
19
19
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getAddAndSubQuestions, nb),
20
+ keys: [],
20
21
  };
21
22
  function getAddAndSubQuestions() {
22
23
  const nbOperations = (0, randint_1.randint)(2, 4);
@@ -33,6 +34,7 @@ function getAddAndSubQuestions() {
33
34
  const question = {
34
35
  startStatement: statementTree.toTex(),
35
36
  answer: answer,
37
+ keys: [],
36
38
  };
37
39
  return question;
38
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"addAndSubWithoutRelatives.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSubWithoutRelatives.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,QASvC,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,QAAQ,CAgCvD"}
1
+ {"version":3,"file":"addAndSubWithoutRelatives.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSubWithoutRelatives.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,QAUvC,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,QAAQ,CAiCvD"}
@@ -17,6 +17,7 @@ exports.addAndSubWithoutRelatives = {
17
17
  section: 'Calculs',
18
18
  isSingleStep: true,
19
19
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getAddAndSubWithoutRelatives, nb),
20
+ keys: [],
20
21
  };
21
22
  function getAddAndSubWithoutRelatives() {
22
23
  let answer = -1;
@@ -43,6 +44,7 @@ function getAddAndSubWithoutRelatives() {
43
44
  const question = {
44
45
  startStatement: statementTree.toTex(),
45
46
  answer: answer.toString(),
47
+ keys: [],
46
48
  };
47
49
  return question;
48
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fractionAndIntegerDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,eAAO,MAAM,0BAA0B,EAAE,QASxC,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,CAgBxD"}
1
+ {"version":3,"file":"fractionAndIntegerDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,eAAO,MAAM,0BAA0B,EAAE,QAUxC,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,CAiBxD"}
@@ -16,6 +16,7 @@ exports.fractionAndIntegerDivision = {
16
16
  isSingleStep: false,
17
17
  section: 'Fractions',
18
18
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFractionAndIntegerDivision, nb),
19
+ keys: [],
19
20
  };
20
21
  function getFractionAndIntegerDivision() {
21
22
  const rational = rational_1.RationalConstructor.randomIrreductible();
@@ -29,6 +30,7 @@ function getFractionAndIntegerDivision() {
29
30
  instruction: '',
30
31
  startStatement: statementTree.toTex(),
31
32
  answer: answerTree.toTex(),
33
+ keys: [],
32
34
  };
33
35
  return question;
34
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fractionAndIntegerProduct.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO9D,eAAO,MAAM,yBAAyB,EAAE,QASvC,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,QAAQ,CAavD"}
1
+ {"version":3,"file":"fractionAndIntegerProduct.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO9D,eAAO,MAAM,yBAAyB,EAAE,QAUvC,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,QAAQ,CAcvD"}
@@ -15,6 +15,7 @@ exports.fractionAndIntegerProduct = {
15
15
  isSingleStep: false,
16
16
  section: 'Fractions',
17
17
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFractionAndIntegerProduct, nb),
18
+ keys: [],
18
19
  };
19
20
  function getFractionAndIntegerProduct() {
20
21
  const rational = rational_1.RationalConstructor.randomIrreductible();
@@ -26,6 +27,7 @@ function getFractionAndIntegerProduct() {
26
27
  instruction: '',
27
28
  startStatement: statementTree.toTex(),
28
29
  answer: answerTree.toTex(),
30
+ keys: [],
29
31
  };
30
32
  return question;
31
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fractionAndIntegerSum.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerSum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO9D,eAAO,MAAM,qBAAqB,EAAE,QASnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAYnD"}
1
+ {"version":3,"file":"fractionAndIntegerSum.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerSum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO9D,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAanD"}
@@ -15,6 +15,7 @@ exports.fractionAndIntegerSum = {
15
15
  isSingleStep: false,
16
16
  section: 'Fractions',
17
17
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFractionAndIntegerSum, nb),
18
+ keys: [],
18
19
  };
19
20
  function getFractionAndIntegerSum() {
20
21
  const rational = rational_1.RationalConstructor.randomIrreductible();
@@ -26,6 +27,7 @@ function getFractionAndIntegerSum() {
26
27
  instruction: '',
27
28
  startStatement: statementTree.toTex(),
28
29
  answer: answerTree.toTex(),
30
+ keys: [],
29
31
  };
30
32
  return question;
31
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fractionsDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,iBAAiB,EAAE,QAS/B,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,QAAQ,CAW/C"}
1
+ {"version":3,"file":"fractionsDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,iBAAiB,EAAE,QAU/B,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,QAAQ,CAY/C"}
@@ -13,6 +13,7 @@ exports.fractionsDivision = {
13
13
  section: 'Fractions',
14
14
  isSingleStep: false,
15
15
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFractionsDivision, nb),
16
+ keys: [],
16
17
  };
17
18
  function getFractionsDivision() {
18
19
  const rational = rational_1.RationalConstructor.randomIrreductible();
@@ -23,6 +24,7 @@ function getFractionsDivision() {
23
24
  instruction: '',
24
25
  startStatement: statementTree.toTex(),
25
26
  answer: answerTree.toTex(),
27
+ keys: [],
26
28
  };
27
29
  return question;
28
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fractionsProduct.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,gBAAgB,EAAE,QAS9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAU9C"}
1
+ {"version":3,"file":"fractionsProduct.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAW9C"}
@@ -13,6 +13,7 @@ exports.fractionsProduct = {
13
13
  section: 'Fractions',
14
14
  isSingleStep: false,
15
15
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFractionsProduct, nb),
16
+ keys: [],
16
17
  };
17
18
  function getFractionsProduct() {
18
19
  const rational = rational_1.RationalConstructor.randomIrreductible();
@@ -22,6 +23,7 @@ function getFractionsProduct() {
22
23
  const question = {
23
24
  startStatement: statementTree.toTex(),
24
25
  answer: answerTree.toTex(),
26
+ keys: [],
25
27
  };
26
28
  return question;
27
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fractionsSum.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsSum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,YAAY,EAAE,QAS1B,CAAC;AAEF,wBAAgB,eAAe,IAAI,QAAQ,CAU1C"}
1
+ {"version":3,"file":"fractionsSum.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsSum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,YAAY,EAAE,QAU1B,CAAC;AAEF,wBAAgB,eAAe,IAAI,QAAQ,CAW1C"}
@@ -13,6 +13,7 @@ exports.fractionsSum = {
13
13
  section: 'Fractions',
14
14
  isSingleStep: false,
15
15
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFractionsSum, nb),
16
+ keys: [],
16
17
  };
17
18
  function getFractionsSum() {
18
19
  const rational = rational_1.RationalConstructor.randomIrreductible();
@@ -22,6 +23,7 @@ function getFractionsSum() {
22
23
  const question = {
23
24
  startStatement: statementTree.toTex(),
24
25
  answer: answerTree.toTex(),
26
+ keys: [],
25
27
  };
26
28
  return question;
27
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"simplifyFraction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/simplifyFraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,gBAAgB,EAAE,QAS9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAO9C"}
1
+ {"version":3,"file":"simplifyFraction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/simplifyFraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAQ9C"}
@@ -12,12 +12,14 @@ exports.simplifyFraction = {
12
12
  isSingleStep: false,
13
13
  section: 'Fractions',
14
14
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getSimplifyFraction, nb),
15
+ keys: [],
15
16
  };
16
17
  function getSimplifyFraction() {
17
18
  const rational = rational_1.RationalConstructor.randomSimplifiable(10);
18
19
  const question = {
19
20
  startStatement: rational.toTree().toTex(),
20
21
  answer: rational.simplify().toTree().toTex(),
22
+ keys: [],
21
23
  };
22
24
  return question;
23
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"operationsPriorities.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/operations/operationsPriorities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,QAAQ,CA8F/C"}
1
+ {"version":3,"file":"operationsPriorities.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/operations/operationsPriorities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,QAAQ,CA+F/C"}
@@ -24,6 +24,7 @@ exports.operationsPriorities = {
24
24
  section: 'Calculs',
25
25
  isSingleStep: true,
26
26
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getPriorityQuestions, nb),
27
+ keys: [],
27
28
  };
28
29
  function getPriorityQuestions() {
29
30
  const type = (0, randint_1.randint)(1, 6);
@@ -92,6 +93,7 @@ function getPriorityQuestions() {
92
93
  const question = {
93
94
  startStatement,
94
95
  answer,
96
+ keys: [],
95
97
  };
96
98
  return question;
97
99
  }
@@ -1 +1 @@
1
- {"version":3,"file":"operationsPrioritiesWithoutRelative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/operations/operationsPrioritiesWithoutRelative.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,mCAAmC,EAAE,QASjD,CAAC;AAEF,wBAAgB,sCAAsC,IAAI,QAAQ,CAgOjE"}
1
+ {"version":3,"file":"operationsPrioritiesWithoutRelative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/operations/operationsPrioritiesWithoutRelative.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,mCAAmC,EAAE,QAUjD,CAAC;AAEF,wBAAgB,sCAAsC,IAAI,QAAQ,CAiOjE"}
@@ -24,6 +24,7 @@ exports.operationsPrioritiesWithoutRelative = {
24
24
  section: 'Calculs',
25
25
  isSingleStep: true,
26
26
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getOperationsPrioritiesWithoutRelative, nb),
27
+ keys: [],
27
28
  };
28
29
  function getOperationsPrioritiesWithoutRelative() {
29
30
  const type = (0, randint_1.randint)(1, 7);
@@ -173,6 +174,7 @@ function getOperationsPrioritiesWithoutRelative() {
173
174
  const question = {
174
175
  startStatement,
175
176
  answer,
177
+ keys: [],
176
178
  };
177
179
  return question;
178
180
  }
@@ -1 +1 @@
1
- {"version":3,"file":"rounding.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/rounding/rounding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,QASzB,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,QAS5B,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAS7B,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAS7B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAS1B,CAAC;AASF,wBAAgB,iBAAiB,CAAC,cAAc,GAAE,MAAU,GAAG,QAAQ,CAStE"}
1
+ {"version":3,"file":"rounding.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/rounding/rounding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,QAS5B,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAS7B,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAS7B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAS1B,CAAC;AASF,wBAAgB,iBAAiB,CAAC,cAAc,GAAE,MAAU,GAAG,QAAQ,CAUtE"}
@@ -16,6 +16,7 @@ exports.roundToUnit = {
16
16
  section: 'Calculs',
17
17
  isSingleStep: true,
18
18
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(() => getRoundQuestions(0), nb),
19
+ keys: [],
19
20
  };
20
21
  /**
21
22
  * arrondi à l'unité
@@ -79,6 +80,7 @@ function getRoundQuestions(precisionAsked = 0) {
79
80
  instruction: instructions[precisionAsked],
80
81
  startStatement: dec.toTree().toTex(),
81
82
  answer: dec.round(precisionAsked).toTree().toTex(),
83
+ keys: [],
82
84
  };
83
85
  return question;
84
86
  }
@@ -1 +1 @@
1
- {"version":3,"file":"doubleDistributivity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/doubleDistributivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAW1D"}
1
+ {"version":3,"file":"doubleDistributivity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/doubleDistributivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAY1D"}
@@ -16,6 +16,7 @@ exports.doubleDistributivity = {
16
16
  isSingleStep: false,
17
17
  section: 'Calcul littéral',
18
18
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getDoubleDistributivityQuestion, nb),
19
+ keys: ['x'],
19
20
  };
20
21
  function getDoubleDistributivityQuestion() {
21
22
  const interval = new intervals_1.Interval('[[-10; 10]]').difference(new discreteSet_1.DiscreteSet([new integer_1.Integer(0)]));
@@ -25,6 +26,7 @@ function getDoubleDistributivityQuestion() {
25
26
  return {
26
27
  startStatement: statementTree.toTex(),
27
28
  answer: answerTree.toTex(),
29
+ keys: ['x'],
28
30
  };
29
31
  }
30
32
  exports.getDoubleDistributivityQuestion = getDoubleDistributivityQuestion;
@@ -1 +1 @@
1
- {"version":3,"file":"firstIdentity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/firstIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,aAAa,EAAE,QAS3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAWnD"}
1
+ {"version":3,"file":"firstIdentity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/firstIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,aAAa,EAAE,QAU3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAYnD"}
@@ -17,6 +17,7 @@ exports.firstIdentity = {
17
17
  isSingleStep: false,
18
18
  section: 'Calcul littéral',
19
19
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFirstIdentityQuestion, nb),
20
+ keys: ['x'],
20
21
  };
21
22
  function getFirstIdentityQuestion() {
22
23
  const interval = new intervals_1.Interval('[[1; 10]]').difference(new discreteSet_1.DiscreteSet([new integer_1.Integer(0)]));
@@ -26,6 +27,7 @@ function getFirstIdentityQuestion() {
26
27
  return {
27
28
  startStatement: statementTree.toTex(),
28
29
  answer: answerTree.toTex(),
30
+ keys: ['x'],
29
31
  };
30
32
  }
31
33
  exports.getFirstIdentityQuestion = getFirstIdentityQuestion;
@@ -1 +1 @@
1
- {"version":3,"file":"secondIdentity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/secondIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,cAAc,EAAE,QAS5B,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,CAYpD"}
1
+ {"version":3,"file":"secondIdentity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/secondIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,cAAc,EAAE,QAU5B,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,CAapD"}
@@ -17,6 +17,7 @@ exports.secondIdentity = {
17
17
  isSingleStep: false,
18
18
  section: 'Calcul littéral',
19
19
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getSecondIdentityQuestion, nb),
20
+ keys: ['x'],
20
21
  };
21
22
  function getSecondIdentityQuestion() {
22
23
  const intervalA = new intervals_1.Interval('[[0; 10]]').difference(new discreteSet_1.DiscreteSet([new integer_1.Integer(0)]));
@@ -27,6 +28,7 @@ function getSecondIdentityQuestion() {
27
28
  return {
28
29
  startStatement: statementTree.toTex(),
29
30
  answer: answerTree.toTex(),
31
+ keys: ['x'],
30
32
  };
31
33
  }
32
34
  exports.getSecondIdentityQuestion = getSecondIdentityQuestion;
@@ -1 +1 @@
1
- {"version":3,"file":"simpleDistributivity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/simpleDistributivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAW1D"}
1
+ {"version":3,"file":"simpleDistributivity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/simpleDistributivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAY1D"}
@@ -17,6 +17,7 @@ exports.simpleDistributivity = {
17
17
  isSingleStep: false,
18
18
  section: 'Calcul littéral',
19
19
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getSimpleDistributivityQuestion, nb),
20
+ keys: ['x'],
20
21
  };
21
22
  function getSimpleDistributivityQuestion() {
22
23
  const interval = new intervals_1.Interval('[[-10; 10]]').difference(new discreteSet_1.DiscreteSet([new integer_1.Integer(0)]));
@@ -27,6 +28,7 @@ function getSimpleDistributivityQuestion() {
27
28
  return {
28
29
  startStatement: statementTree.toTex(),
29
30
  answer: answerTree.toTex(),
31
+ keys: ['x'],
30
32
  };
31
33
  }
32
34
  exports.getSimpleDistributivityQuestion = getSimpleDistributivityQuestion;
@@ -1 +1 @@
1
- {"version":3,"file":"thirdIdentity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/thirdIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,eAAO,MAAM,aAAa,EAAE,QAS3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAWnD"}
1
+ {"version":3,"file":"thirdIdentity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/thirdIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,eAAO,MAAM,aAAa,EAAE,QAU3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAYnD"}
@@ -16,6 +16,7 @@ exports.thirdIdentity = {
16
16
  isSingleStep: false,
17
17
  section: 'Calcul littéral',
18
18
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getThirdIdentityQuestion, nb),
19
+ keys: ['x'],
19
20
  };
20
21
  function getThirdIdentityQuestion() {
21
22
  const interval = new intervals_1.Interval('[[-10; 10]]').difference(new discreteSet_1.DiscreteSet([new integer_1.Integer(0)]));
@@ -26,6 +27,7 @@ function getThirdIdentityQuestion() {
26
27
  return {
27
28
  startStatement: statementTree.toTex(),
28
29
  answer: answerTree.toTex(),
30
+ keys: ['x'],
29
31
  };
30
32
  }
31
33
  exports.getThirdIdentityQuestion = getThirdIdentityQuestion;
@@ -1 +1 @@
1
- {"version":3,"file":"equationSimpleSquare.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationSimpleSquare.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAOF,wBAAgB,uBAAuB,IAAI,QAAQ,CA0BlD"}
1
+ {"version":3,"file":"equationSimpleSquare.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationSimpleSquare.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAOF,wBAAgB,uBAAuB,IAAI,QAAQ,CA0BlD"}
@@ -5,13 +5,14 @@ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQues
5
5
  const randint_1 = require("../../../math/utils/random/randint");
6
6
  exports.equationSimpleSquare = {
7
7
  id: 'equationSimpleSquare',
8
- connector: '\\iff',
8
+ connector: '=',
9
9
  instruction: '',
10
10
  label: 'Résoudre une équation du second degré du type x² = a',
11
11
  levels: ['2', '1'],
12
12
  section: 'Équations',
13
13
  isSingleStep: false,
14
14
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getEquationSimpleSquare, nb),
15
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
15
16
  };
16
17
  const higherFactor = (n) => {
17
18
  for (let i = Math.floor(Math.sqrt(n)); i > 0; i--)
@@ -38,8 +39,8 @@ function getEquationSimpleSquare() {
38
39
  answer = `\\emptyset`;
39
40
  const question = {
40
41
  instruction,
41
- startStatement: `S = `,
42
42
  answer,
43
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
43
44
  };
44
45
  return question;
45
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"equationType1Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType1Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ9D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,QASnC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAc3D"}
1
+ {"version":3,"file":"equationType1Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType1Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ9D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAe3D"}
@@ -19,6 +19,7 @@ exports.equationType1Exercise = {
19
19
  section: 'Équations',
20
20
  isSingleStep: true,
21
21
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getEquationType1ExerciseQuestion, nb),
22
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
22
23
  };
23
24
  function getEquationType1ExerciseQuestion() {
24
25
  const interval = new intervals_1.Interval('[[-10; 10]]');
@@ -31,6 +32,7 @@ function getEquationType1ExerciseQuestion() {
31
32
  const question = {
32
33
  startStatement: tree.toTex(),
33
34
  answer: `x = ${solution}`,
35
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
34
36
  };
35
37
  return question;
36
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"equationType2Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType2Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU9D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,QASnC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAc3D"}
1
+ {"version":3,"file":"equationType2Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType2Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU9D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAe3D"}
@@ -21,6 +21,7 @@ exports.equationType2Exercise = {
21
21
  section: 'Équations',
22
22
  isSingleStep: true,
23
23
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getEquationType2ExerciseQuestion, nb),
24
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
24
25
  };
25
26
  function getEquationType2ExerciseQuestion() {
26
27
  const interval = new intervals_1.Interval('[[-10; 10]]');
@@ -34,6 +35,7 @@ function getEquationType2ExerciseQuestion() {
34
35
  const question = {
35
36
  startStatement: tree.toTex(),
36
37
  answer: answer.toTex(),
38
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
37
39
  };
38
40
  return question;
39
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"equationType3Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType3Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU9D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAgB3D"}
1
+ {"version":3,"file":"equationType3Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType3Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU9D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAWnC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAiB3D"}
@@ -21,6 +21,7 @@ exports.equationType3Exercise = {
21
21
  section: 'Équations',
22
22
  isSingleStep: false,
23
23
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getEquationType3ExerciseQuestion, nb),
24
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
24
25
  };
25
26
  function getEquationType3ExerciseQuestion() {
26
27
  const interval = new intervals_1.Interval('[[-10; 10]]');
@@ -35,6 +36,7 @@ function getEquationType3ExerciseQuestion() {
35
36
  const question = {
36
37
  startStatement: statementTree.toTex(),
37
38
  answer: answerTree.toTex(),
39
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
38
40
  };
39
41
  return question;
40
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"equationType4Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType4Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU9D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAmB3D"}
1
+ {"version":3,"file":"equationType4Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType4Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU9D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAWnC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAoB3D"}
@@ -21,6 +21,7 @@ exports.equationType4Exercise = {
21
21
  section: 'Équations',
22
22
  isSingleStep: false,
23
23
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getEquationType4ExerciseQuestion, nb),
24
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
24
25
  };
25
26
  function getEquationType4ExerciseQuestion() {
26
27
  const interval = new intervals_1.Interval('[[-10; 10]]');
@@ -37,6 +38,7 @@ function getEquationType4ExerciseQuestion() {
37
38
  const question = {
38
39
  startStatement: statementTree.toTex(),
39
40
  answer: answerTree.toTex(),
41
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
40
42
  };
41
43
  return question;
42
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"firstDegreeEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/firstDegreeEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,mBAAmB,EAAE,QASjC,CAAC;AAOF,wBAAgB,sBAAsB,IAAI,QAAQ,CAiBjD"}
1
+ {"version":3,"file":"firstDegreeEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/firstDegreeEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO9D,eAAO,MAAM,mBAAmB,EAAE,QAUjC,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,QAAQ,CAYjD"}
@@ -3,36 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFirstDegreeEquation = exports.firstDegreeEquation = void 0;
4
4
  const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
5
  const randint_1 = require("../../../math/utils/random/randint");
6
- const round_1 = require("../../../math/utils/round");
6
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
7
+ const simplify_1 = require("../../../tree/parsers/simplify");
7
8
  exports.firstDegreeEquation = {
8
9
  id: 'firstDegreeEquation',
9
- connector: '\\iff',
10
+ connector: '=',
10
11
  instruction: '',
11
12
  label: 'Résoudre une équation du premier degré du type $\\frac{a}{x} = b$',
12
13
  levels: ['2', '1'],
13
14
  section: 'Équations',
14
15
  isSingleStep: false,
15
16
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFirstDegreeEquation, nb),
16
- };
17
- 2;
18
- const pgcd = (a, b) => {
19
- if (b === 0)
20
- return a;
21
- return pgcd(b, a % b);
17
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
22
18
  };
23
19
  function getFirstDegreeEquation() {
24
- let a = (0, randint_1.randint)(-30, 30, [0]);
25
- let b = (0, randint_1.randint)(-30, 30, [0]);
26
- const instruction = `Résoudre l'équation suivante $\\frac{${a}}{x} = ${b}$`;
27
- let answer;
28
- if (a / b === (0, round_1.round)(a / b, 0))
29
- answer = `${a / b}`;
30
- else
31
- answer = `\\frac{${a / pgcd(a, b)}}{${b / pgcd(a, b)}}`;
20
+ const a = (0, randint_1.randint)(-30, 30, [0]);
21
+ const b = (0, randint_1.randint)(-30, 30, [0]);
32
22
  const question = {
33
- instruction,
34
- startStatement: `x = `,
35
- answer,
23
+ instruction: `Résoudre l'équation suivante $\\frac{${a}}{x} = ${b}$`,
24
+ startStatement: `x`,
25
+ answer: (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(a / b)).toTex(),
26
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
36
27
  };
37
28
  return question;
38
29
  }
@@ -1,4 +1,4 @@
1
- import { Exercise, Question } from "../../../exercises/exercise";
1
+ import { Exercise, Question } from '../../../exercises/exercise';
2
2
  export declare const firstDegreeGeneralEquation: Exercise;
3
3
  export declare function getFirstDegreeGeneralEquation(): Question;
4
4
  //# sourceMappingURL=firstDegreeGeneralEquation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"firstDegreeGeneralEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/firstDegreeGeneralEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,0BAA0B,EAAE,QASxC,CAAC;AASF,wBAAgB,6BAA6B,IAAI,QAAQ,CAwBxD"}
1
+ {"version":3,"file":"firstDegreeGeneralEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/firstDegreeGeneralEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,eAAO,MAAM,0BAA0B,EAAE,QAUxC,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,CAaxD"}
@@ -2,39 +2,30 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFirstDegreeGeneralEquation = exports.firstDegreeGeneralEquation = void 0;
4
4
  const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
+ const polynomial_1 = require("../../../math/polynomials/polynomial");
5
6
  const randint_1 = require("../../../math/utils/random/randint");
6
- const round_1 = require("../../../math/utils/round");
7
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
8
+ const simplify_1 = require("../../../tree/parsers/simplify");
7
9
  exports.firstDegreeGeneralEquation = {
8
10
  id: 'firstDegreeGeneralEquation',
9
- connector: '\\iff',
11
+ connector: '=',
10
12
  instruction: '',
11
13
  label: 'Résoudre une équation du premier degré du type ax + b = cx',
12
14
  levels: ['2', '1'],
13
15
  section: 'Pourcentages',
14
16
  isSingleStep: false,
15
17
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFirstDegreeGeneralEquation, nb),
16
- };
17
- const pgcd = (a, b) => {
18
- if (b === 0)
19
- return a;
20
- return pgcd(b, a % b);
18
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
21
19
  };
22
20
  function getFirstDegreeGeneralEquation() {
23
- let a = (0, randint_1.randint)(-20, 20);
24
- const b = (0, randint_1.randint)(-20, 20);
25
- const c = (0, randint_1.randint)(-20, 20);
26
- while (a == 0 || a == 1)
27
- a = (0, randint_1.randint)(-12, 12);
28
- const instruction = `Résoudre l'équation suivante $${a}x + ${b} = ${c}$`;
29
- let answer;
30
- if ((c - b) / a == (0, round_1.round)((c - b) / a, 0))
31
- answer = `${(c - b) / a}`;
32
- else
33
- answer = `\\frac{${(c - b) / pgcd((c - b), a)}}{${a / pgcd((c - b), a)}}`;
21
+ let a = (0, randint_1.randint)(-9, 10, [0]);
22
+ const b = (0, randint_1.randint)(-9, 10);
23
+ const c = (0, randint_1.randint)(-9, 10, [a, 0]);
34
24
  const question = {
35
- instruction,
36
- startStatement: `x = `,
37
- answer,
25
+ instruction: `Résoudre l'équation suivante $${new polynomial_1.Polynomial([b, a])} = ${new polynomial_1.Polynomial([0, c])}$`,
26
+ startStatement: `x`,
27
+ answer: (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(-b / (a - c))).toTex(),
28
+ keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
38
29
  };
39
30
  return question;
40
31
  }