math-exercises 2.2.21 → 2.2.23

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 (144) hide show
  1. package/lib/exercises/exercise.d.ts +22 -0
  2. package/lib/exercises/exercise.d.ts.map +1 -1
  3. package/lib/exercises/math/calcul/arithmetics/divisibiltyCriteria.d.ts +8 -0
  4. package/lib/exercises/math/calcul/arithmetics/divisibiltyCriteria.d.ts.map +1 -0
  5. package/lib/exercises/math/calcul/arithmetics/divisibiltyCriteria.js +107 -0
  6. package/lib/exercises/math/calcul/arithmetics/index.d.ts +1 -0
  7. package/lib/exercises/math/calcul/arithmetics/index.d.ts.map +1 -1
  8. package/lib/exercises/math/calcul/arithmetics/index.js +1 -0
  9. package/lib/exercises/math/calcul/fractions/fractionsSumsSameDenominators.js +1 -1
  10. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.js +1 -1
  11. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivity.js +1 -1
  12. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.js +1 -1
  13. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.js +1 -1
  14. package/lib/exercises/math/calculLitteral/distributivity/index.d.ts +1 -0
  15. package/lib/exercises/math/calculLitteral/distributivity/index.d.ts.map +1 -1
  16. package/lib/exercises/math/calculLitteral/distributivity/index.js +1 -0
  17. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.js +1 -1
  18. package/lib/exercises/math/calculLitteral/distributivity/simpleDistriXCoeff.d.ts +9 -0
  19. package/lib/exercises/math/calculLitteral/distributivity/simpleDistriXCoeff.d.ts.map +1 -0
  20. package/lib/exercises/math/calculLitteral/distributivity/simpleDistriXCoeff.js +113 -0
  21. package/lib/exercises/math/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
  22. package/lib/exercises/math/calculLitteral/distributivity/simpleDistributivity.js +44 -19
  23. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.js +1 -1
  24. package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.js +1 -1
  25. package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.js +1 -1
  26. package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.js +1 -1
  27. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.js +1 -1
  28. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType1.js +1 -1
  29. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType2.js +1 -1
  30. package/lib/exercises/math/calculLitteral/equation/fractionEquation.js +1 -1
  31. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +1 -1
  32. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.js +1 -1
  33. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.js +1 -1
  34. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.js +1 -1
  35. package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
  36. package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.js +0 -1
  37. package/lib/exercises/math/calculLitteral/factorisation/factoType2.d.ts +11 -0
  38. package/lib/exercises/math/calculLitteral/factorisation/factoType2.d.ts.map +1 -0
  39. package/lib/exercises/math/calculLitteral/factorisation/factoType2.js +110 -0
  40. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.js +1 -1
  41. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.js +1 -1
  42. package/lib/exercises/math/calculLitteral/factorisation/index.d.ts +1 -0
  43. package/lib/exercises/math/calculLitteral/factorisation/index.d.ts.map +1 -1
  44. package/lib/exercises/math/calculLitteral/factorisation/index.js +1 -0
  45. package/lib/exercises/math/derivation/index.d.ts +0 -1
  46. package/lib/exercises/math/derivation/index.d.ts.map +1 -1
  47. package/lib/exercises/math/derivation/index.js +0 -1
  48. package/lib/exercises/math/derivation/tangent/derivativeNumberReading.d.ts +8 -0
  49. package/lib/exercises/math/derivation/tangent/derivativeNumberReading.d.ts.map +1 -0
  50. package/lib/exercises/math/derivation/tangent/derivativeNumberReading.js +102 -0
  51. package/lib/exercises/math/derivation/tangent/derivativeTangentEquationReading.d.ts +42 -0
  52. package/lib/exercises/math/derivation/tangent/derivativeTangentEquationReading.d.ts.map +1 -0
  53. package/lib/exercises/math/derivation/tangent/derivativeTangentEquationReading.js +231 -0
  54. package/lib/exercises/math/derivation/tangent/index.d.ts +2 -0
  55. package/lib/exercises/math/derivation/tangent/index.d.ts.map +1 -1
  56. package/lib/exercises/math/derivation/tangent/index.js +2 -0
  57. package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.js +1 -1
  58. package/lib/exercises/math/geometry/cartesian/pointCoordinates.d.ts.map +1 -1
  59. package/lib/exercises/math/geometry/cartesian/pointCoordinates.js +1 -0
  60. package/lib/exercises/math/geometry/cartesian/pointCoordinatesNoAxisNumbers.d.ts.map +1 -1
  61. package/lib/exercises/math/geometry/cartesian/pointCoordinatesNoAxisNumbers.js +1 -1
  62. package/lib/exercises/math/geometry/cartesian/pointCoordinatesNoOrthonorm.d.ts.map +1 -1
  63. package/lib/exercises/math/geometry/cartesian/pointCoordinatesNoOrthonorm.js +1 -0
  64. package/lib/exercises/math/geometry/shapes/basicShapesNaming.d.ts.map +1 -1
  65. package/lib/exercises/math/geometry/shapes/basicShapesNaming.js +9 -17
  66. package/lib/exercises/math/geometry/vectors/index.d.ts +1 -2
  67. package/lib/exercises/math/geometry/vectors/index.d.ts.map +1 -1
  68. package/lib/exercises/math/geometry/vectors/index.js +1 -2
  69. package/lib/exercises/math/geometry/vectors/scalarProduct/index.d.ts +3 -0
  70. package/lib/exercises/math/geometry/vectors/scalarProduct/index.d.ts.map +1 -0
  71. package/lib/exercises/math/geometry/vectors/scalarProduct/index.js +19 -0
  72. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOrthoInSquare.d.ts +9 -0
  73. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOrthoInSquare.d.ts.map +1 -0
  74. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOrthoInSquare.js +136 -0
  75. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCoords.d.ts +8 -0
  76. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCoords.d.ts.map +1 -0
  77. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCoords.js +60 -0
  78. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.d.ts +9 -0
  79. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.d.ts.map +1 -0
  80. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.js +67 -0
  81. package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.js +1 -1
  82. package/lib/exercises/math/percent/cmToEvolution.js +1 -1
  83. package/lib/exercises/math/powers/powersDivision.js +1 -1
  84. package/lib/exercises/math/powers/powersProduct.js +1 -1
  85. package/lib/exercises/math/probaStat/calculateProbaOfBinomialDistribution.js +1 -1
  86. package/lib/exercises/math/probaStat/conditionalProbability.js +1 -1
  87. package/lib/exercises/math/probaStat/expectedValueOfBinomialProba.js +1 -1
  88. package/lib/exercises/math/probaStat/varianceOfBinomialProba.js +1 -1
  89. package/lib/exercises/math/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +1 -1
  90. package/lib/exercises/math/sequences/arithmetic/arithmeticFindTerm.js +1 -1
  91. package/lib/exercises/math/sequences/geometric/geometricExplicitFormulaUsage.js +1 -1
  92. package/lib/exercises/math/sequences/geometric/geometricFindTerm.js +1 -1
  93. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.js +1 -1
  94. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorNormCalculation.js +1 -1
  95. package/lib/exercises/math/trigonometry/arcValue.js +1 -1
  96. package/lib/exercises/pc/index.d.ts +3 -3
  97. package/lib/exercises/pc/index.d.ts.map +1 -1
  98. package/lib/exercises/pc/index.js +3 -3
  99. package/lib/index.d.ts +27 -9
  100. package/lib/index.d.ts.map +1 -1
  101. package/lib/math/geometry/line.d.ts +1 -0
  102. package/lib/math/geometry/line.d.ts.map +1 -1
  103. package/lib/math/geometry/line.js +3 -0
  104. package/lib/math/geometry/point.d.ts.map +1 -1
  105. package/lib/math/geometry/point.js +1 -0
  106. package/lib/math/polynomials/polynomial.js +1 -1
  107. package/lib/math/polynomials/trinom.d.ts +5 -0
  108. package/lib/math/polynomials/trinom.d.ts.map +1 -1
  109. package/lib/math/polynomials/trinom.js +12 -0
  110. package/lib/playground.d.ts.map +1 -1
  111. package/lib/playground.js +10 -12
  112. package/lib/prototypesEnhancement.d.ts +2 -1
  113. package/lib/prototypesEnhancement.d.ts.map +1 -1
  114. package/lib/prototypesEnhancement.js +2 -2
  115. package/lib/server.d.ts.map +1 -1
  116. package/lib/tree/nodes/node.d.ts +2 -0
  117. package/lib/tree/nodes/node.d.ts.map +1 -1
  118. package/lib/tree/nodes/numbers/numberNode.d.ts +4 -3
  119. package/lib/tree/nodes/numbers/numberNode.d.ts.map +1 -1
  120. package/lib/tree/nodes/numbers/numberNode.js +7 -3
  121. package/lib/tree/nodes/operators/addNode.d.ts +2 -2
  122. package/lib/tree/nodes/operators/addNode.d.ts.map +1 -1
  123. package/lib/tree/nodes/operators/addNode.js +12 -6
  124. package/lib/tree/nodes/operators/multiplyNode.d.ts +2 -1
  125. package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
  126. package/lib/tree/nodes/operators/multiplyNode.js +16 -11
  127. package/lib/tree/nodes/operators/substractNode.d.ts +4 -3
  128. package/lib/tree/nodes/operators/substractNode.d.ts.map +1 -1
  129. package/lib/tree/nodes/operators/substractNode.js +12 -5
  130. package/lib/tree/parsers/affineParser.d.ts +3 -0
  131. package/lib/tree/parsers/affineParser.d.ts.map +1 -0
  132. package/lib/tree/parsers/affineParser.js +26 -0
  133. package/lib/tree/parsers/monomParser.d.ts +2 -0
  134. package/lib/tree/parsers/monomParser.d.ts.map +1 -0
  135. package/lib/tree/parsers/monomParser.js +5 -0
  136. package/lib/types/keyIds.d.ts +1 -1
  137. package/lib/types/keyIds.d.ts.map +1 -1
  138. package/lib/utils/latex/alignTex.d.ts +2 -0
  139. package/lib/utils/latex/alignTex.d.ts.map +1 -0
  140. package/lib/utils/latex/alignTex.js +20 -0
  141. package/lib/utils/latex/colorize.d.ts +2 -0
  142. package/lib/utils/latex/colorize.d.ts.map +1 -0
  143. package/lib/utils/latex/colorize.js +9 -0
  144. package/package.json +4 -1
@@ -17,6 +17,7 @@ const getPointCoordinatesQuestion = () => {
17
17
  const commands = [
18
18
  `A = (${x}, ${y})`,
19
19
  `ShowLabel(A, true)`,
20
+ "SetPointStyle(A, 1)",
20
21
  `SetVisibleInView(A, 1, true)`,
21
22
  `SetCoords(A, ${x}, ${y})`,
22
23
  `SetPointStyle(A, 0)`,
@@ -1 +1 @@
1
- {"version":3,"file":"pointCoordinatesNoAxisNumbers.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/cartesian/pointCoordinatesNoAxisNumbers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAwGF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAc/D,CAAC"}
1
+ {"version":3,"file":"pointCoordinatesNoAxisNumbers.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/cartesian/pointCoordinatesNoAxisNumbers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAyGF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAc/D,CAAC"}
@@ -21,7 +21,7 @@ const getPointCoordinatesNoAxisNumbersQuestion = () => {
21
21
  const commands = [
22
22
  `A = (${x}, ${y})`,
23
23
  `ShowLabel(A, true)`,
24
- // `SetPointStyle(A, 0)`,
24
+ "SetPointStyle(A, 1)",
25
25
  `SetPointSize(A, 4)`,
26
26
  `SetFixed(A, true)`,
27
27
  "O = (0,0)",
@@ -1 +1 @@
1
- {"version":3,"file":"pointCoordinatesNoOrthonorm.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/cartesian/pointCoordinatesNoOrthonorm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAyGF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAc7D,CAAC"}
1
+ {"version":3,"file":"pointCoordinatesNoOrthonorm.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/cartesian/pointCoordinatesNoOrthonorm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA2GF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAc7D,CAAC"}
@@ -24,6 +24,7 @@ const getPointCoordinatesNoAxisNumbersQuestion = () => {
24
24
  `ShowLabel(A, true)`,
25
25
  // `SetPointStyle(A, 0)`,
26
26
  `SetPointSize(A, 4)`,
27
+ "SetPointStyle(A, 1)",
27
28
  `SetFixed(A, true)`,
28
29
  "O = (0,0)",
29
30
  `SetFixed(O, true)`,
@@ -1 +1 @@
1
- {"version":3,"file":"basicShapesNaming.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/shapes/basicShapesNaming.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAsGxD,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAiBnD,CAAC"}
1
+ {"version":3,"file":"basicShapesNaming.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/shapes/basicShapesNaming.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AA+FxD,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAgBnD,CAAC"}
@@ -33,7 +33,7 @@ const getBasicShapesNamingQuestion = () => {
33
33
  default:
34
34
  const line = line_1.LineConstructor.random();
35
35
  commands.push(...line.toGGBCommands(true));
36
- answer = line.name;
36
+ answer = line.toTexNoLeftRight();
37
37
  break;
38
38
  }
39
39
  const ggb = new geogebraConstructor_1.GeogebraConstructor({
@@ -41,26 +41,20 @@ const getBasicShapesNamingQuestion = () => {
41
41
  hideAxes: true,
42
42
  hideGrid: true,
43
43
  });
44
- // const letters = answer.substring(1, answer.length - 1).split("") as KeyId[];
44
+ const letters = answer.substring(1, answer.length - 1).split("");
45
45
  // console.log(letters);
46
46
  const question = {
47
47
  answer,
48
48
  instruction: `Comment se nomme la figure suivante ?`,
49
- // keys: ["lbracket", "rbracket", ...letters],
50
- // keys: [{
51
- // id: "custom",
52
- // label: "[...]",
53
- // labelType: "tex",
54
- // mathfieldInstructions: {
55
- // method: "write",
56
- // content: "[$1]"
57
- // }
58
- // }],
49
+ keys: ["lbracket", "rbracket", ...letters],
59
50
  answerFormat: "tex",
60
51
  identifiers: { type, commands },
61
52
  ggbOptions: ggb.getOptions({
62
53
  coords: [-15, 15, -15, 15],
63
54
  }),
55
+ keyboardOptions: {
56
+ parenthesisShouldNotProduceLeftRight: true,
57
+ },
64
58
  hint: `On rappelle que :
65
59
 
66
60
  - Une longueur se note $AB$ ;
@@ -71,7 +65,7 @@ const getBasicShapesNamingQuestion = () => {
71
65
  correction: `La figure tracée est ${type === 1
72
66
  ? "un segment"
73
67
  : type === 2
74
- ? `une demi-droite d'origine ${startPointName}$`
68
+ ? `une demi-droite d'origine $${startPointName}$`
75
69
  : "une droite"}.
76
70
 
77
71
  Cette figure se nomme donc $${answer}$.`,
@@ -82,14 +76,13 @@ const getPropositions = (n, { answer }) => {
82
76
  const propositions = [];
83
77
  (0, exercise_1.addValidProp)(propositions, answer);
84
78
  const name = answer
85
- .replace("\\left(", "")
86
- .replace("\\right)", "")
79
+ .replace("(", "")
87
80
  .replace("[", "")
88
81
  .replace("]", "")
89
82
  .replace(")", "");
90
83
  (0, exercise_1.tryToAddWrongProp)(propositions, "[" + name + "]");
91
84
  (0, exercise_1.tryToAddWrongProp)(propositions, "[" + name + ")");
92
- (0, exercise_1.tryToAddWrongProp)(propositions, "\\left(" + name + "\\right)");
85
+ (0, exercise_1.tryToAddWrongProp)(propositions, "(" + name + ")");
93
86
  (0, exercise_1.tryToAddWrongProp)(propositions, name);
94
87
  return (0, exercise_1.shuffleProps)(propositions, n);
95
88
  };
@@ -114,7 +107,6 @@ exports.basicShapesNaming = {
114
107
  getPropositions,
115
108
  isAnswerValid,
116
109
  subject: "Mathématiques",
117
- answerType: "QCU",
118
110
  hasGeogebra: true,
119
111
  hasHintAndCorrection: true,
120
112
  };
@@ -1,9 +1,7 @@
1
1
  export * from "./chasles";
2
2
  export * from "./coordinatesReading";
3
3
  export * from "./determinant";
4
- export * from "./scalarProductViaCoords";
5
4
  export * from "./vectorCoordinatesFromTwoPoints";
6
- export * from "./scalarProductViaCos";
7
5
  export * from "./colinearity";
8
6
  export * from "./alignementViaColinearity";
9
7
  export * from "./paralellismViaColinearity";
@@ -14,4 +12,5 @@ export * from "./vectorLinearCombination";
14
12
  export * from "./vectorNormCalculation";
15
13
  export * from "./lineFromDirectorVector";
16
14
  export * from "./drawAVectorInGGB";
15
+ export * from "./scalarProduct";
17
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/vectors/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/vectors/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,kCAAkC,CAAC;AACjD,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
@@ -17,9 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./chasles"), exports);
18
18
  __exportStar(require("./coordinatesReading"), exports);
19
19
  __exportStar(require("./determinant"), exports);
20
- __exportStar(require("./scalarProductViaCoords"), exports);
21
20
  __exportStar(require("./vectorCoordinatesFromTwoPoints"), exports);
22
- __exportStar(require("./scalarProductViaCos"), exports);
23
21
  __exportStar(require("./colinearity"), exports);
24
22
  __exportStar(require("./alignementViaColinearity"), exports);
25
23
  __exportStar(require("./paralellismViaColinearity"), exports);
@@ -30,3 +28,4 @@ __exportStar(require("./vectorLinearCombination"), exports);
30
28
  __exportStar(require("./vectorNormCalculation"), exports);
31
29
  __exportStar(require("./lineFromDirectorVector"), exports);
32
30
  __exportStar(require("./drawAVectorInGGB"), exports);
31
+ __exportStar(require("./scalarProduct"), exports);
@@ -0,0 +1,3 @@
1
+ export * from "./scalarProductViaCoords";
2
+ export * from "./scalarProductViaCos";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/exercises/math/geometry/vectors/scalarProduct/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./scalarProductViaCoords"), exports);
18
+ __exportStar(require("./scalarProductViaCos"), exports);
19
+ // export * from "./scalarProductOrthoInSquare";
@@ -0,0 +1,9 @@
1
+ import { Exercise } from "../../../../../exercises/exercise";
2
+ type Identifiers = {
3
+ c: number;
4
+ vector1Name: string;
5
+ vector2Name: string;
6
+ };
7
+ export declare const scalarProductOrthoInSquare: Exercise<Identifiers>;
8
+ export {};
9
+ //# sourceMappingURL=scalarProductOrthoInSquare.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalarProductOrthoInSquare.d.ts","sourceRoot":"","sources":["../../../../../../src/exercises/math/geometry/vectors/scalarProduct/scalarProductOrthoInSquare.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAkBT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AA4HF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAiB5D,CAAC"}
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scalarProductOrthoInSquare = void 0;
4
+ const exercise_1 = require("../../../../../exercises/exercise");
5
+ const getDistinctQuestions_1 = require("../../../../../exercises/utils/getDistinctQuestions");
6
+ const geogebraConstructor_1 = require("../../../../../geogebra/geogebraConstructor");
7
+ const point_1 = require("../../../../../math/geometry/point");
8
+ const rational_1 = require("../../../../../math/numbers/rationals/rational");
9
+ const randint_1 = require("../../../../../math/utils/random/randint");
10
+ const random_1 = require("../../../../../utils/random");
11
+ const getPoints = (c) => {
12
+ const midC = new rational_1.Rational(c, 2).simplify().toTree();
13
+ const zeroTree = (0).toTree();
14
+ const cTree = c.toTree();
15
+ const points = [
16
+ { name: "A", x: zeroTree, y: zeroTree },
17
+ { name: "I", x: midC, y: zeroTree },
18
+ { name: "B", x: cTree, y: zeroTree },
19
+ { name: "J", x: cTree, y: midC },
20
+ { name: "C", x: cTree, y: cTree },
21
+ { name: "K", x: midC, y: cTree },
22
+ { name: "D", x: zeroTree, y: cTree },
23
+ { name: "L", x: zeroTree, y: midC },
24
+ { name: "O", x: midC, y: midC },
25
+ ];
26
+ return points;
27
+ };
28
+ const buildFromIdentifiers = (identifiers) => { };
29
+ const getPropositions = (n, { answer }) => {
30
+ const propositions = [];
31
+ (0, exercise_1.addValidProp)(propositions, answer);
32
+ while (propositions.length < n) {
33
+ throw Error("QCM not implemented");
34
+ }
35
+ return (0, exercise_1.shuffleProps)(propositions, n);
36
+ };
37
+ const getAnswer = (identifiers) => {
38
+ return Math.random() + "";
39
+ };
40
+ const getInstruction = ({ c, vector1Name, vector2Name, }) => {
41
+ return `$ABCD$ est un carré de côté $${c}$ et de centre $O$. Les points $I$,$J$,$K$ et $L$ sont les milieux respectifs des segments $[AB]$, $[BC]$, $[CD]$ et $[AD]$. Calculer :
42
+
43
+ $$
44
+ \\overrightarrow{${vector1Name}}\\cdot \\overrightarrow{${vector2Name}}
45
+ $$`;
46
+ };
47
+ const getHint = (identifiers) => {
48
+ return "";
49
+ };
50
+ const getCorrection = (identifiers) => {
51
+ return "";
52
+ };
53
+ const getGGBOptions = ({ c }) => {
54
+ const points = getPoints(c).map((d) => new point_1.Point(d.name, d.x, d.y));
55
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({
56
+ commands: [
57
+ ...points.flatMap((p) => p.toGGBCommand()),
58
+ `Polygon(A,B,C,D)`,
59
+ `Segment(A,C)`,
60
+ `Segment(B,D)`,
61
+ ],
62
+ hideAxes: true,
63
+ hideGrid: true,
64
+ });
65
+ return ggb.getOptions({
66
+ coords: [-1, c + 1, -1, c + 1],
67
+ });
68
+ };
69
+ const getKeys = (identifiers) => {
70
+ return [];
71
+ };
72
+ const isAnswerValid = (ans, { answer }) => {
73
+ throw Error("VEA not implemented");
74
+ };
75
+ const getScalarProductOrthoInSquareQuestion = () => {
76
+ const c = (0, randint_1.randint)(1, 10);
77
+ // AB AO
78
+ // AB AK
79
+ // AB AJ
80
+ // AB AC
81
+ //ou
82
+ // AI AO
83
+ // AI AK
84
+ // AI AC
85
+ // AI AJ
86
+ //ou
87
+ // AB IJ
88
+ // AB OC
89
+ // AB LK
90
+ // AB OJ
91
+ // AB LO
92
+ //ou
93
+ // AI IJ
94
+ // AI OC
95
+ // AI LK
96
+ // AI OJ
97
+ // AI LO
98
+ // puis on shuffle dans tous les sens
99
+ const firstPointIndex = (0, random_1.random)([0, 2, 4, 6]); //A,B,C,D
100
+ const isD = firstPointIndex === 6;
101
+ const delta = isD ? 3 : 2;
102
+ const secondPointIndex = (0, random_1.random)([
103
+ (firstPointIndex + delta) % 8,
104
+ (firstPointIndex + 1) % 8,
105
+ ]); //si first=A alors B ou I, idem par translation pour les autres
106
+ const thirdPointIndex = (0, random_1.random)([(1 + delta) % 8, (7 + delta * 8) % 8, 8]);
107
+ const identifiers = { c, vector1Name: "BC", vector2Name: "AC" };
108
+ const question = {
109
+ answer: getAnswer(identifiers),
110
+ instruction: getInstruction(identifiers),
111
+ keys: getKeys(identifiers),
112
+ answerFormat: "tex",
113
+ identifiers,
114
+ hint: getHint(identifiers),
115
+ correction: getCorrection(identifiers),
116
+ ggbOptions: getGGBOptions(identifiers),
117
+ };
118
+ return question;
119
+ };
120
+ exports.scalarProductOrthoInSquare = {
121
+ id: "scalarProductOrthoInSquare",
122
+ connector: "=",
123
+ label: "Produit scalaire par projeté orthogonal (dans un carré)",
124
+ isSingleStep: true,
125
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getScalarProductOrthoInSquareQuestion, nb),
126
+ qcmTimer: 60,
127
+ freeTimer: 60,
128
+ ggbTimer: 60,
129
+ getPropositions,
130
+ isAnswerValid,
131
+ subject: "Mathématiques",
132
+ getHint,
133
+ getCorrection,
134
+ getAnswer,
135
+ getGGBOptions,
136
+ };
@@ -0,0 +1,8 @@
1
+ import { Exercise } from "../../../../../exercises/exercise";
2
+ type Identifiers = {
3
+ uCoords: string[];
4
+ vCoords: string[];
5
+ };
6
+ export declare const scalarProductViaCoords: Exercise<Identifiers>;
7
+ export {};
8
+ //# sourceMappingURL=scalarProductViaCoords.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalarProductViaCoords.d.ts","sourceRoot":"","sources":["../../../../../../src/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCoords.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAoDF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAexD,CAAC"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scalarProductViaCoords = void 0;
4
+ const exercise_1 = require("../../../../../exercises/exercise");
5
+ const getDistinctQuestions_1 = require("../../../../../exercises/utils/getDistinctQuestions");
6
+ const vector_1 = require("../../../../../math/geometry/vector");
7
+ const randTupleInt_1 = require("../../../../../math/utils/random/randTupleInt");
8
+ const randint_1 = require("../../../../../math/utils/random/randint");
9
+ const numberNode_1 = require("../../../../../tree/nodes/numbers/numberNode");
10
+ const shuffle_1 = require("../../../../../utils/shuffle");
11
+ const getScalarProductViaCoordsQuestion = () => {
12
+ const [coords1, coords2] = (0, randTupleInt_1.distinctRandTupleInt)(2, 2, { from: -9, to: 10 });
13
+ const u = new vector_1.Vector("u", new numberNode_1.NumberNode(coords1[0]), new numberNode_1.NumberNode(coords1[1]));
14
+ const v = new vector_1.Vector("v", new numberNode_1.NumberNode(coords2[0]), new numberNode_1.NumberNode(coords2[1]));
15
+ const answer = u.scalarProduct(v).toTex();
16
+ const question = {
17
+ instruction: `Soit $${u.toTexWithCoords()}$ et $${v.toTexWithCoords()}$. Calculer $${u.toTex()}\\cdot ${v.toTex()}$.`,
18
+ startStatement: `${u.toTex()}\\cdot ${v.toTex()}`,
19
+ answer: answer,
20
+ keys: [],
21
+ answerFormat: "tex",
22
+ identifiers: {
23
+ uCoords: [u.x.toTex(), u.y.toTex()],
24
+ vCoords: [v.x.toTex(), v.y.toTex()],
25
+ },
26
+ hint: "Le produit scalaire de deux vecteurs se calcule en multipliant les coordonnées correspondantes et en additionnant les résultats.",
27
+ correction: `Le produit scalaire de $${u.toTex()}$ et $${v.toTex()}$ est calculé comme suit :
28
+
29
+ $$
30
+ (${u.x.toTex()} \\times ${v.x.toTex()}) + (${u.y.toTex()} \\times ${v.y.toTex()}) = ${answer}
31
+ $$`,
32
+ };
33
+ return question;
34
+ };
35
+ const getPropositions = (n, { answer }) => {
36
+ const propositions = [];
37
+ (0, exercise_1.addValidProp)(propositions, answer);
38
+ while (propositions.length < n) {
39
+ (0, exercise_1.tryToAddWrongProp)(propositions, (0, randint_1.randint)(-100, 100, [0]) + "");
40
+ }
41
+ return (0, shuffle_1.shuffle)(propositions);
42
+ };
43
+ const isAnswerValid = (ans, { answer }) => {
44
+ return ans === answer;
45
+ };
46
+ exports.scalarProductViaCoords = {
47
+ id: "scalarProductViaCoords",
48
+ connector: "=",
49
+ isSingleStep: false,
50
+ label: "Calculer un produit scalaire à l'aide des coordonnées",
51
+ levels: ["1reSpé", "TermSpé"],
52
+ sections: ["Vecteurs", "Produit scalaire"],
53
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getScalarProductViaCoordsQuestion, nb),
54
+ qcmTimer: 60,
55
+ freeTimer: 60,
56
+ getPropositions,
57
+ isAnswerValid,
58
+ subject: "Mathématiques",
59
+ hasHintAndCorrection: true,
60
+ };
@@ -0,0 +1,9 @@
1
+ import { Exercise } from "../../../../../exercises/exercise";
2
+ type Identifiers = {
3
+ AB: number;
4
+ AC: number;
5
+ trigoPoint: string;
6
+ };
7
+ export declare const scalarProductViaCos: Exercise<Identifiers>;
8
+ export {};
9
+ //# sourceMappingURL=scalarProductViaCos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalarProductViaCos.d.ts","sourceRoot":"","sources":["../../../../../../src/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAyDF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,WAAW,CAcrD,CAAC"}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scalarProductViaCos = void 0;
4
+ const exercise_1 = require("../../../../../exercises/exercise");
5
+ const getDistinctQuestions_1 = require("../../../../../exercises/utils/getDistinctQuestions");
6
+ const remarkableValue_1 = require("../../../../../math/trigonometry/remarkableValue");
7
+ const remarkableValues_1 = require("../../../../../math/trigonometry/remarkableValues");
8
+ const randint_1 = require("../../../../../math/utils/random/randint");
9
+ const numberNode_1 = require("../../../../../tree/nodes/numbers/numberNode");
10
+ const multiplyNode_1 = require("../../../../../tree/nodes/operators/multiplyNode");
11
+ const randomLetter_1 = require("../../../../../utils/strings/randomLetter");
12
+ const shuffle_1 = require("../../../../../utils/shuffle");
13
+ //|u| |v| cos(u,v)
14
+ const getScalarProductViaCosQuestion = () => {
15
+ const AB = (0, randint_1.randint)(1, 10);
16
+ const AC = (0, randint_1.randint)(1, 10);
17
+ const trigo = remarkableValue_1.RemarkableValueConstructor.mainInterval();
18
+ const answer = new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(AB * AC), trigo.cos)
19
+ .simplify()
20
+ .toTex();
21
+ const letters = [];
22
+ for (let i = 0; i < 3; i++) {
23
+ letters.push((0, randomLetter_1.randomLetter)(true, letters));
24
+ }
25
+ letters.sort((a, b) => a.localeCompare(b));
26
+ const [letterA, letterB, letterC] = letters;
27
+ const question = {
28
+ answer,
29
+ instruction: `Soient trois points $${letterA}$, $${letterB}$ et $${letterC}$ tels que $${letterA}${letterB} = ${AB}$, $${letterA}${letterC}= ${AC}$, et $\\widehat{${letterB}${letterA}${letterC}} = ${trigo.angle.toTex()}$. Calculer $\\overrightarrow{${letterA}${letterB}}\\cdot \\overrightarrow{${letterA}${letterC}}$.`,
30
+ keys: ["pi"],
31
+ answerFormat: "tex",
32
+ identifiers: { AB, AC, trigoPoint: trigo.point },
33
+ };
34
+ return question;
35
+ };
36
+ const getPropositions = (n, { answer, AB, AC, trigoPoint }) => {
37
+ const propositions = [];
38
+ const trigo = remarkableValues_1.remarkableTrigoValues.find((v) => v.point === trigoPoint);
39
+ (0, exercise_1.addValidProp)(propositions, answer);
40
+ (0, exercise_1.tryToAddWrongProp)(propositions, new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(AB * AC), trigo.sin).simplify().toTex());
41
+ const coeff = new numberNode_1.NumberNode(AB * AC);
42
+ while (propositions.length < n) {
43
+ const trigoValue = remarkableValue_1.RemarkableValueConstructor.mainInterval();
44
+ (0, exercise_1.tryToAddWrongProp)(propositions, new multiplyNode_1.MultiplyNode(coeff, trigoValue.sin).simplify().toTex());
45
+ }
46
+ return (0, shuffle_1.shuffle)(propositions);
47
+ };
48
+ const isAnswerValid = (ans, { AB, AC, trigoPoint }) => {
49
+ const trigo = remarkableValues_1.remarkableTrigoValues.find((v) => v.point === trigoPoint);
50
+ const tree = new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(AB * AC), trigo.cos).simplify();
51
+ const texs = tree.toAllValidTexs();
52
+ return texs.includes(ans);
53
+ };
54
+ exports.scalarProductViaCos = {
55
+ id: "scalarProductViaCos",
56
+ connector: "=",
57
+ label: "Calculer un produit scalaire (formule avec $cos$)",
58
+ levels: ["1reSpé"],
59
+ isSingleStep: true,
60
+ sections: ["Vecteurs", "Produit scalaire"],
61
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getScalarProductViaCosQuestion, nb),
62
+ qcmTimer: 60,
63
+ freeTimer: 60,
64
+ getPropositions,
65
+ isAnswerValid,
66
+ subject: "Mathématiques",
67
+ };
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
6
  const randint_1 = require("../../../../math/utils/random/randint");
7
7
  const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
8
- const alignTex_1 = require("../../../../utils/alignTex");
8
+ const alignTex_1 = require("../../../../utils/latex/alignTex");
9
9
  const randomLetter_1 = require("../../../../utils/strings/randomLetter");
10
10
  const getVectorCoordinatesFromTwoPointsQuestion = () => {
11
11
  const A = [(0, randint_1.randint)(-9, 9), (0, randint_1.randint)(-9, 9)];
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
6
6
  const randint_1 = require("../../../math/utils/random/randint");
7
7
  const round_1 = require("../../../math/utils/round");
8
- const alignTex_1 = require("../../../utils/alignTex");
8
+ const alignTex_1 = require("../../../utils/latex/alignTex");
9
9
  const coinFlip_1 = require("../../../utils/coinFlip");
10
10
  const getCmToEvolutionQuestion = () => {
11
11
  const evolution = (0, randint_1.randint)(-99, 101, [0]);
@@ -10,7 +10,7 @@ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
10
10
  const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
11
11
  const powerNode_1 = require("../../../tree/nodes/operators/powerNode");
12
12
  const substractNode_1 = require("../../../tree/nodes/operators/substractNode");
13
- const alignTex_1 = require("../../../utils/alignTex");
13
+ const alignTex_1 = require("../../../utils/latex/alignTex");
14
14
  const shuffle_1 = require("../../../utils/shuffle");
15
15
  const exercise_1 = require("../../exercise");
16
16
  const getDistinctQuestions_1 = require("../../utils/getDistinctQuestions");
@@ -10,7 +10,7 @@ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
10
10
  const addNode_1 = require("../../../tree/nodes/operators/addNode");
11
11
  const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
12
12
  const powerNode_1 = require("../../../tree/nodes/operators/powerNode");
13
- const alignTex_1 = require("../../../utils/alignTex");
13
+ const alignTex_1 = require("../../../utils/latex/alignTex");
14
14
  const shuffle_1 = require("../../../utils/shuffle");
15
15
  const exercise_1 = require("../../exercise");
16
16
  const getDistinctQuestions_1 = require("../../utils/getDistinctQuestions");
@@ -10,7 +10,7 @@ const randint_1 = require("../../../math/utils/random/randint");
10
10
  const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
11
11
  const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
12
12
  const powerNode_1 = require("../../../tree/nodes/operators/powerNode");
13
- const alignTex_1 = require("../../../utils/alignTex");
13
+ const alignTex_1 = require("../../../utils/latex/alignTex");
14
14
  const getCalculateProbaOfBinomialDistributionQuestion = () => {
15
15
  const exercise = generateExercise();
16
16
  const p = new rational_1.Rational(exercise.a, exercise.b);
@@ -6,7 +6,7 @@ const exercise_1 = require("../../exercise");
6
6
  const getDistinctQuestions_1 = require("../../utils/getDistinctQuestions");
7
7
  const round_1 = require("../../../math/utils/round");
8
8
  const shuffle_1 = require("../../../utils/shuffle");
9
- const alignTex_1 = require("../../../utils/alignTex");
9
+ const alignTex_1 = require("../../../utils/latex/alignTex");
10
10
  const getConditionalProbability = () => {
11
11
  let pA, pB, pAB, pA_B, pB_A;
12
12
  let pAStr, pBStr, pABStr, pA_BStr, pB_AStr;
@@ -8,7 +8,7 @@ const randint_1 = require("../../../math/utils/random/randint");
8
8
  const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
9
9
  const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
10
10
  const substractNode_1 = require("../../../tree/nodes/operators/substractNode");
11
- const alignTex_1 = require("../../../utils/alignTex");
11
+ const alignTex_1 = require("../../../utils/latex/alignTex");
12
12
  const getExpectedValueOfBinomialProbaQuestion = () => {
13
13
  const nX = (0, randint_1.randint)(1, 9);
14
14
  const b = (0, randint_1.randint)(2, 11);
@@ -9,7 +9,7 @@ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
9
9
  const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
10
10
  const powerNode_1 = require("../../../tree/nodes/operators/powerNode");
11
11
  const substractNode_1 = require("../../../tree/nodes/operators/substractNode");
12
- const alignTex_1 = require("../../../utils/alignTex");
12
+ const alignTex_1 = require("../../../utils/latex/alignTex");
13
13
  const nbOneNode = new numberNode_1.NumberNode(1);
14
14
  const getVarianceOfBinomialProbaQuestion = () => {
15
15
  const nX = (0, randint_1.randint)(1, 9);
@@ -7,7 +7,7 @@ const polynomial_1 = require("../../../../math/polynomials/polynomial");
7
7
  const randint_1 = require("../../../../math/utils/random/randint");
8
8
  const addNode_1 = require("../../../../tree/nodes/operators/addNode");
9
9
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
10
- const alignTex_1 = require("../../../../utils/alignTex");
10
+ const alignTex_1 = require("../../../../utils/latex/alignTex");
11
11
  const shuffle_1 = require("../../../../utils/shuffle");
12
12
  const getArithmeticExplicitFormulaUsage = () => {
13
13
  const askedRank = (0, randint_1.randint)(0, 10);
@@ -8,7 +8,7 @@ const addNode_1 = require("../../../../tree/nodes/operators/addNode");
8
8
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
9
9
  const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
10
10
  const variableNode_1 = require("../../../../tree/nodes/variables/variableNode");
11
- const alignTex_1 = require("../../../../utils/alignTex");
11
+ const alignTex_1 = require("../../../../utils/latex/alignTex");
12
12
  const random_1 = require("../../../../utils/random");
13
13
  const getArithmeticFindTermQuestion = () => {
14
14
  const firstRank = (0, random_1.random)([0, 1]);
@@ -8,7 +8,7 @@ const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
8
8
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
9
9
  const powerNode_1 = require("../../../../tree/nodes/operators/powerNode");
10
10
  const variableNode_1 = require("../../../../tree/nodes/variables/variableNode");
11
- const alignTex_1 = require("../../../../utils/alignTex");
11
+ const alignTex_1 = require("../../../../utils/latex/alignTex");
12
12
  const shuffle_1 = require("../../../../utils/shuffle");
13
13
  const getGeometricExplicitFormulaUsage = () => {
14
14
  const askedRank = (0, randint_1.randint)(0, 10);
@@ -8,7 +8,7 @@ const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
8
8
  const powerNode_1 = require("../../../../tree/nodes/operators/powerNode");
9
9
  const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
10
10
  const variableNode_1 = require("../../../../tree/nodes/variables/variableNode");
11
- const alignTex_1 = require("../../../../utils/alignTex");
11
+ const alignTex_1 = require("../../../../utils/latex/alignTex");
12
12
  const random_1 = require("../../../../utils/random");
13
13
  const getGeometricFindTermQuestion = () => {
14
14
  const firstRank = (0, random_1.random)([0, 1]);
@@ -6,7 +6,7 @@ const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQ
6
6
  const spacePoint_1 = require("../../../../math/geometry/spacePoint");
7
7
  const spaceVector_1 = require("../../../../math/geometry/spaceVector");
8
8
  const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
9
- const alignTex_1 = require("../../../../utils/alignTex");
9
+ const alignTex_1 = require("../../../../utils/latex/alignTex");
10
10
  const getSpaceVectorCoordinatesFromPointsQuestion = () => {
11
11
  const points = spacePoint_1.SpacePointConstructor.randomDifferent(["A", "B"]);
12
12
  const vector = spaceVector_1.SpaceVectorConstructor.fromPoints(points[0], points[1]);