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":"factoIdRmq1.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc9D,eAAO,MAAM,WAAW,EAAE,QASzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAUhD"}
1
+ {"version":3,"file":"factoIdRmq1.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc9D,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAWhD"}
@@ -17,6 +17,7 @@ exports.factoIdRmq1 = {
17
17
  levels: ['3', '2'],
18
18
  section: 'Calcul littéral',
19
19
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFactoType1Question, nb),
20
+ keys: ['x'],
20
21
  };
21
22
  function getFactoType1Question() {
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 getFactoType1Question() {
26
27
  const question = {
27
28
  startStatement: statementTree.toTex(),
28
29
  answer: answerTree.toTex(),
30
+ keys: ['x'],
29
31
  };
30
32
  return question;
31
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"factoIdRmq2.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc9D,eAAO,MAAM,WAAW,EAAE,QASzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAYhD"}
1
+ {"version":3,"file":"factoIdRmq2.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc9D,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAahD"}
@@ -17,6 +17,7 @@ exports.factoIdRmq2 = {
17
17
  levels: ['3', '2'],
18
18
  section: 'Calcul littéral',
19
19
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFactoType1Question, nb),
20
+ keys: ['x'],
20
21
  };
21
22
  function getFactoType1Question() {
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 getFactoType1Question() {
27
28
  const question = {
28
29
  startStatement: statementTree.toTex(),
29
30
  answer: answerTree.toTex(),
31
+ keys: ['x'],
30
32
  };
31
33
  return question;
32
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"factoIdRmq3.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc9D,eAAO,MAAM,WAAW,EAAE,QASzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAYhD"}
1
+ {"version":3,"file":"factoIdRmq3.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc9D,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAahD"}
@@ -16,6 +16,7 @@ exports.factoIdRmq3 = {
16
16
  levels: ['3', '2'],
17
17
  section: 'Calcul littéral',
18
18
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFactoType1Question, nb),
19
+ keys: ['x'],
19
20
  };
20
21
  function getFactoType1Question() {
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 getFactoType1Question() {
26
27
  const question = {
27
28
  startStatement: statementTree.toTex(),
28
29
  answer: answerTree.toTex(),
30
+ keys: ['x'],
29
31
  };
30
32
  return question;
31
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"factoType1Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoType1Exercise.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CA4BhD"}
1
+ {"version":3,"file":"factoType1Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoType1Exercise.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CA6BhD"}
@@ -20,6 +20,7 @@ exports.factoType1Exercise = {
20
20
  levels: ['3', '2'],
21
21
  section: 'Calcul littéral',
22
22
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFactoType1Question, nb),
23
+ keys: ['x'],
23
24
  };
24
25
  function getFactoType1Question() {
25
26
  const affines = affine_1.AffineConstructor.differentRandoms(3);
@@ -32,6 +33,7 @@ function getFactoType1Question() {
32
33
  const question = {
33
34
  startStatement: statementTree.toTex(),
34
35
  answer: answerTree.toTex(),
36
+ keys: ['x'],
35
37
  };
36
38
  return question;
37
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"thirdDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/thirdDegreeDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,qBAAqB,EAAE,QASnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAgBnD"}
1
+ {"version":3,"file":"thirdDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/thirdDegreeDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAiBnD"}
@@ -13,6 +13,7 @@ exports.thirdDegreeDerivative = {
13
13
  section: 'Dérivation',
14
14
  isSingleStep: false,
15
15
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getThirdDegreeDerivative, nb),
16
+ keys: ['x'],
16
17
  };
17
18
  function getThirdDegreeDerivative() {
18
19
  const coefficients = [];
@@ -23,8 +24,9 @@ function getThirdDegreeDerivative() {
23
24
  const derivative = polynomial.derivate();
24
25
  const question = {
25
26
  instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) = ${polynomial.toString()}$ `,
26
- startStatement: `f'(x) = `,
27
+ startStatement: `f'(x)`,
27
28
  answer: derivative.toString(),
29
+ keys: ['x'],
28
30
  };
29
31
  return question;
30
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"usualderivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/usualderivative.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGpD,eAAO,MAAM,eAAe,EAAE,QAS7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CAgD7C"}
1
+ {"version":3,"file":"usualderivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/usualderivative.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGpD,eAAO,MAAM,eAAe,EAAE,QAU7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CAsD7C"}
@@ -14,6 +14,7 @@ exports.usualDerivative = {
14
14
  section: 'Dérivation',
15
15
  isSingleStep: false,
16
16
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getUsualDerivative, nb),
17
+ keys: ['x'],
17
18
  };
18
19
  function getUsualDerivative() {
19
20
  const a = (0, randint_1.randint)(-10, 10, [0]);
@@ -24,26 +25,31 @@ function getUsualDerivative() {
24
25
  let answer = '';
25
26
  switch (flip) {
26
27
  case 1: {
28
+ // f(x) = c
27
29
  instruction += `$${c}$`;
28
30
  answer = `0`;
29
31
  break;
30
32
  }
31
33
  case 2: {
32
- instruction += `$${new polynomial_1.Polynomial([a, b]).toString()}$`;
34
+ // f(x) = ax + b
35
+ instruction += `$${new polynomial_1.Polynomial([b, a]).toString()}$`;
33
36
  answer = `${a}`;
34
37
  break;
35
38
  }
36
39
  case 3: {
37
- instruction += `$${new polynomial_1.Polynomial([a, b, c]).toString()}$`;
38
- answer = `${new polynomial_1.Polynomial([2 * a, b]).toString()}`;
40
+ // f(x) = ax² + bx + c
41
+ instruction += `$${new polynomial_1.Polynomial([c, b, a]).toString()}$`;
42
+ answer = `${new polynomial_1.Polynomial([b, 2 * a]).toString()}`;
39
43
  break;
40
44
  }
41
45
  case 4: {
46
+ //f(x) = a/x
42
47
  instruction += `$\\frac{${a}}{x}$`;
43
48
  answer = `\\frac{${-a}}{x^2}`;
44
49
  break;
45
50
  }
46
51
  case 5: {
52
+ // f(x) = a * sqrt(x)
47
53
  if (a === 1)
48
54
  instruction += `$\\sqrt{x}$`;
49
55
  else if (a === -1)
@@ -59,8 +65,9 @@ function getUsualDerivative() {
59
65
  }
60
66
  const question = {
61
67
  instruction,
62
- startStatement: `f'(x) = `,
68
+ startStatement: `f'(x)`,
63
69
  answer,
70
+ keys: ['x'],
64
71
  };
65
72
  return question;
66
73
  }
@@ -3,6 +3,7 @@ export interface Question {
3
3
  instruction?: string;
4
4
  startStatement?: string;
5
5
  answer: string;
6
+ keys?: string[];
6
7
  }
7
8
  export interface Exercise {
8
9
  id: string;
@@ -12,6 +13,7 @@ export interface Exercise {
12
13
  section: string;
13
14
  levels: string[];
14
15
  connector: '=' | '\\iff' | '\\approx';
16
+ keys?: string[];
15
17
  generator(nb: number, options?: GeneratorOptions): Question[];
16
18
  }
17
19
  //# sourceMappingURL=exercise.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,GAAG,GAAG,OAAO,GAAG,UAAU,CAAC;IACtC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,QAAQ,EAAE,CAAC;CAC/D"}
1
+ {"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,GAAG,GAAG,OAAO,GAAG,UAAU,CAAC;IACtC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,QAAQ,EAAE,CAAC;CAC/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"exercises.d.ts","sourceRoot":"","sources":["../../src/exercises/exercises.ts"],"names":[],"mappings":"AAkEA,eAAO,MAAM,SAAS,iCA6GrB,CAAC"}
1
+ {"version":3,"file":"exercises.d.ts","sourceRoot":"","sources":["../../src/exercises/exercises.ts"],"names":[],"mappings":"AAoEA,eAAO,MAAM,SAAS,iCA+GrB,CAAC"}
@@ -153,4 +153,6 @@ exports.exercises = [
153
153
  // leadingCoefficient,
154
154
  // derivativeNumberReading,
155
155
  //derivativeNumberReading2,
156
+ // probabilityTree,
157
+ // marginalAndConditionalFrequency,
156
158
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"midpoint.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/cartesian/midpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM9D,eAAO,MAAM,QAAQ,EAAE,QAStB,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAU9C"}
1
+ {"version":3,"file":"midpoint.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/cartesian/midpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM9D,eAAO,MAAM,QAAQ,EAAE,QAUtB,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAW9C"}
@@ -14,6 +14,7 @@ exports.midpoint = {
14
14
  isSingleStep: false,
15
15
  section: 'Géométrie cartésienne',
16
16
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getMidpointQuestion, nb),
17
+ keys: ['semicolon'],
17
18
  };
18
19
  function getMidpointQuestion() {
19
20
  const [coords1, coords2] = (0, randTupleInt_1.distinctRandTupleInt)(2, 2, { from: -9, to: 10 });
@@ -23,6 +24,7 @@ function getMidpointQuestion() {
23
24
  instruction: `Soit $${A.toTexWithCoords()}$ et $${B.toTexWithCoords()}$. Quelles sont les coordonnées du milieu $I$ de $[AB]$ ?`,
24
25
  startStatement: 'I',
25
26
  answer: A.midpoint(B).toTexWithCoords(),
27
+ keys: ['semicolon'],
26
28
  };
27
29
  return question;
28
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"scalarProductViaCoords.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/vectors/scalarProductViaCoords.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM9D,eAAO,MAAM,sBAAsB,EAAE,QASpC,CAAC;AAEF,wBAAgB,iCAAiC,IAAI,QAAQ,CAU5D"}
1
+ {"version":3,"file":"scalarProductViaCoords.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/vectors/scalarProductViaCoords.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM9D,eAAO,MAAM,sBAAsB,EAAE,QAUpC,CAAC;AAEF,wBAAgB,iCAAiC,IAAI,QAAQ,CAW5D"}
@@ -14,6 +14,7 @@ exports.scalarProductViaCoords = {
14
14
  levels: ['1, 0'],
15
15
  section: 'Vecteurs',
16
16
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getScalarProductViaCoordsQuestion, nb),
17
+ keys: [],
17
18
  };
18
19
  function getScalarProductViaCoordsQuestion() {
19
20
  const [coords1, coords2] = (0, randTupleInt_1.distinctRandTupleInt)(2, 2, { from: -9, to: 10 });
@@ -23,6 +24,7 @@ function getScalarProductViaCoordsQuestion() {
23
24
  instruction: `Soit $${u.toTexWithCoords()}$ et $${v.toTexWithCoords()}$. Calculer $${u.toTex()}\\cdot ${v.toTex()}$.`,
24
25
  startStatement: `${u.toTex()}\\cdot ${v.toTex()}`,
25
26
  answer: u.scalarProduct(v).toTex(),
27
+ keys: [],
26
28
  };
27
29
  }
28
30
  exports.getScalarProductViaCoordsQuestion = getScalarProductViaCoordsQuestion;
@@ -1,4 +1,4 @@
1
- import { Exercise, Question } from "../exercise";
1
+ import { Exercise, Question } from '../exercise';
2
2
  export declare const applyPercent: Exercise;
3
3
  export declare function getApplyPercentQuestion(): Question;
4
4
  //# sourceMappingURL=applyPercent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"applyPercent.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/applyPercent.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,YAAY,EAAE,QAS1B,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CA0BlD"}
1
+ {"version":3,"file":"applyPercent.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/applyPercent.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,YAAY,EAAE,QAW1B,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAuBlD"}
@@ -8,21 +8,20 @@ const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
8
8
  exports.applyPercent = {
9
9
  id: 'applyPercent',
10
10
  connector: '=',
11
- instruction: "",
11
+ instruction: '',
12
12
  label: "Appliquer un pourcentage d'augmentation ou de diminution.",
13
13
  levels: ['4', '3', '2'],
14
14
  section: 'Pourcentages',
15
15
  isSingleStep: false,
16
16
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getApplyPercentQuestion, nb),
17
+ keys: ['percent'],
17
18
  };
18
19
  function getApplyPercentQuestion() {
19
20
  const randNbr = (0, randint_1.randint)(1, 500);
20
21
  const randPercent = (0, randint_1.randint)(1, 100);
21
- const flip = (0, coinFlip_1.coinFlip)();
22
- let instruction = "";
23
- let answer = "";
22
+ let instruction = '';
24
23
  let ans = 0;
25
- if (flip) {
24
+ if ((0, coinFlip_1.coinFlip)()) {
26
25
  ans = randNbr * (1 + randPercent / 100);
27
26
  ans = (0, round_1.round)(ans, 2);
28
27
  instruction = `Appliquer une augmentation de $${randPercent}\\%$ à $${randNbr}$ :`;
@@ -35,6 +34,7 @@ function getApplyPercentQuestion() {
35
34
  const question = {
36
35
  instruction,
37
36
  answer: ans.toString(),
37
+ keys: ['percent'],
38
38
  };
39
39
  return question;
40
40
  }
@@ -1,4 +1,4 @@
1
- import { Exercise, Question } from "../exercise";
1
+ import { Exercise, Question } from '../exercise';
2
2
  export declare const averageEvolutionRate: Exercise;
3
3
  export declare function getAverageEvolutionRate(): Question;
4
4
  //# sourceMappingURL=averageEvolutionRate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"averageEvolutionRate.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/averageEvolutionRate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAelD"}
1
+ {"version":3,"file":"averageEvolutionRate.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/averageEvolutionRate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAclD"}
@@ -7,12 +7,13 @@ const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
7
7
  exports.averageEvolutionRate = {
8
8
  id: 'averageEvolutionRate',
9
9
  connector: '=',
10
- instruction: "",
10
+ instruction: '',
11
11
  label: "Calculer un taux d'évolution moyen",
12
12
  levels: ['4', '3', '2'],
13
13
  section: 'Pourcentages',
14
14
  isSingleStep: false,
15
15
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getAverageEvolutionRate, nb),
16
+ keys: ['percent'],
16
17
  };
17
18
  function getAverageEvolutionRate() {
18
19
  const rate = (0, randint_1.randint)(1, 100);
@@ -22,6 +23,7 @@ function getAverageEvolutionRate() {
22
23
  const question = {
23
24
  instruction,
24
25
  answer,
26
+ keys: ['percent'],
25
27
  };
26
28
  return question;
27
29
  }
@@ -1,4 +1,4 @@
1
- import { Exercise, Question } from "../exercise";
1
+ import { Exercise, Question } from '../exercise';
2
2
  export declare const globalPercent: Exercise;
3
3
  export declare function getGlobalPercentQuestion(): Question;
4
4
  //# sourceMappingURL=globalPercent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"globalPercent.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/globalPercent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,aAAa,EAAE,QAS3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAmCnD"}
1
+ {"version":3,"file":"globalPercent.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/globalPercent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,aAAa,EAAE,QAW3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CA6BnD"}
@@ -7,15 +7,16 @@ const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
7
7
  exports.globalPercent = {
8
8
  id: 'globalPercent',
9
9
  connector: '=',
10
- instruction: "",
10
+ instruction: '',
11
11
  label: "Calculer un taux d'évolution global à partir de taux d'évolution successifs",
12
12
  levels: ['4', '3', '2'],
13
13
  section: 'Pourcentages',
14
14
  isSingleStep: false,
15
15
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getGlobalPercentQuestion, nb),
16
+ keys: ['percent'],
16
17
  };
17
18
  function getGlobalPercentQuestion() {
18
- const tab = ["hausse", "baisse"];
19
+ const tab = ['hausse', 'baisse'];
19
20
  let ans = 1;
20
21
  let instruction = "Le prix d'un article subit une ";
21
22
  const indice = (0, randint_1.randint)(2, 4);
@@ -33,11 +34,10 @@ function getGlobalPercentQuestion() {
33
34
  ans = (0, mathjs_1.round)((ans - 1) * 100, 2);
34
35
  instruction += ". \nDéterminer le taux d'évolution global du prix de cet article.";
35
36
  const answer = `${ans} \\%`;
36
- //const startStatement = "Le prix de l'article a subi une hausse globale de";
37
37
  const question = {
38
38
  instruction,
39
- //startStatement,
40
39
  answer,
40
+ keys: ['percent'],
41
41
  };
42
42
  return question;
43
43
  }
@@ -1,4 +1,4 @@
1
- import { Exercise, Question } from "../exercise";
1
+ import { Exercise, Question } from '../exercise';
2
2
  export declare const reciprocalPercentage: Exercise;
3
3
  export declare function getReciprocalPercentageQuestion(): Question;
4
4
  //# sourceMappingURL=reciprocalPercentage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reciprocalPercentage.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/reciprocalPercentage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAsB1D"}
1
+ {"version":3,"file":"reciprocalPercentage.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/reciprocalPercentage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAgB1D"}
@@ -7,28 +7,25 @@ const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
7
7
  exports.reciprocalPercentage = {
8
8
  id: 'reciprocalPercentage',
9
9
  connector: '=',
10
- instruction: "",
10
+ instruction: '',
11
11
  label: "Calculer un taux d'évolution réciproque",
12
12
  levels: ['4', '3', '2'],
13
13
  section: 'Pourcentages',
14
14
  isSingleStep: false,
15
15
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getReciprocalPercentageQuestion, nb),
16
+ keys: ['percent'],
16
17
  };
17
18
  function getReciprocalPercentageQuestion() {
18
19
  const randPercent = (0, randint_1.randint)(1, 50);
19
- const tab = ["hausse", "baisse"];
20
+ const tab = ['hausse', 'baisse'];
20
21
  let ans = 0;
21
22
  let a = (0, randint_1.randint)(0, 2);
22
23
  let instruction = `Le prix d'un article subit une ${tab[a]} de $${randPercent}\\%$. Quelle évolution devra-t-il subir pour revenir à son prix initial ?`;
23
- if (a == 1)
24
- ans = (1 - 1 / (1 + randPercent / 100)) * 100;
25
- else
26
- ans = (1 - 1 / (1 - randPercent / 100)) * 100;
27
- ans = (0, mathjs_1.round)(ans, 2);
28
- const answer = `${ans} \\%`;
24
+ ans = a == 0 ? (1 / (1 + randPercent / 100) - 1) * 100 : (1 / (1 - randPercent / 100) - 1) * 100;
29
25
  const question = {
30
26
  instruction,
31
- answer,
27
+ answer: `${(0, mathjs_1.round)(ans, 2)} \\%`,
28
+ keys: ['percent'],
32
29
  };
33
30
  return question;
34
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"powersDivision.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersDivision.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,cAAc,EAAE,QAS5B,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,QASjC,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAevF"}
1
+ {"version":3,"file":"powersDivision.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersDivision.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,cAAc,EAAE,QAS5B,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,QAUjC,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAgBvF"}
@@ -29,6 +29,7 @@ exports.powersOfTenDivision = {
29
29
  section: 'Puissances',
30
30
  isSingleStep: true,
31
31
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(() => getPowersDivisionQuestion(true), nb),
32
+ keys: [],
32
33
  };
33
34
  function getPowersDivisionQuestion(useOnlyPowersOfTen = false) {
34
35
  const a = useOnlyPowersOfTen ? 10 : (0, randint_1.randint)(-11, 11, [0]);
@@ -38,6 +39,7 @@ function getPowersDivisionQuestion(useOnlyPowersOfTen = false) {
38
39
  const question = {
39
40
  startStatement: statement.toTex(),
40
41
  answer: answerTree.toTex(),
42
+ keys: [],
41
43
  };
42
44
  return question;
43
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"powersOfTenToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersOfTenToDecimal.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CAWzD"}
1
+ {"version":3,"file":"powersOfTenToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersOfTenToDecimal.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CAYzD"}
@@ -18,6 +18,7 @@ exports.powersOfTenToDecimal = {
18
18
  section: 'Puissances',
19
19
  isSingleStep: true,
20
20
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getPowersOfTenDivisionQuestion, nb),
21
+ keys: [],
21
22
  };
22
23
  function getPowersOfTenDivisionQuestion() {
23
24
  const randPower = (0, randint_1.randint)(-6, 8);
@@ -26,6 +27,7 @@ function getPowersOfTenDivisionQuestion() {
26
27
  const question = {
27
28
  startStatement: statement.toTex(),
28
29
  answer: answerTree.toTex(),
30
+ keys: [],
29
31
  };
30
32
  return question;
31
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"powersPower.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersPower.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,gBAAgB,EAAE,QAS9B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QASzB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAYpF"}
1
+ {"version":3,"file":"powersPower.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersPower.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,gBAAgB,EAAE,QAS9B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAapF"}
@@ -28,6 +28,7 @@ exports.powersPower = {
28
28
  section: 'Puissances',
29
29
  isSingleStep: true,
30
30
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getPowersPowerQuestion, nb),
31
+ keys: [],
31
32
  };
32
33
  function getPowersPowerQuestion(useOnlyPowersOfTen = false) {
33
34
  const a = useOnlyPowersOfTen ? 10 : (0, randint_1.randint)(-11, 11);
@@ -37,6 +38,7 @@ function getPowersPowerQuestion(useOnlyPowersOfTen = false) {
37
38
  const question = {
38
39
  startStatement: statement.toTex(),
39
40
  answer: answerTree.toTex(),
41
+ keys: [],
40
42
  };
41
43
  return question;
42
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"powersProduct.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersProduct.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAS3B,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAetF"}
1
+ {"version":3,"file":"powersProduct.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersProduct.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAU3B,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAgBtF"}
@@ -29,6 +29,7 @@ exports.powersProduct = {
29
29
  section: 'Puissances',
30
30
  isSingleStep: true,
31
31
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getPowersProductQuestion, nb),
32
+ keys: [],
32
33
  };
33
34
  function getPowersProductQuestion(useOnlyPowersOfTen = false) {
34
35
  const a = useOnlyPowersOfTen ? 10 : (0, randint_1.randint)(-11, 11);
@@ -38,6 +39,7 @@ function getPowersProductQuestion(useOnlyPowersOfTen = false) {
38
39
  const question = {
39
40
  startStatement: statement.toTex(),
40
41
  answer: answerTree.toTex(),
42
+ keys: [],
41
43
  };
42
44
  return question;
43
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"scientificToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/scientificToDecimal.ts"],"names":[],"mappings":"AAAA;;MAEM;AAQN,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,mBAAmB,EAAE,QASjC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CAgBzD"}
1
+ {"version":3,"file":"scientificToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/scientificToDecimal.ts"],"names":[],"mappings":"AAAA;;MAEM;AAQN,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,mBAAmB,EAAE,QAWjC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CAiBzD"}
@@ -19,6 +19,7 @@ exports.scientificToDecimal = {
19
19
  levels: ['5', '4', '3', '2'],
20
20
  section: 'Puissances',
21
21
  isSingleStep: true,
22
+ keys: [],
22
23
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getScientificToDecimalQuestion, nb),
23
24
  };
24
25
  function getScientificToDecimalQuestion() {
@@ -31,6 +32,7 @@ function getScientificToDecimalQuestion() {
31
32
  const question = {
32
33
  startStatement: statement.toTex(),
33
34
  answer: answerTree.toTex(),
35
+ keys: [],
34
36
  };
35
37
  return question;
36
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"conditionalProbability.d.ts","sourceRoot":"","sources":["../../../src/exercises/proba/conditionalProbability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIjD,eAAO,MAAM,sBAAsB,EAAE,QASpC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,CA2DpD"}
1
+ {"version":3,"file":"conditionalProbability.d.ts","sourceRoot":"","sources":["../../../src/exercises/proba/conditionalProbability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIjD,eAAO,MAAM,sBAAsB,EAAE,QAUpC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,CA4DpD"}
@@ -13,6 +13,7 @@ exports.conditionalProbability = {
13
13
  isSingleStep: false,
14
14
  section: 'Probabilités',
15
15
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getConditionalProbability, nb),
16
+ keys: ['p', 'cap', 'underscore'],
16
17
  };
17
18
  function getConditionalProbability() {
18
19
  const pA = (0, randint_1.randint)(2, 100);
@@ -66,6 +67,7 @@ function getConditionalProbability() {
66
67
  instruction,
67
68
  startStatement,
68
69
  answer,
70
+ keys: ['p', 'cap', 'underscore'],
69
71
  };
70
72
  return question;
71
73
  }
@@ -0,0 +1,4 @@
1
+ import { Exercise, Question } from '../exercise';
2
+ export declare const marginalAndConditionalFrequency: Exercise;
3
+ export declare function getMarginalAndConditionalFrequency(): Question;
4
+ //# sourceMappingURL=marginalAndConditionalFrequency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marginalAndConditionalFrequency.d.ts","sourceRoot":"","sources":["../../../src/exercises/proba/marginalAndConditionalFrequency.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,+BAA+B,EAAE,QAU7C,CAAC;AAEF,wBAAgB,kCAAkC,IAAI,QAAQ,CA4D7D"}