math-exercises 1.4.2 → 1.4.4

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 (153) hide show
  1. package/lib/exercises/calcul/addAndSub.d.ts.map +1 -1
  2. package/lib/exercises/calcul/addAndSub.js +2 -1
  3. package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts.map +1 -1
  4. package/lib/exercises/calcul/addAndSubWithoutRelatives.js +2 -1
  5. package/lib/exercises/calcul/arithmetics/euclideanDivision.d.ts.map +1 -1
  6. package/lib/exercises/calcul/arithmetics/euclideanDivision.js +2 -2
  7. package/lib/exercises/calcul/arithmetics/primeNumbers.d.ts.map +1 -1
  8. package/lib/exercises/calcul/arithmetics/primeNumbers.js +4 -3
  9. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
  10. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +4 -4
  11. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +2 -2
  12. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +2 -2
  13. package/lib/exercises/calcul/fractions/fractionsDivision.js +2 -2
  14. package/lib/exercises/calcul/fractions/fractionsProduct.d.ts.map +1 -1
  15. package/lib/exercises/calcul/fractions/fractionsProduct.js +2 -1
  16. package/lib/exercises/calcul/fractions/fractionsSum.d.ts.map +1 -1
  17. package/lib/exercises/calcul/fractions/fractionsSum.js +2 -1
  18. package/lib/exercises/calcul/fractions/simplifyFraction.d.ts.map +1 -1
  19. package/lib/exercises/calcul/fractions/simplifyFraction.js +2 -1
  20. package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.d.ts.map +1 -1
  21. package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.js +2 -1
  22. package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.d.ts.map +1 -1
  23. package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.js +2 -1
  24. package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.d.ts.map +1 -1
  25. package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.js +2 -1
  26. package/lib/exercises/calcul/operations/operationsPriorities.d.ts.map +1 -1
  27. package/lib/exercises/calcul/operations/operationsPriorities.js +2 -1
  28. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
  29. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.js +2 -1
  30. package/lib/exercises/calcul/rounding/rounding.js +5 -5
  31. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
  32. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +2 -1
  33. package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
  34. package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +2 -1
  35. package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
  36. package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +2 -1
  37. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
  38. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +2 -1
  39. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
  40. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +2 -1
  41. package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
  42. package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +3 -2
  43. package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
  44. package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +2 -1
  45. package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
  46. package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +2 -1
  47. package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
  48. package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +2 -1
  49. package/lib/exercises/calculLitteral/equation/fractionEquation.d.ts.map +1 -1
  50. package/lib/exercises/calculLitteral/equation/fractionEquation.js +2 -1
  51. package/lib/exercises/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
  52. package/lib/exercises/calculLitteral/equation/multiplicationEquation.js +2 -1
  53. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
  54. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.js +2 -1
  55. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
  56. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.js +2 -1
  57. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
  58. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.js +2 -1
  59. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
  60. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +2 -1
  61. package/lib/exercises/calculLitteral/simplifying/reduceExpression.d.ts.map +1 -1
  62. package/lib/exercises/calculLitteral/simplifying/reduceExpression.js +2 -1
  63. package/lib/exercises/derivation/derivative/constanteDerivative.d.ts.map +1 -1
  64. package/lib/exercises/derivation/derivative/constanteDerivative.js +9 -6
  65. package/lib/exercises/derivation/derivative/expDerivativeOne.d.ts.map +1 -1
  66. package/lib/exercises/derivation/derivative/expDerivativeOne.js +1 -2
  67. package/lib/exercises/derivation/derivative/expDerivativeThree.d.ts.map +1 -1
  68. package/lib/exercises/derivation/derivative/expDerivativeThree.js +1 -2
  69. package/lib/exercises/derivation/derivative/expDerivativeTwo.d.ts.map +1 -1
  70. package/lib/exercises/derivation/derivative/expDerivativeTwo.js +1 -2
  71. package/lib/exercises/derivation/derivative/firstDegreeDerivative.d.ts.map +1 -1
  72. package/lib/exercises/derivation/derivative/firstDegreeDerivative.js +1 -2
  73. package/lib/exercises/derivation/derivative/inverseFunctionDerivative.d.ts.map +1 -1
  74. package/lib/exercises/derivation/derivative/inverseFunctionDerivative.js +2 -3
  75. package/lib/exercises/derivation/derivative/lnDerivativeOne.d.ts.map +1 -1
  76. package/lib/exercises/derivation/derivative/lnDerivativeOne.js +1 -2
  77. package/lib/exercises/derivation/derivative/lnDerivativeThree.d.ts.map +1 -1
  78. package/lib/exercises/derivation/derivative/lnDerivativeThree.js +1 -2
  79. package/lib/exercises/derivation/derivative/powerFunctionDerivative.d.ts.map +1 -1
  80. package/lib/exercises/derivation/derivative/powerFunctionDerivative.js +1 -2
  81. package/lib/exercises/derivation/derivative/rootFunctionDerivative.js +1 -1
  82. package/lib/exercises/equaDiff/equaDiffGeneralForme.js +1 -1
  83. package/lib/exercises/exercise.d.ts +2 -0
  84. package/lib/exercises/exercise.d.ts.map +1 -1
  85. package/lib/exercises/exercise.js +6 -1
  86. package/lib/exercises/functions/cube/cubicEquation.d.ts.map +1 -1
  87. package/lib/exercises/functions/cube/cubicEquation.js +2 -1
  88. package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.js +6 -6
  89. package/lib/exercises/geometry/euclidean/pythagoreCalcul.js +2 -2
  90. package/lib/exercises/geometry/euclidean/squareArea.d.ts.map +1 -1
  91. package/lib/exercises/geometry/euclidean/squareArea.js +3 -2
  92. package/lib/exercises/geometry/euclidean/squarePerimeter.d.ts.map +1 -1
  93. package/lib/exercises/geometry/euclidean/squarePerimeter.js +3 -2
  94. package/lib/exercises/geometry/euclidean/triangleAreaV2.d.ts.map +1 -1
  95. package/lib/exercises/geometry/euclidean/triangleAreaV2.js +2 -1
  96. package/lib/exercises/limits/sequenceGeometricLimit.d.ts.map +1 -1
  97. package/lib/exercises/limits/sequenceGeometricLimit.js +1 -2
  98. package/lib/exercises/limits/sequencePolynomProductLimit.js +1 -1
  99. package/lib/exercises/powers/powersDivision.d.ts.map +1 -1
  100. package/lib/exercises/powers/powersDivision.js +2 -1
  101. package/lib/exercises/powers/powersOfTenToDecimal.d.ts +1 -1
  102. package/lib/exercises/powers/powersOfTenToDecimal.d.ts.map +1 -1
  103. package/lib/exercises/powers/powersOfTenToDecimal.js +9 -6
  104. package/lib/exercises/powers/powersPower.d.ts.map +1 -1
  105. package/lib/exercises/powers/powersPower.js +4 -4
  106. package/lib/exercises/powers/powersProduct.d.ts.map +1 -1
  107. package/lib/exercises/powers/powersProduct.js +3 -2
  108. package/lib/exercises/powers/scientificToDecimal.d.ts.map +1 -1
  109. package/lib/exercises/powers/scientificToDecimal.js +3 -3
  110. package/lib/exercises/primitve/constantPrimitive.d.ts.map +1 -1
  111. package/lib/exercises/primitve/constantPrimitive.js +6 -4
  112. package/lib/exercises/primitve/exponentialPrimitive.d.ts.map +1 -1
  113. package/lib/exercises/primitve/exponentialPrimitive.js +1 -2
  114. package/lib/exercises/probaStat/medianList.d.ts.map +1 -1
  115. package/lib/exercises/probaStat/medianList.js +5 -2
  116. package/lib/exercises/probaStat/quartilesList.d.ts.map +1 -1
  117. package/lib/exercises/probaStat/quartilesList.js +9 -2
  118. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +1 -1
  119. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.js +1 -1
  120. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +1 -1
  121. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +1 -1
  122. package/lib/exercises/sequences/geometric/geometricReasonUsage.js +1 -1
  123. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts +2 -6
  124. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
  125. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.js +3 -3
  126. package/lib/exercises/squareRoots/simpifySquareRoot.d.ts.map +1 -1
  127. package/lib/exercises/squareRoots/simpifySquareRoot.js +5 -4
  128. package/lib/exercises/trigonometry/mainRemarkableValues.d.ts.map +1 -1
  129. package/lib/exercises/trigonometry/mainRemarkableValues.js +24 -28
  130. package/lib/exercises/trigonometry/remarkableValues.d.ts.map +1 -1
  131. package/lib/exercises/trigonometry/remarkableValues.js +6 -4
  132. package/lib/exercises/utils/getDistinctQuestions.d.ts +8 -1
  133. package/lib/exercises/utils/getDistinctQuestions.d.ts.map +1 -1
  134. package/lib/exercises/utils/getDistinctQuestions.js +10 -2
  135. package/lib/exercises/utils/sum.test.js +1 -3
  136. package/lib/math/numbers/integer/integer.d.ts +1 -0
  137. package/lib/math/numbers/integer/integer.d.ts.map +1 -1
  138. package/lib/math/numbers/integer/integer.js +5 -0
  139. package/lib/math/numbers/integer/primes.d.ts +2 -0
  140. package/lib/math/numbers/integer/primes.d.ts.map +1 -0
  141. package/lib/math/numbers/integer/primes.js +4 -0
  142. package/lib/math/numbers/nombre.d.ts +4 -0
  143. package/lib/math/numbers/nombre.d.ts.map +1 -1
  144. package/lib/math/numbers/nombre.js +23 -1
  145. package/lib/math/numbers/reals/real.d.ts +20 -0
  146. package/lib/math/numbers/reals/real.d.ts.map +1 -1
  147. package/lib/math/numbers/reals/real.js +82 -1
  148. package/lib/math/polynomials/trinom.js +3 -3
  149. package/lib/math/trigonometry/remarkableValues.d.ts.map +1 -1
  150. package/lib/math/trigonometry/remarkableValues.js +5 -0
  151. package/lib/types/keyIds.d.ts +1 -1
  152. package/lib/types/keyIds.d.ts.map +1 -1
  153. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"addAndSub.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSub.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIlE;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,YAY/B,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAsDhD"}
1
+ {"version":3,"file":"addAndSub.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSub.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIlE;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,YAY/B,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAuDhD"}
@@ -13,7 +13,7 @@ const uuid_1 = require("uuid");
13
13
  exports.addAndSubExercise = {
14
14
  id: 'addAndSub',
15
15
  connector: '=',
16
- instruction: 'Calculer :',
16
+ instruction: '',
17
17
  label: 'Additions et soustractions',
18
18
  levels: ['6ème', '5ème'],
19
19
  sections: ['Calculs'],
@@ -62,6 +62,7 @@ function getAddAndSubQuestions() {
62
62
  return (0, shuffle_1.shuffle)(res);
63
63
  };
64
64
  const question = {
65
+ instruction: `Calculer : $${statementTree.toTex()}$`,
65
66
  startStatement: statementTree.toTex(),
66
67
  answer: answer + '',
67
68
  keys: [],
@@ -1 +1 @@
1
- {"version":3,"file":"addAndSubWithoutRelatives.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSubWithoutRelatives.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIlE;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,YAYvC,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,QAAQ,CAmEvD"}
1
+ {"version":3,"file":"addAndSubWithoutRelatives.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSubWithoutRelatives.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIlE;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,YAYvC,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,QAAQ,CAoEvD"}
@@ -13,7 +13,7 @@ const uuid_1 = require("uuid");
13
13
  exports.addAndSubWithoutRelatives = {
14
14
  id: 'addAndSubWithoutRelatives',
15
15
  connector: '=',
16
- instruction: 'Calculer :',
16
+ instruction: '',
17
17
  label: 'Additions et soustractions sans les nombres relatifs',
18
18
  levels: ['6ème', '5ème'],
19
19
  sections: ['Calculs'],
@@ -71,6 +71,7 @@ function getAddAndSubWithoutRelatives() {
71
71
  return (0, shuffle_1.shuffle)(propositions);
72
72
  };
73
73
  const question = {
74
+ instruction: `Calculer : $${statementTree.toTex()}$`,
74
75
  startStatement: statementTree.toTex(),
75
76
  answer: answer.toString(),
76
77
  keys: [],
@@ -1 +1 @@
1
- {"version":3,"file":"euclideanDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/euclideanDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU/E,eAAO,MAAM,iBAAiB,EAAE,YAY/B,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,CAgExD"}
1
+ {"version":3,"file":"euclideanDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/euclideanDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAgB,MAAM,0BAA0B,CAAC;AAU7F,eAAO,MAAM,iBAAiB,EAAE,YAY/B,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,CAgExD"}
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getEuclideanDivisionQuestions = exports.euclideanDivision = void 0;
4
+ const exercise_1 = require("../../../exercises/exercise");
4
5
  const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
6
  const randint_1 = require("../../../math/utils/random/randint");
6
7
  const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
7
8
  const addNode_1 = require("../../../tree/nodes/operators/addNode");
8
9
  const equalNode_1 = require("../../../tree/nodes/operators/equalNode");
9
10
  const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
10
- const shuffle_1 = require("../../../utils/shuffle");
11
11
  const uuid_1 = require("uuid");
12
12
  exports.euclideanDivision = {
13
13
  id: 'euclideanDivision',
@@ -58,7 +58,7 @@ function getEuclideanDivisionQuestions() {
58
58
  } while (isDuplicate);
59
59
  res.push(proposition);
60
60
  }
61
- return (0, shuffle_1.shuffle)([res[0], ...res.slice(1, n)]);
61
+ return (0, exercise_1.shuffleProps)(res, n);
62
62
  };
63
63
  const question = {
64
64
  instruction: `Ecrire la division euclidienne de ${dividend} par ${divisor}`,
@@ -1 +1 @@
1
- {"version":3,"file":"primeNumbers.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/primeNumbers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGrE;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,YAY1B,CAAC;AAQF,wBAAgB,eAAe,IAAI,QAAQ,CA2E1C"}
1
+ {"version":3,"file":"primeNumbers.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/primeNumbers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAgB,MAAM,gBAAgB,CAAC;AAGnF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,YAY1B,CAAC;AAQF,wBAAgB,eAAe,IAAI,QAAQ,CA4E1C"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPrimeNumbers = exports.primeNumbers = void 0;
4
4
  const randint_1 = require("../../../math/utils/random/randint");
5
- const shuffle_1 = require("../../../utils/shuffle");
6
5
  const uuid_1 = require("uuid");
6
+ const exercise_1 = require("../../exercise");
7
7
  const getDistinctQuestions_1 = require("../../utils/getDistinctQuestions");
8
8
  /**
9
9
  * a±b±c±d
@@ -11,7 +11,7 @@ const getDistinctQuestions_1 = require("../../utils/getDistinctQuestions");
11
11
  exports.primeNumbers = {
12
12
  id: 'primeNumbers',
13
13
  connector: '=',
14
- instruction: 'Donner la décomposition en nombre premiers',
14
+ instruction: '',
15
15
  label: 'Décomposition en nombres premiers',
16
16
  levels: ['5ème', '4ème', '3ème', '2nde'],
17
17
  sections: ['Arithmétique'],
@@ -78,9 +78,10 @@ function getPrimeNumbers() {
78
78
  format: 'tex',
79
79
  });
80
80
  }
81
- return (0, shuffle_1.shuffle)([res[0], ...res.slice(1, n)]);
81
+ return (0, exercise_1.shuffleProps)(res, n);
82
82
  };
83
83
  const question = {
84
+ instruction: `Donner la décomposition en nombres premiers de : $${prod}$`,
84
85
  startStatement: `${prod}`,
85
86
  answer,
86
87
  keys: [],
@@ -1 +1 @@
1
- {"version":3,"file":"fractionAndIntegerDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU/E,eAAO,MAAM,0BAA0B,EAAE,YAYxC,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,CA+DxD"}
1
+ {"version":3,"file":"fractionAndIntegerDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAgB,MAAM,0BAA0B,CAAC;AAU7F,eAAO,MAAM,0BAA0B,EAAE,YAYxC,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,CA+DxD"}
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFractionAndIntegerDivision = exports.fractionAndIntegerDivision = void 0;
4
+ const exercise_1 = require("../../../exercises/exercise");
4
5
  const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
6
  const integer_1 = require("../../../math/numbers/integer/integer");
6
7
  const rational_1 = require("../../../math/numbers/rationals/rational");
7
8
  const randint_1 = require("../../../math/utils/random/randint");
8
9
  const divideNode_1 = require("../../../tree/nodes/operators/divideNode");
9
10
  const coinFlip_1 = require("../../../utils/coinFlip");
10
- const shuffle_1 = require("../../../utils/shuffle");
11
11
  const uuid_1 = require("uuid");
12
12
  exports.fractionAndIntegerDivision = {
13
13
  id: 'fractionAndIntegerDivision',
14
14
  connector: '=',
15
- instruction: "Calculer et donner le résultat sous la forme d'une fraction irréductible.",
15
+ instruction: '',
16
16
  label: "Division d'un entier et d'une fraction",
17
17
  levels: ['4ème', '3ème', '2nde', '2ndPro', '1rePro', 'CAP'],
18
18
  isSingleStep: false,
@@ -62,10 +62,10 @@ function getFractionAndIntegerDivision() {
62
62
  } while (isDuplicate);
63
63
  res.push(proposition);
64
64
  }
65
- return (0, shuffle_1.shuffle)([res[0], ...res.slice(1, n)]);
65
+ return (0, exercise_1.shuffleProps)(res, n);
66
66
  };
67
67
  const question = {
68
- instruction: '',
68
+ instruction: `Calculer et donner le résultat sous la forme d'une fraction irréductible : $${statementTree.toTex()}$`,
69
69
  startStatement: statementTree.toTex(),
70
70
  answer: answerTree.toTex(),
71
71
  keys: [],
@@ -11,7 +11,7 @@ const uuid_1 = require("uuid");
11
11
  exports.fractionAndIntegerProduct = {
12
12
  id: 'fractionAndIntegerProduct',
13
13
  connector: '=',
14
- instruction: "Calculer et donner le résultat sous la forme d'une fraction irréductible.",
14
+ instruction: '',
15
15
  label: "Produit d'un entier et d'une fraction",
16
16
  levels: ['4ème', '3ème', '2nde', 'CAP', '2ndPro', '1rePro'],
17
17
  isSingleStep: false,
@@ -60,7 +60,7 @@ function getFractionAndIntegerProduct() {
60
60
  return (0, shuffle_1.shuffle)(res);
61
61
  };
62
62
  const question = {
63
- instruction: '',
63
+ instruction: `Calculer et donner le résultat sous la forme d'une fraction irréductible : $${statementTree.toTex()}$`,
64
64
  startStatement: statementTree.toTex(),
65
65
  answer: answerTree.toTex(),
66
66
  keys: [],
@@ -11,7 +11,7 @@ const uuid_1 = require("uuid");
11
11
  exports.fractionAndIntegerSum = {
12
12
  id: 'fractionAndIntegerSum',
13
13
  connector: '=',
14
- instruction: "Calculer et donner le résultat sous la forme d'une fraction irréductible.",
14
+ instruction: '',
15
15
  label: "Somme d'un entier et d'une fraction",
16
16
  levels: ['4ème', '3ème', '2nde', 'CAP', '2ndPro', '1rePro'],
17
17
  isSingleStep: false,
@@ -68,7 +68,7 @@ function getFractionAndIntegerSum() {
68
68
  return (0, shuffle_1.shuffle)(res);
69
69
  };
70
70
  const question = {
71
- instruction: '',
71
+ instruction: `Calculer et donner le résultat sous la forme d'une fraction irréductible : $${statementTree.toTex()}$`,
72
72
  startStatement: statementTree.toTex(),
73
73
  answer: answerTree.toTex(),
74
74
  keys: [],
@@ -9,7 +9,7 @@ const uuid_1 = require("uuid");
9
9
  exports.fractionsDivision = {
10
10
  id: 'fractionsDivision',
11
11
  connector: '=',
12
- instruction: "Calculer et donner le résultat sous la forme d'une fraction irréductible.",
12
+ instruction: '',
13
13
  label: 'Divisions de fractions',
14
14
  levels: ['4ème', '3ème', '2nde', 'CAP', '2ndPro', '1rePro'],
15
15
  sections: ['Fractions'],
@@ -57,7 +57,7 @@ function getFractionsDivision() {
57
57
  return (0, shuffle_1.shuffle)(res);
58
58
  };
59
59
  const question = {
60
- instruction: '',
60
+ instruction: `Calculer et donner le résultat sous la forme d'une fraction irréductible : $${statementTree.toTex()}$`,
61
61
  startStatement: statementTree.toTex(),
62
62
  answer: answerTree.toTex(),
63
63
  keys: [],
@@ -1 +1 @@
1
- {"version":3,"file":"fractionsProduct.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO/E,eAAO,MAAM,gBAAgB,EAAE,YAY9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CA8C9C"}
1
+ {"version":3,"file":"fractionsProduct.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO/E,eAAO,MAAM,gBAAgB,EAAE,YAY9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CA+C9C"}
@@ -9,7 +9,7 @@ const uuid_1 = require("uuid");
9
9
  exports.fractionsProduct = {
10
10
  id: 'fractionsProduct',
11
11
  connector: '=',
12
- instruction: "Calculer et donner le résultat sous la forme d'une fraction irréductible.",
12
+ instruction: '',
13
13
  label: 'Produits de fractions',
14
14
  levels: ['4ème', '3ème', '2nde', 'CAP', '2ndPro', '1rePro'],
15
15
  sections: ['Fractions'],
@@ -51,6 +51,7 @@ function getFractionsProduct() {
51
51
  return (0, shuffle_1.shuffle)(res);
52
52
  };
53
53
  const question = {
54
+ instruction: `Calculer et donner le résultat sous la forme d'une fraction irréductible : $${statementTree.toTex()}$`,
54
55
  startStatement: statementTree.toTex(),
55
56
  answer: answerTree.toTex(),
56
57
  keys: [],
@@ -1 +1 @@
1
- {"version":3,"file":"fractionsSum.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsSum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO/E,eAAO,MAAM,YAAY,EAAE,YAY1B,CAAC;AAEF,wBAAgB,eAAe,IAAI,QAAQ,CAsD1C"}
1
+ {"version":3,"file":"fractionsSum.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsSum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO/E,eAAO,MAAM,YAAY,EAAE,YAY1B,CAAC;AAEF,wBAAgB,eAAe,IAAI,QAAQ,CAuD1C"}
@@ -9,7 +9,7 @@ const uuid_1 = require("uuid");
9
9
  exports.fractionsSum = {
10
10
  id: 'fractionsSum',
11
11
  connector: '=',
12
- instruction: "Calculer et donner le résultat sous la forme d'une fraction irréductible.",
12
+ instruction: '',
13
13
  label: 'Sommes de fractions',
14
14
  levels: ['4ème', '3ème', '2nde', 'CAP', '2ndPro', '1rePro'],
15
15
  sections: ['Fractions'],
@@ -57,6 +57,7 @@ function getFractionsSum() {
57
57
  return (0, shuffle_1.shuffle)(propositions);
58
58
  };
59
59
  const question = {
60
+ instruction: `Calculer et donner le résultat sous la forme d'une fraction irréductible : $${statementTree.toTex()}$`,
60
61
  startStatement: statementTree.toTex(),
61
62
  answer: answerTree.toTex(),
62
63
  keys: [],
@@ -1 +1 @@
1
- {"version":3,"file":"simplifyFraction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/simplifyFraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM/E,eAAO,MAAM,gBAAgB,EAAE,YAY9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CA2C9C"}
1
+ {"version":3,"file":"simplifyFraction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/simplifyFraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM/E,eAAO,MAAM,gBAAgB,EAAE,YAY9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CA4C9C"}
@@ -8,7 +8,7 @@ const uuid_1 = require("uuid");
8
8
  exports.simplifyFraction = {
9
9
  id: 'simplifyFrac',
10
10
  connector: '=',
11
- instruction: 'Simplifier :',
11
+ instruction: '',
12
12
  label: 'Simplification de fractions',
13
13
  levels: ['4ème', '3ème', '2nde', 'CAP', '2ndPro', '1rePro'],
14
14
  sections: ['Fractions'],
@@ -46,6 +46,7 @@ function getSimplifyFraction() {
46
46
  return (0, shuffle_1.shuffle)(propositions);
47
47
  };
48
48
  const question = {
49
+ instruction: `Simplifier : $${rational.toTree().toTex()}$`,
49
50
  startStatement: rational.toTree().toTex(),
50
51
  answer: rational.simplify().toTree().toTex(),
51
52
  keys: [],
@@ -1 +1 @@
1
- {"version":3,"file":"mentalAddAndSub.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU/E,eAAO,MAAM,eAAe,EAAE,YAY7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CAkE7C"}
1
+ {"version":3,"file":"mentalAddAndSub.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU/E,eAAO,MAAM,eAAe,EAAE,YAY7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CAmE7C"}
@@ -12,7 +12,7 @@ const uuid_1 = require("uuid");
12
12
  exports.mentalAddAndSub = {
13
13
  id: 'mentalAddAndSub',
14
14
  connector: '=',
15
- instruction: 'Calculer.',
15
+ instruction: '',
16
16
  label: 'Effectuer mentalement des additions et des soustractions simples',
17
17
  levels: ['6ème', '5ème', '4ème', '3ème', '2nde', '1reESM', 'CAP', '2ndPro', '1rePro'],
18
18
  sections: ['Calculs'],
@@ -70,6 +70,7 @@ function getMentalAddAndSub() {
70
70
  return (0, shuffle_1.shuffle)(res);
71
71
  };
72
72
  const question = {
73
+ instruction: `Calculer : $${statementTree.toTex()}$`,
73
74
  startStatement: statementTree.toTex(),
74
75
  answer: (0, round_1.round)(sum, 2) + '',
75
76
  keys: [],
@@ -1 +1 @@
1
- {"version":3,"file":"mentalDivisions.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalDivisions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU/E,eAAO,MAAM,eAAe,EAAE,YAY7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CA4F7C"}
1
+ {"version":3,"file":"mentalDivisions.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalDivisions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU/E,eAAO,MAAM,eAAe,EAAE,YAY7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CA6F7C"}
@@ -12,7 +12,7 @@ const uuid_1 = require("uuid");
12
12
  exports.mentalDivisions = {
13
13
  id: 'mentalDivisions',
14
14
  connector: '=',
15
- instruction: 'Calculer.',
15
+ instruction: '',
16
16
  label: 'Effectuer mentalement des divisions simples',
17
17
  levels: ['6ème', '5ème', '4ème', '3ème', '2nde', '1reESM', 'CAP', '2ndPro', '1rePro'],
18
18
  sections: ['Calculs'],
@@ -87,6 +87,7 @@ function getMentalDivisions() {
87
87
  return (0, shuffle_1.shuffle)(propositions);
88
88
  };
89
89
  const question = {
90
+ instruction: `Calculer : $${statementTree.toTex()}$`,
90
91
  startStatement: statementTree.toTex(),
91
92
  answer: (0, round_1.round)(answer, 2) + '',
92
93
  keys: [],
@@ -1 +1 @@
1
- {"version":3,"file":"mentalMultiplications.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalMultiplications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU/E,eAAO,MAAM,qBAAqB,EAAE,YAYnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAqEnD"}
1
+ {"version":3,"file":"mentalMultiplications.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalMultiplications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU/E,eAAO,MAAM,qBAAqB,EAAE,YAYnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAsEnD"}
@@ -12,7 +12,7 @@ const uuid_1 = require("uuid");
12
12
  exports.mentalMultiplications = {
13
13
  id: 'mentalMultiplications',
14
14
  connector: '=',
15
- instruction: 'Calculer.',
15
+ instruction: '',
16
16
  label: 'Effectuer mentalement des multiplications simples',
17
17
  levels: ['6ème', '5ème', '4ème', '3ème', '2nde', '1reESM', 'CAP', '2ndPro', '1rePro'],
18
18
  sections: ['Calculs'],
@@ -71,6 +71,7 @@ function getMentalMultiplications() {
71
71
  return (0, shuffle_1.shuffle)(propositions);
72
72
  };
73
73
  const question = {
74
+ instruction: `Calculer : $${statementTree.toTex()}$`,
74
75
  startStatement: statementTree.toTex(),
75
76
  answer: (0, round_1.round)(answer, 2) + '',
76
77
  keys: [],
@@ -1 +1 @@
1
- {"version":3,"file":"operationsPriorities.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/operations/operationsPriorities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW/E,eAAO,MAAM,oBAAoB,EAAE,YAYlC,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,QAAQ,CAgI/C"}
1
+ {"version":3,"file":"operationsPriorities.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/operations/operationsPriorities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW/E,eAAO,MAAM,oBAAoB,EAAE,YAYlC,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,QAAQ,CAiI/C"}
@@ -20,7 +20,7 @@ const uuid_1 = require("uuid");
20
20
  exports.operationsPriorities = {
21
21
  id: 'operationsPriorities',
22
22
  connector: '=',
23
- instruction: 'Calculer :',
23
+ instruction: '',
24
24
  label: 'Priorités opératoires',
25
25
  levels: ['5ème', '4ème'],
26
26
  sections: ['Calculs'],
@@ -119,6 +119,7 @@ function getPriorityQuestions() {
119
119
  return (0, shuffle_1.shuffle)(propositions);
120
120
  };
121
121
  const question = {
122
+ instruction: `Calculer : $${startStatement}$`,
122
123
  startStatement,
123
124
  answer,
124
125
  keys: [],
@@ -1 +1 @@
1
- {"version":3,"file":"operationsPrioritiesWithoutRelative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/operations/operationsPrioritiesWithoutRelative.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW/E,eAAO,MAAM,mCAAmC,EAAE,YAYjD,CAAC;AAEF,wBAAgB,sCAAsC,IAAI,QAAQ,CAkQjE"}
1
+ {"version":3,"file":"operationsPrioritiesWithoutRelative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/operations/operationsPrioritiesWithoutRelative.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW/E,eAAO,MAAM,mCAAmC,EAAE,YAYjD,CAAC;AAEF,wBAAgB,sCAAsC,IAAI,QAAQ,CAmQjE"}
@@ -20,7 +20,7 @@ const uuid_1 = require("uuid");
20
20
  exports.operationsPrioritiesWithoutRelative = {
21
21
  id: 'operationsPrioritiesWithoutRelative',
22
22
  connector: '=',
23
- instruction: 'Calculer :',
23
+ instruction: '',
24
24
  label: 'Priorités opératoires sans les nombres relatifs',
25
25
  levels: ['6ème', '5ème', '4ème'],
26
26
  sections: ['Calculs'],
@@ -200,6 +200,7 @@ function getOperationsPrioritiesWithoutRelative() {
200
200
  return (0, shuffle_1.shuffle)(propositions);
201
201
  };
202
202
  const question = {
203
+ instruction: `Calculer : $${startStatement}$`,
203
204
  startStatement,
204
205
  answer,
205
206
  keys: [],
@@ -13,7 +13,7 @@ const uuid_1 = require("uuid");
13
13
  exports.roundToUnit = {
14
14
  id: 'roundToUnit',
15
15
  connector: '\\approx',
16
- instruction: "Arrondir à l'unité :",
16
+ instruction: '',
17
17
  label: "Arrondir à l'unité",
18
18
  levels: ['6ème', '5ème', 'CAP', '2ndPro', '1rePro'],
19
19
  sections: ['Calculs'],
@@ -29,7 +29,7 @@ exports.roundToUnit = {
29
29
  exports.roundToDixieme = {
30
30
  id: 'roundToDixieme',
31
31
  connector: '\\approx',
32
- instruction: 'Arrondir au dixième :',
32
+ instruction: '',
33
33
  label: 'Arrondir au dixième',
34
34
  levels: ['6ème', '5ème', 'CAP', '2ndPro', '1rePro'],
35
35
  sections: ['Calculs'],
@@ -44,7 +44,7 @@ exports.roundToDixieme = {
44
44
  exports.roundToCentieme = {
45
45
  id: 'roundToCentieme',
46
46
  connector: '\\approx',
47
- instruction: 'Arrondir au centième :',
47
+ instruction: '',
48
48
  label: 'Arrondir au centième',
49
49
  levels: ['6ème', '5ème', 'CAP', '2ndPro', '1rePro'],
50
50
  sections: ['Calculs'],
@@ -59,7 +59,7 @@ exports.roundToCentieme = {
59
59
  exports.roundToMillieme = {
60
60
  id: 'roundToMillieme',
61
61
  connector: '\\approx',
62
- instruction: 'Arrondir au millième :',
62
+ instruction: '',
63
63
  label: 'Arrondir au millième',
64
64
  levels: ['6ème', '5ème', 'CAP', '2ndPro', '1rePro'],
65
65
  sections: ['Calculs'],
@@ -139,7 +139,7 @@ function getRoundQuestions(precisionAsked = 0) {
139
139
  return (0, shuffle_1.shuffle)(res);
140
140
  };
141
141
  const question = {
142
- instruction: instructions[precisionAsked],
142
+ instruction: `${instructions[precisionAsked]} ${dec.toTree().toTex()}`,
143
143
  startStatement: dec.toTree().toTex(),
144
144
  answer: dec.round(precisionAsked).toTree().toTex(),
145
145
  keys: [],
@@ -1 +1 @@
1
- {"version":3,"file":"doubleDistributivity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/doubleDistributivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW/E,eAAO,MAAM,oBAAoB,EAAE,YAYlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAqE1D"}
1
+ {"version":3,"file":"doubleDistributivity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/doubleDistributivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW/E,eAAO,MAAM,oBAAoB,EAAE,YAYlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAsE1D"}
@@ -13,7 +13,7 @@ const uuid_1 = require("uuid");
13
13
  exports.doubleDistributivity = {
14
14
  id: 'doubleDistri',
15
15
  connector: '=',
16
- instruction: 'Développer et réduire :',
16
+ instruction: '',
17
17
  label: 'Distributivité double',
18
18
  levels: ['3ème', '2nde', '1reTech'],
19
19
  sections: ['Calcul littéral'],
@@ -74,6 +74,7 @@ function getDoubleDistributivityQuestion() {
74
74
  return (0, shuffle_1.shuffle)(res);
75
75
  };
76
76
  return {
77
+ instruction: `Développer et réduire : $${statementTree.toTex()}$`,
77
78
  startStatement: statementTree.toTex(),
78
79
  answer: answerTree.toTex(),
79
80
  keys: ['x'],
@@ -1 +1 @@
1
- {"version":3,"file":"firstIdentity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/firstIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY/E,eAAO,MAAM,aAAa,EAAE,YAY3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAsEnD"}
1
+ {"version":3,"file":"firstIdentity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/firstIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY/E,eAAO,MAAM,aAAa,EAAE,YAY3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAuEnD"}
@@ -14,7 +14,7 @@ const uuid_1 = require("uuid");
14
14
  exports.firstIdentity = {
15
15
  id: 'idRmq1',
16
16
  connector: '=',
17
- instruction: 'Développer et réduire :',
17
+ instruction: '',
18
18
  label: 'Identité remarquable $(a+b)^2$',
19
19
  levels: ['3ème', '2nde'],
20
20
  sections: ['Calcul littéral'],
@@ -76,6 +76,7 @@ function getFirstIdentityQuestion() {
76
76
  return (0, shuffle_1.shuffle)(res);
77
77
  };
78
78
  return {
79
+ instruction: `Développer et réduire : $${statementTree.toTex()}$`,
79
80
  startStatement: statementTree.toTex(),
80
81
  answer: answerTree.toTex(),
81
82
  keys: ['x'],
@@ -1 +1 @@
1
- {"version":3,"file":"secondIdentity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/secondIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY/E,eAAO,MAAM,cAAc,EAAE,YAY5B,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,CAuEpD"}
1
+ {"version":3,"file":"secondIdentity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/secondIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY/E,eAAO,MAAM,cAAc,EAAE,YAY5B,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,CAwEpD"}
@@ -14,7 +14,7 @@ const uuid_1 = require("uuid");
14
14
  exports.secondIdentity = {
15
15
  id: 'idRmq2',
16
16
  connector: '=',
17
- instruction: 'Développer et réduire :',
17
+ instruction: '',
18
18
  label: 'Identité remarquable $(a-b)^2$',
19
19
  levels: ['3ème', '2nde'],
20
20
  sections: ['Calcul littéral'],
@@ -77,6 +77,7 @@ function getSecondIdentityQuestion() {
77
77
  return (0, shuffle_1.shuffle)(res);
78
78
  };
79
79
  return {
80
+ instruction: `Développer et réduire : $${statementTree.toTex()}$`,
80
81
  startStatement: statementTree.toTex(),
81
82
  answer: answerTree.toTex(),
82
83
  keys: ['x'],
@@ -1 +1 @@
1
- {"version":3,"file":"simpleDistributivity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/simpleDistributivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW/E,eAAO,MAAM,oBAAoB,EAAE,YAYlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAwE1D"}
1
+ {"version":3,"file":"simpleDistributivity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/simpleDistributivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW/E,eAAO,MAAM,oBAAoB,EAAE,YAYlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAyE1D"}
@@ -13,7 +13,7 @@ const uuid_1 = require("uuid");
13
13
  exports.simpleDistributivity = {
14
14
  id: 'simpleDistri',
15
15
  connector: '=',
16
- instruction: 'Développer et réduire :',
16
+ instruction: '',
17
17
  label: 'Distributivité simple',
18
18
  levels: ['3ème', '2nde', 'CAP', '2ndPro', '1reTech'],
19
19
  sections: ['Calcul littéral'],
@@ -76,6 +76,7 @@ function getSimpleDistributivityQuestion() {
76
76
  return (0, shuffle_1.shuffle)(res);
77
77
  };
78
78
  return {
79
+ instruction: `Développer et réduire : $${statementTree.toTex()}$`,
79
80
  startStatement: statementTree.toTex(),
80
81
  answer: answerTree.toTex(),
81
82
  keys: ['x'],
@@ -1 +1 @@
1
- {"version":3,"file":"thirdIdentity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/thirdIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW/E,eAAO,MAAM,aAAa,EAAE,YAY3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAwEnD"}
1
+ {"version":3,"file":"thirdIdentity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/distributivity/thirdIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW/E,eAAO,MAAM,aAAa,EAAE,YAY3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAyEnD"}
@@ -12,7 +12,7 @@ const uuid_1 = require("uuid");
12
12
  exports.thirdIdentity = {
13
13
  id: 'idRmq3',
14
14
  connector: '=',
15
- instruction: 'Développer et réduire :',
15
+ instruction: '',
16
16
  label: 'Identité remarquable $(a+b)(a-b)$',
17
17
  levels: ['3ème', '2nde'],
18
18
  sections: ['Calcul littéral'],
@@ -76,6 +76,7 @@ function getThirdIdentityQuestion() {
76
76
  return (0, shuffle_1.shuffle)(res);
77
77
  };
78
78
  return {
79
+ instruction: `Développer et réduire : $${statementTree.toTex()}$`,
79
80
  startStatement: statementTree.toTex(),
80
81
  answer: answerTree.toTex(),
81
82
  keys: ['x'],
@@ -1 +1 @@
1
- {"version":3,"file":"equationType1Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType1Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY/E;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAYnC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAoD3D"}
1
+ {"version":3,"file":"equationType1Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType1Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY/E;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAYnC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAqD3D"}
@@ -14,7 +14,7 @@ const uuid_1 = require("uuid");
14
14
  exports.equationType1Exercise = {
15
15
  id: 'equa1',
16
16
  connector: '\\iff',
17
- instruction: 'Résoudre : ',
17
+ instruction: '',
18
18
  label: 'Équations $x+a = b$',
19
19
  levels: ['4ème', '3ème', '2nde', 'CAP', '2ndPro', '1rePro', '1reTech'],
20
20
  sections: ['Équations'],
@@ -62,8 +62,9 @@ function getEquationType1ExerciseQuestion() {
62
62
  return (0, shuffle_1.shuffle)(res);
63
63
  };
64
64
  const question = {
65
+ instruction: `Résoudre : $${tree.toTex()}$`,
65
66
  startStatement: tree.toTex(),
66
- answer: `x = ${solution}`,
67
+ answer: `x=${solution}`,
67
68
  keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
68
69
  getPropositions,
69
70
  answerFormat: 'tex',
@@ -1 +1 @@
1
- {"version":3,"file":"equationType2Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType2Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa/E;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAYnC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAoD3D"}
1
+ {"version":3,"file":"equationType2Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType2Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa/E;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAYnC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAqD3D"}
@@ -16,7 +16,7 @@ const uuid_1 = require("uuid");
16
16
  exports.equationType2Exercise = {
17
17
  id: 'equa2',
18
18
  connector: '\\iff',
19
- instruction: 'Résoudre : ',
19
+ instruction: '',
20
20
  label: 'Équations $ax=b$',
21
21
  levels: ['4ème', '3ème', '2nde', 'CAP', '2ndPro', '1rePro', '1reTech'],
22
22
  sections: ['Équations'],
@@ -60,6 +60,7 @@ function getEquationType2ExerciseQuestion() {
60
60
  return (0, shuffle_1.shuffle)(res);
61
61
  };
62
62
  const question = {
63
+ instruction: `Résoudre : $${tree.toTex()}$`,
63
64
  startStatement: tree.toTex(),
64
65
  answer: answer.toTex(),
65
66
  keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
@@ -1 +1 @@
1
- {"version":3,"file":"equationType3Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType3Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa/E;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAanC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAwD3D"}
1
+ {"version":3,"file":"equationType3Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType3Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa/E;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAanC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAyD3D"}