math-exercises 1.3.22 → 1.3.24

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 (125) hide show
  1. package/lib/exercises/calcul/addAndSub.d.ts.map +1 -1
  2. package/lib/exercises/calcul/addAndSub.js +1 -0
  3. package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts.map +1 -1
  4. package/lib/exercises/calcul/addAndSubWithoutRelatives.js +1 -0
  5. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
  6. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +1 -0
  7. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
  8. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +1 -0
  9. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts.map +1 -1
  10. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +1 -0
  11. package/lib/exercises/calcul/fractions/fractionsDivision.d.ts.map +1 -1
  12. package/lib/exercises/calcul/fractions/fractionsDivision.js +1 -0
  13. package/lib/exercises/calcul/fractions/fractionsProduct.d.ts.map +1 -1
  14. package/lib/exercises/calcul/fractions/fractionsProduct.js +1 -0
  15. package/lib/exercises/calcul/fractions/fractionsSum.d.ts.map +1 -1
  16. package/lib/exercises/calcul/fractions/fractionsSum.js +1 -0
  17. package/lib/exercises/calcul/fractions/simplifyFraction.d.ts.map +1 -1
  18. package/lib/exercises/calcul/fractions/simplifyFraction.js +1 -0
  19. package/lib/exercises/calcul/operations/operationsPriorities.d.ts.map +1 -1
  20. package/lib/exercises/calcul/operations/operationsPriorities.js +1 -0
  21. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
  22. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.js +1 -0
  23. package/lib/exercises/calcul/rounding/rounding.d.ts.map +1 -1
  24. package/lib/exercises/calcul/rounding/rounding.js +1 -0
  25. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
  26. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +1 -0
  27. package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
  28. package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +1 -0
  29. package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
  30. package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +1 -0
  31. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
  32. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +1 -0
  33. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
  34. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +1 -0
  35. package/lib/exercises/calculLitteral/equation/equationSimpleSquare.js +2 -2
  36. package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
  37. package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +1 -0
  38. package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
  39. package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +1 -0
  40. package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
  41. package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +1 -0
  42. package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
  43. package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +1 -0
  44. package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
  45. package/lib/exercises/calculLitteral/equation/firstDegreeEquation.js +9 -19
  46. package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.d.ts +1 -1
  47. package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.d.ts.map +1 -1
  48. package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.js +11 -21
  49. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
  50. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.js +1 -0
  51. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
  52. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.js +1 -0
  53. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
  54. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.js +1 -0
  55. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
  56. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +1 -0
  57. package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts.map +1 -1
  58. package/lib/exercises/derivation/derivative/thirdDegreeDerivative.js +2 -1
  59. package/lib/exercises/derivation/derivative/usualderivative.d.ts.map +1 -1
  60. package/lib/exercises/derivation/derivative/usualderivative.js +10 -4
  61. package/lib/exercises/exercise.d.ts +1 -0
  62. package/lib/exercises/exercise.d.ts.map +1 -1
  63. package/lib/exercises/exercises.d.ts.map +1 -1
  64. package/lib/exercises/exercises.js +2 -0
  65. package/lib/exercises/geometry/cartesian/midpoint.d.ts.map +1 -1
  66. package/lib/exercises/geometry/cartesian/midpoint.js +1 -0
  67. package/lib/exercises/percent/applyPercent.d.ts +1 -1
  68. package/lib/exercises/percent/applyPercent.d.ts.map +1 -1
  69. package/lib/exercises/percent/applyPercent.js +4 -5
  70. package/lib/exercises/percent/averageEvolutionRate.d.ts +1 -1
  71. package/lib/exercises/percent/averageEvolutionRate.d.ts.map +1 -1
  72. package/lib/exercises/percent/averageEvolutionRate.js +2 -1
  73. package/lib/exercises/percent/globalPercent.d.ts +1 -1
  74. package/lib/exercises/percent/globalPercent.d.ts.map +1 -1
  75. package/lib/exercises/percent/globalPercent.js +3 -4
  76. package/lib/exercises/percent/reciprocalPercentage.d.ts +1 -1
  77. package/lib/exercises/percent/reciprocalPercentage.d.ts.map +1 -1
  78. package/lib/exercises/percent/reciprocalPercentage.js +5 -9
  79. package/lib/exercises/powers/powersDivision.d.ts.map +1 -1
  80. package/lib/exercises/powers/powersDivision.js +1 -0
  81. package/lib/exercises/powers/powersOfTenToDecimal.d.ts.map +1 -1
  82. package/lib/exercises/powers/powersOfTenToDecimal.js +1 -0
  83. package/lib/exercises/powers/powersPower.d.ts.map +1 -1
  84. package/lib/exercises/powers/powersPower.js +1 -0
  85. package/lib/exercises/powers/powersProduct.d.ts.map +1 -1
  86. package/lib/exercises/powers/powersProduct.js +1 -0
  87. package/lib/exercises/powers/scientificToDecimal.d.ts.map +1 -1
  88. package/lib/exercises/powers/scientificToDecimal.js +1 -0
  89. package/lib/exercises/proba/conditionalProbability.d.ts.map +1 -1
  90. package/lib/exercises/proba/conditionalProbability.js +1 -0
  91. package/lib/exercises/proba/marginalAndConditionalFrequency.d.ts +4 -0
  92. package/lib/exercises/proba/marginalAndConditionalFrequency.d.ts.map +1 -0
  93. package/lib/exercises/proba/marginalAndConditionalFrequency.js +72 -0
  94. package/lib/exercises/proba/probabilityTree.d.ts +4 -0
  95. package/lib/exercises/proba/probabilityTree.d.ts.map +1 -0
  96. package/lib/exercises/proba/probabilityTree.js +66 -0
  97. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts.map +1 -1
  98. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +1 -0
  99. package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts.map +1 -1
  100. package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.js +1 -0
  101. package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -1
  102. package/lib/exercises/sequences/arithmetic/arithmeticFindReason.js +1 -0
  103. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts.map +1 -1
  104. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.js +1 -0
  105. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
  106. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +1 -0
  107. package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
  108. package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.js +1 -0
  109. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -1
  110. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +1 -0
  111. package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -1
  112. package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.js +1 -0
  113. package/lib/exercises/sequences/geometric/geometricFindReason.d.ts.map +1 -1
  114. package/lib/exercises/sequences/geometric/geometricFindReason.js +1 -0
  115. package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts.map +1 -1
  116. package/lib/exercises/sequences/geometric/geometricReasonUsage.js +1 -0
  117. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
  118. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.js +1 -0
  119. package/lib/exercises/squareRoots/simpifySquareRoot.d.ts.map +1 -1
  120. package/lib/exercises/squareRoots/simpifySquareRoot.js +1 -0
  121. package/lib/exercises/trigonometry/mainRemarkableValues.d.ts.map +1 -1
  122. package/lib/exercises/trigonometry/mainRemarkableValues.js +1 -0
  123. package/lib/exercises/trigonometry/remarkableValues.d.ts.map +1 -1
  124. package/lib/exercises/trigonometry/remarkableValues.js +1 -0
  125. package/package.json +2 -2
@@ -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,QAStB,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAW9C"}
@@ -23,6 +23,7 @@ function getMidpointQuestion() {
23
23
  instruction: `Soit $${A.toTexWithCoords()}$ et $${B.toTexWithCoords()}$. Quelles sont les coordonnées du milieu $I$ de $[AB]$ ?`,
24
24
  startStatement: 'I',
25
25
  answer: A.midpoint(B).toTexWithCoords(),
26
+ keys: ['semicolon'],
26
27
  };
27
28
  return question;
28
29
  }
@@ -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,QAS1B,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAuBlD"}
@@ -8,7 +8,7 @@ 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',
@@ -18,11 +18,9 @@ exports.applyPercent = {
18
18
  function getApplyPercentQuestion() {
19
19
  const randNbr = (0, randint_1.randint)(1, 500);
20
20
  const randPercent = (0, randint_1.randint)(1, 100);
21
- const flip = (0, coinFlip_1.coinFlip)();
22
- let instruction = "";
23
- let answer = "";
21
+ let instruction = '';
24
22
  let ans = 0;
25
- if (flip) {
23
+ if ((0, coinFlip_1.coinFlip)()) {
26
24
  ans = randNbr * (1 + randPercent / 100);
27
25
  ans = (0, round_1.round)(ans, 2);
28
26
  instruction = `Appliquer une augmentation de $${randPercent}\\%$ à $${randNbr}$ :`;
@@ -35,6 +33,7 @@ function getApplyPercentQuestion() {
35
33
  const question = {
36
34
  instruction,
37
35
  answer: ans.toString(),
36
+ keys: ['percent'],
38
37
  };
39
38
  return question;
40
39
  }
@@ -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,QASlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAclD"}
@@ -7,7 +7,7 @@ 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',
@@ -22,6 +22,7 @@ function getAverageEvolutionRate() {
22
22
  const question = {
23
23
  instruction,
24
24
  answer,
25
+ keys: ['percent'],
25
26
  };
26
27
  return question;
27
28
  }
@@ -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,QAS3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CA6BnD"}
@@ -7,7 +7,7 @@ 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',
@@ -15,7 +15,7 @@ exports.globalPercent = {
15
15
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getGlobalPercentQuestion, nb),
16
16
  };
17
17
  function getGlobalPercentQuestion() {
18
- const tab = ["hausse", "baisse"];
18
+ const tab = ['hausse', 'baisse'];
19
19
  let ans = 1;
20
20
  let instruction = "Le prix d'un article subit une ";
21
21
  const indice = (0, randint_1.randint)(2, 4);
@@ -33,11 +33,10 @@ function getGlobalPercentQuestion() {
33
33
  ans = (0, mathjs_1.round)((ans - 1) * 100, 2);
34
34
  instruction += ". \nDéterminer le taux d'évolution global du prix de cet article.";
35
35
  const answer = `${ans} \\%`;
36
- //const startStatement = "Le prix de l'article a subi une hausse globale de";
37
36
  const question = {
38
37
  instruction,
39
- //startStatement,
40
38
  answer,
39
+ keys: ['percent'],
41
40
  };
42
41
  return question;
43
42
  }
@@ -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,QASlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAgB1D"}
@@ -7,7 +7,7 @@ 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',
@@ -16,19 +16,15 @@ exports.reciprocalPercentage = {
16
16
  };
17
17
  function getReciprocalPercentageQuestion() {
18
18
  const randPercent = (0, randint_1.randint)(1, 50);
19
- const tab = ["hausse", "baisse"];
19
+ const tab = ['hausse', 'baisse'];
20
20
  let ans = 0;
21
21
  let a = (0, randint_1.randint)(0, 2);
22
22
  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} \\%`;
23
+ ans = a == 0 ? (1 / (1 + randPercent / 100) - 1) * 100 : (1 / (1 - randPercent / 100) - 1) * 100;
29
24
  const question = {
30
25
  instruction,
31
- answer,
26
+ answer: `${(0, mathjs_1.round)(ans, 2)} \\%`,
27
+ keys: ['percent'],
32
28
  };
33
29
  return question;
34
30
  }
@@ -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,QASjC,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAgBvF"}
@@ -38,6 +38,7 @@ function getPowersDivisionQuestion(useOnlyPowersOfTen = false) {
38
38
  const question = {
39
39
  startStatement: statement.toTex(),
40
40
  answer: answerTree.toTex(),
41
+ keys: [],
41
42
  };
42
43
  return question;
43
44
  }
@@ -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,QASlC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CAYzD"}
@@ -26,6 +26,7 @@ function getPowersOfTenDivisionQuestion() {
26
26
  const question = {
27
27
  startStatement: statement.toTex(),
28
28
  answer: answerTree.toTex(),
29
+ keys: [],
29
30
  };
30
31
  return question;
31
32
  }
@@ -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,QASzB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAapF"}
@@ -37,6 +37,7 @@ function getPowersPowerQuestion(useOnlyPowersOfTen = false) {
37
37
  const question = {
38
38
  startStatement: statement.toTex(),
39
39
  answer: answerTree.toTex(),
40
+ keys: [],
40
41
  };
41
42
  return question;
42
43
  }
@@ -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,QAS3B,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAgBtF"}
@@ -38,6 +38,7 @@ function getPowersProductQuestion(useOnlyPowersOfTen = false) {
38
38
  const question = {
39
39
  startStatement: statement.toTex(),
40
40
  answer: answerTree.toTex(),
41
+ keys: [],
41
42
  };
42
43
  return question;
43
44
  }
@@ -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,QASjC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CAiBzD"}
@@ -31,6 +31,7 @@ function getScientificToDecimalQuestion() {
31
31
  const question = {
32
32
  startStatement: statement.toTex(),
33
33
  answer: answerTree.toTex(),
34
+ keys: [],
34
35
  };
35
36
  return question;
36
37
  }
@@ -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,QASpC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,CA4DpD"}
@@ -66,6 +66,7 @@ function getConditionalProbability() {
66
66
  instruction,
67
67
  startStatement,
68
68
  answer,
69
+ keys: ['p', '\\cap', 'underscore'],
69
70
  };
70
71
  return question;
71
72
  }
@@ -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,QAS7C,CAAC;AAEF,wBAAgB,kCAAkC,IAAI,QAAQ,CA4D7D"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMarginalAndConditionalFrequency = exports.marginalAndConditionalFrequency = void 0;
4
+ const randint_1 = require("../../math/utils/random/randint");
5
+ const round_1 = require("../../math/utils/round");
6
+ const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
7
+ exports.marginalAndConditionalFrequency = {
8
+ id: 'marginalAndConditionalFrequency',
9
+ connector: '=',
10
+ instruction: '',
11
+ label: 'Calculs de fréquences marginales et conditionnelles',
12
+ levels: ['1', '0'],
13
+ isSingleStep: false,
14
+ section: 'Probabilités',
15
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getMarginalAndConditionalFrequency, nb),
16
+ };
17
+ function getMarginalAndConditionalFrequency() {
18
+ const [x1, x2, x3, x4] = [1, 2, 3, 4].map((el) => (0, randint_1.randint)(1, 100));
19
+ const x = x1 + x2 + x3 + x4;
20
+ const rand = (0, randint_1.randint)(0, 12);
21
+ const freqString = [
22
+ 'marginale de A',
23
+ 'marginale de B',
24
+ 'marginale de C',
25
+ 'marginale de D',
26
+ 'conditionnelle de A parmi C',
27
+ 'conditionnelle de A parmi D',
28
+ 'conditionnelle de B parmi C',
29
+ 'conditionnelle de B parmi D',
30
+ 'conditionnelle de C parmi A',
31
+ 'conditionnelle de C parmi B',
32
+ 'conditionnelle de D parmi A',
33
+ 'conditionnelle de D parmi B',
34
+ ];
35
+ const frequences = [
36
+ 'f(A)',
37
+ 'f(B)',
38
+ 'f(C)',
39
+ 'f(D)',
40
+ 'f_C(A)',
41
+ 'f_D(A)',
42
+ 'f_C(B)',
43
+ 'f_D(B)',
44
+ 'f_A(C)',
45
+ 'f_B(C)',
46
+ 'f_A(D)',
47
+ 'f_B(D)',
48
+ ];
49
+ let Calculs = [
50
+ (x1 + x3) / x,
51
+ (x2 + x4) / x,
52
+ (x1 + x2) / x,
53
+ (x3 + x4) / x,
54
+ x1 / (x1 + x2),
55
+ x3 / (x3 + x4),
56
+ x2 / (x1 + x2),
57
+ x4 / (x3 + x4),
58
+ x1 / (x1 + x3),
59
+ x3 / (x1 + x3),
60
+ x2 / (x2 + x4),
61
+ x4 / (x2 + x4),
62
+ ];
63
+ Calculs = Calculs.map((el) => (0, round_1.round)(el, 2));
64
+ const question = {
65
+ instruction: `$|\\;\\;\\;| A | B | \\\\ | C | ${x1} | ${x2} | \\\\| D | ${x3} | ${x4} |\\\\$ Calculer la fréquence ${freqString[rand]}`,
66
+ startStatement: `${frequences[rand]}`,
67
+ answer: Calculs[rand].toString(),
68
+ keys: ['f', 'cap', 'underscore'],
69
+ };
70
+ return question;
71
+ }
72
+ exports.getMarginalAndConditionalFrequency = getMarginalAndConditionalFrequency;
@@ -0,0 +1,4 @@
1
+ import { Exercise, Question } from '../exercise';
2
+ export declare const probabilityTree: Exercise;
3
+ export declare function getProbabilityTree(): Question;
4
+ //# sourceMappingURL=probabilityTree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"probabilityTree.d.ts","sourceRoot":"","sources":["../../../src/exercises/proba/probabilityTree.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,eAAe,EAAE,QAS7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CAqD7C"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProbabilityTree = exports.probabilityTree = void 0;
4
+ const randint_1 = require("../../math/utils/random/randint");
5
+ const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
6
+ const multiplyNode_1 = require("../../tree/nodes/operators/multiplyNode");
7
+ const simplify_1 = require("../../tree/parsers/simplify");
8
+ const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
9
+ exports.probabilityTree = {
10
+ id: 'probabilityTree',
11
+ connector: '=',
12
+ instruction: '',
13
+ label: 'Calculs dans un arbre pondéré',
14
+ levels: ['1', '0'],
15
+ isSingleStep: false,
16
+ section: 'Probabilités',
17
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getProbabilityTree, nb),
18
+ };
19
+ function getProbabilityTree() {
20
+ const A = (0, randint_1.randint)(4, 9);
21
+ const B = (0, randint_1.randint)(4, 10 - A);
22
+ const pA = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(A / (A + B)));
23
+ const pB = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(B / (A + B)));
24
+ const pA_C = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode((A - 1) / (A + B - 1)));
25
+ const pA_D = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(B / (A + B - 1)));
26
+ const pB_C = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(A / (A + B - 1)));
27
+ const pB_D = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode((B - 1) / (A + B - 1)));
28
+ let instruction = `$P(A) = ${pA.toTex()}, P(B) = ${pB.toTex()}$.$\\\\$ $P_A(C) = ${pA_C.toTex()}, P_A(D) = ${pA_D.toTex()}, P_B(C) = ${pB_C.toTex()}, P_B(D) = ${pB_D.toTex()}$.`;
29
+ let startStatement = '';
30
+ let answer = '';
31
+ const rand = (0, randint_1.randint)(1, 5);
32
+ switch (rand) {
33
+ case 1: {
34
+ instruction += `$\\\\$ Calculer $P(A \\cap C)$`;
35
+ startStatement = `P(A \\cap C)`;
36
+ answer = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(pA, pA_C)).toTex();
37
+ break;
38
+ }
39
+ case 2: {
40
+ instruction += `$\\\\$ Calculer $P(A \\cap D)$`;
41
+ startStatement = `P(A \\cap D)`;
42
+ answer = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(pA, pA_D)).toTex();
43
+ break;
44
+ }
45
+ case 3: {
46
+ instruction += `$\\\\$ Calculer $P(B \\cap C)$`;
47
+ startStatement = `P(B \\cap C)`;
48
+ answer = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(pB, pB_C)).toTex();
49
+ break;
50
+ }
51
+ case 4: {
52
+ instruction += `$\\\\$ Calculer $P(B \\cap D)$`;
53
+ startStatement = `P(B \\cap D)`;
54
+ answer = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(pB, pB_D)).toTex();
55
+ break;
56
+ }
57
+ }
58
+ const question = {
59
+ instruction,
60
+ startStatement,
61
+ answer,
62
+ keys: [],
63
+ };
64
+ return question;
65
+ }
66
+ exports.getProbabilityTree = getProbabilityTree;
@@ -1 +1 @@
1
- {"version":3,"file":"arithmeticExplicitFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY9D,eAAO,MAAM,8BAA8B,EAAE,QAS5C,CAAC;AAEF,wBAAgB,iCAAiC,IAAI,QAAQ,CAc5D"}
1
+ {"version":3,"file":"arithmeticExplicitFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY9D,eAAO,MAAM,8BAA8B,EAAE,QAS5C,CAAC;AAEF,wBAAgB,iCAAiC,IAAI,QAAQ,CAe5D"}
@@ -23,6 +23,7 @@ function getArithmeticExplicitFormulaUsage() {
23
23
  instruction: `$(u_n)$ est une suite arithmétique définie par $u_n = ${polynomial.toString()}$. Calculer :`,
24
24
  startStatement: `u_{${askedRank}}`,
25
25
  answer: (firstValue + askedRank * reason).toString(),
26
+ keys: ['r', 'n', 'u', 'underscore'],
26
27
  };
27
28
  return question;
28
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"arithmeticFindExplicitFormula.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY9D,eAAO,MAAM,6BAA6B,EAAE,QAS3C,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAc3D"}
1
+ {"version":3,"file":"arithmeticFindExplicitFormula.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY9D,eAAO,MAAM,6BAA6B,EAAE,QAS3C,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAe3D"}
@@ -23,6 +23,7 @@ function getArithmeticFindExplicitFormula() {
23
23
  instruction: `$(u_n)$ est une suite arithmétique de premier terme $u_{${firstRank}} = ${firstValue}$ et de raison $r = ${reason}$. $\\\\$ Donner l'expression de $u_n$ en fonction de $n$.`,
24
24
  startStatement: 'u_n',
25
25
  answer: formula.toString(),
26
+ keys: ['r', 'n', 'u', 'underscore'],
26
27
  };
27
28
  return question;
28
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"arithmeticFindReason.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticFindReason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAalD"}
1
+ {"version":3,"file":"arithmeticFindReason.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticFindReason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAclD"}
@@ -23,6 +23,7 @@ function getArithmeticFindReason() {
23
23
  instruction: `$(u_n)$ est une suite arithmétique. On sait que $u_{${rank1}} = ${value1}$ et $u_{${rank2}} = ${value2}$. Quelle est la raison de la suite $(u_n)$ ?`,
24
24
  startStatement: 'r',
25
25
  answer: reason.toString(),
26
+ keys: ['r', 'n', 'u', 'underscore'],
26
27
  };
27
28
  return question;
28
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"arithmeticReasonUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticReasonUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,qBAAqB,EAAE,QASnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAWnD"}
1
+ {"version":3,"file":"arithmeticReasonUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticReasonUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,qBAAqB,EAAE,QASnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAYnD"}
@@ -22,6 +22,7 @@ function getArithmeticReasonUsage() {
22
22
  instruction: `$(u_n)$ est une suite arithmétique de raison $r = ${reason}$ et on sait que $u_{${startRank}} = ${startValue}$. Calculer : `,
23
23
  startStatement: `u_{${askedRank}}`,
24
24
  answer: (startValue + reason).toString(),
25
+ keys: ['r', 'n', 'u', 'underscore'],
25
26
  };
26
27
  return question;
27
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"arithmeticRecurrenceFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAoB,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIhF,eAAO,MAAM,gCAAgC,EAAE,QAS9C,CAAC;AAEF,wBAAgB,mCAAmC,IAAI,QAAQ,CAY9D"}
1
+ {"version":3,"file":"arithmeticRecurrenceFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAoB,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIhF,eAAO,MAAM,gCAAgC,EAAE,QAS9C,CAAC;AAEF,wBAAgB,mCAAmC,IAAI,QAAQ,CAa9D"}
@@ -22,6 +22,7 @@ function getArithmeticRecurrenceFormulaUsage() {
22
22
  instruction: `$(u_n)$ est une suite définie par $u_{n+1} = ${reason} + u_n$ et $u_{${firstRank}} = ${firstValue}$. Calculer :`,
23
23
  startStatement: `u_{${askedRank}}`,
24
24
  answer: (firstValue + reason).toString(),
25
+ keys: ['r', 'n', 'u', 'underscore'],
25
26
  };
26
27
  return question;
27
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"arithmeticThresholdFind.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticThresholdFind.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGpD,eAAO,MAAM,uBAAuB,EAAE,QASrC,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,QAAQ,CAyBrD"}
1
+ {"version":3,"file":"arithmeticThresholdFind.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticThresholdFind.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGpD,eAAO,MAAM,uBAAuB,EAAE,QASrC,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,QAAQ,CA0BrD"}
@@ -33,6 +33,7 @@ function getArithmeticThresholdFind() {
33
33
  instruction,
34
34
  startStatement: `n`,
35
35
  answer: (Math.floor((randValue - firstValue) / reason) + 1).toString(),
36
+ keys: ['r', 'n', 'u', 'underscore', 'inf', 'sup', 'approx'],
36
37
  };
37
38
  return question;
38
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"geometricExplicitFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricExplicitFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,6BAA6B,EAAE,QAS3C,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAgB3D"}
1
+ {"version":3,"file":"geometricExplicitFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricExplicitFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,6BAA6B,EAAE,QAS3C,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAiB3D"}
@@ -28,6 +28,7 @@ function getGeometricExplicitFormulaUsage() {
28
28
  instruction: `$(u_n)$ est une suite géométrique définie par $u_n = ${formulaTex}$. Calculer :`,
29
29
  startStatement: `u_{${askedRank}}`,
30
30
  answer: (firstValue * Math.pow(reason, askedRank)).toString(),
31
+ keys: ['n', 'u', 'underscore'],
31
32
  };
32
33
  return question;
33
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"geometricFindExplicitFormula.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricFindExplicitFormula.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,4BAA4B,EAAE,QAS1C,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAe1D"}
1
+ {"version":3,"file":"geometricFindExplicitFormula.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricFindExplicitFormula.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,4BAA4B,EAAE,QAS1C,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAgB1D"}
@@ -27,6 +27,7 @@ function getGeometricFindExplicitFormula() {
27
27
  instruction: `$(u_n)$ est une suite géométrique de premier terme $u_{${firstRank}} = ${firstValue}$ et de raison $q = ${reason}$. $\\\\$ Donner l'expression de $u_n$ en fonction de $n$.`,
28
28
  startStatement: 'u_n',
29
29
  answer: (0, simplify_1.simplifyNode)(formula).toTex(),
30
+ keys: ['q', 'n', 'u', 'underscore'],
30
31
  };
31
32
  return question;
32
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"geometricFindReason.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricFindReason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,mBAAmB,EAAE,QASjC,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,QAAQ,CAYjD"}
1
+ {"version":3,"file":"geometricFindReason.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricFindReason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,mBAAmB,EAAE,QASjC,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,QAAQ,CAajD"}
@@ -23,6 +23,7 @@ function getGeometricFindReason() {
23
23
  instruction: `$(u_n)$ est une suite géométrique. On sait que $u_{${rank1}} = ${value1}$ et $u_{${rank2}} = ${value2}$. Quelle est la raison de la suite $(u_n)$ ?`,
24
24
  startStatement: 'q',
25
25
  answer: reason.toString(),
26
+ keys: ['q', 'n', 'u', 'underscore'],
26
27
  };
27
28
  return question;
28
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"geometricReasonUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricReasonUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAWlD"}
1
+ {"version":3,"file":"geometricReasonUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricReasonUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAYlD"}
@@ -22,6 +22,7 @@ function getGeometricReasonUsage() {
22
22
  instruction: `$(u_n)$ est une suite géométrique de raison $q = ${reason}$ et on sait que $u_{${startRank}} = ${startValue}$. Calculer : `,
23
23
  startStatement: `u_{${askedRank}}`,
24
24
  answer: (startValue * reason).toString(),
25
+ keys: ['q', 'n', 'u', 'underscore'],
25
26
  };
26
27
  return question;
27
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"geometricRecurrenceFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIhF,UAAU,sCAAuC,SAAQ,gBAAgB;IACvE,IAAI,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,+BAA+B,EAAE,QAU7C,CAAC;AAEF,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,sCAAsC,GAAG,QAAQ,CAY5G"}
1
+ {"version":3,"file":"geometricRecurrenceFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIhF,UAAU,sCAAuC,SAAQ,gBAAgB;IACvE,IAAI,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,+BAA+B,EAAE,QAU7C,CAAC;AAEF,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,sCAAsC,GAAG,QAAQ,CAa5G"}
@@ -22,6 +22,7 @@ function getGeometricRecurrenceFormulaUsage(options) {
22
22
  instruction: `$(u_n)$ est une suite définie par $u_{n+1} = ${reason}\\times u_n$ et $u_{${firstRank}} = ${firstValue}$. Calculer :`,
23
23
  startStatement: `u_{${askedRank}}`,
24
24
  answer: (firstValue * reason).toString(),
25
+ keys: ['q', 'n', 'u', 'underscore'],
25
26
  };
26
27
  return question;
27
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"simpifySquareRoot.d.ts","sourceRoot":"","sources":["../../../src/exercises/squareRoots/simpifySquareRoot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAUhD"}
1
+ {"version":3,"file":"simpifySquareRoot.d.ts","sourceRoot":"","sources":["../../../src/exercises/squareRoots/simpifySquareRoot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAWhD"}
@@ -21,6 +21,7 @@ function getSimplifySquareRoot() {
21
21
  const question = {
22
22
  startStatement: squareRoot.toTree().toTex(),
23
23
  answer: squareRoot.simplify().toTree().toTex(),
24
+ keys: [],
24
25
  };
25
26
  return question;
26
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mainRemarkableValues.d.ts","sourceRoot":"","sources":["../../../src/exercises/trigonometry/mainRemarkableValues.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,4BAA4B,EAAE,QAS1C,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAYlD"}
1
+ {"version":3,"file":"mainRemarkableValues.d.ts","sourceRoot":"","sources":["../../../src/exercises/trigonometry/mainRemarkableValues.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,4BAA4B,EAAE,QAS1C,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAalD"}