math-exercises 3.0.215 → 3.0.217

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 (128) hide show
  1. package/lib/exercises/math/arithmetic/whichDayInXDays.d.ts.map +1 -1
  2. package/lib/exercises/math/arithmetic/whichDayInXDays.js +2 -1
  3. package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.d.ts.map +1 -1
  4. package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.js +19 -32
  5. package/lib/exercises/math/complex/unitRoots/giveOneSolutionToComplexPowNEqualsOne.js +1 -1
  6. package/lib/exercises/math/conversion/clock/index.d.ts +0 -1
  7. package/lib/exercises/math/conversion/clock/index.d.ts.map +1 -1
  8. package/lib/exercises/math/conversion/clock/index.js +1 -1
  9. package/lib/exercises/math/derivation/derivative/trigo/sinCosDerivativeRewriteUsingCos2PlusSin2Equals1.js +2 -2
  10. package/lib/exercises/math/graphs/adjacentMatrixPath.d.ts +10 -0
  11. package/lib/exercises/math/graphs/adjacentMatrixPath.d.ts.map +1 -0
  12. package/lib/exercises/math/graphs/adjacentMatrixPath.js +89 -0
  13. package/lib/exercises/math/graphs/edgesNumberFromSummitsDegrees.d.ts +7 -0
  14. package/lib/exercises/math/graphs/edgesNumberFromSummitsDegrees.d.ts.map +1 -0
  15. package/lib/exercises/math/graphs/edgesNumberFromSummitsDegrees.js +98 -0
  16. package/lib/exercises/math/graphs/eulerianChainFromAdjacentMatrix.d.ts +8 -0
  17. package/lib/exercises/math/graphs/eulerianChainFromAdjacentMatrix.d.ts.map +1 -0
  18. package/lib/exercises/math/graphs/eulerianChainFromAdjacentMatrix.js +96 -0
  19. package/lib/exercises/math/graphs/graphsChainOrPathOfLengthN.d.ts +15 -0
  20. package/lib/exercises/math/graphs/graphsChainOrPathOfLengthN.d.ts.map +1 -0
  21. package/lib/exercises/math/graphs/graphsChainOrPathOfLengthN.js +262 -0
  22. package/lib/exercises/math/graphs/graphsCheckIsConnectedGraph.d.ts +11 -0
  23. package/lib/exercises/math/graphs/graphsCheckIsConnectedGraph.d.ts.map +1 -0
  24. package/lib/exercises/math/graphs/graphsCheckIsConnectedGraph.js +178 -0
  25. package/lib/exercises/math/graphs/graphsCheckIsConnectedUndirectedGraph.d.ts +11 -0
  26. package/lib/exercises/math/graphs/graphsCheckIsConnectedUndirectedGraph.d.ts.map +1 -0
  27. package/lib/exercises/math/graphs/graphsCheckIsConnectedUndirectedGraph.js +178 -0
  28. package/lib/exercises/math/graphs/graphsCheckIsSameGraph.d.ts +19 -0
  29. package/lib/exercises/math/graphs/graphsCheckIsSameGraph.d.ts.map +1 -0
  30. package/lib/exercises/math/graphs/graphsCheckIsSameGraph.js +301 -0
  31. package/lib/exercises/math/graphs/graphsCheckIsVerticesAdjacent.d.ts +16 -0
  32. package/lib/exercises/math/graphs/graphsCheckIsVerticesAdjacent.d.ts.map +1 -0
  33. package/lib/exercises/math/graphs/graphsCheckIsVerticesAdjacent.js +207 -0
  34. package/lib/exercises/math/graphs/graphsDegreeOfVertex.d.ts +15 -0
  35. package/lib/exercises/math/graphs/graphsDegreeOfVertex.d.ts.map +1 -0
  36. package/lib/exercises/math/graphs/graphsDegreeOfVertex.js +232 -0
  37. package/lib/exercises/math/graphs/graphsOrderOfGraph.d.ts +14 -0
  38. package/lib/exercises/math/graphs/graphsOrderOfGraph.d.ts.map +1 -0
  39. package/lib/exercises/math/graphs/graphsOrderOfGraph.js +222 -0
  40. package/lib/exercises/math/graphs/index.d.ts +10 -0
  41. package/lib/exercises/math/graphs/index.d.ts.map +1 -0
  42. package/lib/exercises/math/graphs/index.js +9 -0
  43. package/lib/exercises/math/index.d.ts +1 -0
  44. package/lib/exercises/math/index.d.ts.map +1 -1
  45. package/lib/exercises/math/index.js +1 -0
  46. package/lib/exercises/math/integration/fromExpr/integralFromExpr.d.ts.map +1 -1
  47. package/lib/exercises/math/integration/fromExpr/integralFromExpr.js +2 -0
  48. package/lib/exercises/math/matrices/areMatricesInverse.d.ts +9 -0
  49. package/lib/exercises/math/matrices/areMatricesInverse.d.ts.map +1 -0
  50. package/lib/exercises/math/matrices/areMatricesInverse.js +106 -0
  51. package/lib/exercises/math/matrices/computeFixedMatrixInRecurrenceSequence.d.ts +9 -0
  52. package/lib/exercises/math/matrices/computeFixedMatrixInRecurrenceSequence.d.ts.map +1 -0
  53. package/lib/exercises/math/matrices/computeFixedMatrixInRecurrenceSequence.js +144 -0
  54. package/lib/exercises/math/matrices/findInversedMatrixFromSystem.d.ts +8 -0
  55. package/lib/exercises/math/matrices/findInversedMatrixFromSystem.d.ts.map +1 -0
  56. package/lib/exercises/math/matrices/findInversedMatrixFromSystem.js +148 -0
  57. package/lib/exercises/math/matrices/index.d.ts +12 -0
  58. package/lib/exercises/math/matrices/index.d.ts.map +1 -1
  59. package/lib/exercises/math/matrices/index.js +12 -0
  60. package/lib/exercises/math/matrices/isMatrixTransitionMatrix.d.ts +8 -0
  61. package/lib/exercises/math/matrices/isMatrixTransitionMatrix.d.ts.map +1 -0
  62. package/lib/exercises/math/matrices/isMatrixTransitionMatrix.js +132 -0
  63. package/lib/exercises/math/matrices/matrixBuildMatrixFromCoefficients.d.ts +8 -0
  64. package/lib/exercises/math/matrices/matrixBuildMatrixFromCoefficients.d.ts.map +1 -0
  65. package/lib/exercises/math/matrices/matrixBuildMatrixFromCoefficients.js +152 -0
  66. package/lib/exercises/math/matrices/matrixCheckIsSymmetrical.d.ts +8 -0
  67. package/lib/exercises/math/matrices/matrixCheckIsSymmetrical.d.ts.map +1 -0
  68. package/lib/exercises/math/matrices/matrixCheckIsSymmetrical.js +155 -0
  69. package/lib/exercises/math/matrices/matrixComputeDetOfMat2.d.ts +8 -0
  70. package/lib/exercises/math/matrices/matrixComputeDetOfMat2.d.ts.map +1 -0
  71. package/lib/exercises/math/matrices/matrixComputeDetOfMat2.js +142 -0
  72. package/lib/exercises/math/matrices/matrixComputeInverseOfMat2.d.ts +8 -0
  73. package/lib/exercises/math/matrices/matrixComputeInverseOfMat2.d.ts.map +1 -0
  74. package/lib/exercises/math/matrices/matrixComputeInverseOfMat2.js +237 -0
  75. package/lib/exercises/math/matrices/matrixComputeLinearCombination.d.ts +15 -0
  76. package/lib/exercises/math/matrices/matrixComputeLinearCombination.d.ts.map +1 -0
  77. package/lib/exercises/math/matrices/matrixComputeLinearCombination.js +232 -0
  78. package/lib/exercises/math/matrices/matrixComputePower.d.ts +12 -0
  79. package/lib/exercises/math/matrices/matrixComputePower.d.ts.map +1 -0
  80. package/lib/exercises/math/matrices/matrixComputePower.js +230 -0
  81. package/lib/exercises/math/matrices/matrixComputeProduct.d.ts +9 -0
  82. package/lib/exercises/math/matrices/matrixComputeProduct.d.ts.map +1 -0
  83. package/lib/exercises/math/matrices/matrixComputeProduct.js +178 -0
  84. package/lib/exercises/math/matrices/writeMatrixAssociatedToSystem.d.ts +8 -0
  85. package/lib/exercises/math/matrices/writeMatrixAssociatedToSystem.d.ts.map +1 -0
  86. package/lib/exercises/math/matrices/writeMatrixAssociatedToSystem.js +105 -0
  87. package/lib/exercises/math/spaceGeometry/parametricLine/lineLineRelativePositionsFromParametricLines.d.ts.map +1 -1
  88. package/lib/exercises/math/spaceGeometry/parametricLine/lineLineRelativePositionsFromParametricLines.js +56 -3
  89. package/lib/exercises/math/spaceGeometry/planes/findNormalVectorFromPlaneEquation.d.ts.map +1 -1
  90. package/lib/exercises/math/spaceGeometry/planes/findNormalVectorFromPlaneEquation.js +6 -0
  91. package/lib/exercises/vea/matrixVEA.d.ts +2 -0
  92. package/lib/exercises/vea/matrixVEA.d.ts.map +1 -0
  93. package/lib/exercises/vea/matrixVEA.js +1 -0
  94. package/lib/exercises/vea/treeTableVEA.d.ts.map +1 -1
  95. package/lib/exercises/vea/treeTableVEA.js +2 -0
  96. package/lib/index.d.ts +86 -13
  97. package/lib/index.d.ts.map +1 -1
  98. package/lib/math/geometry/point.d.ts.map +1 -1
  99. package/lib/math/geometry/point.js +3 -1
  100. package/lib/math/graphs/graph.d.ts +43 -0
  101. package/lib/math/graphs/graph.d.ts.map +1 -0
  102. package/lib/math/graphs/graph.js +447 -0
  103. package/lib/math/matrices/matrix.d.ts +42 -3
  104. package/lib/math/matrices/matrix.d.ts.map +1 -1
  105. package/lib/math/matrices/matrix.js +173 -7
  106. package/lib/math/matrices/parseMatrix.d.ts +3 -0
  107. package/lib/math/matrices/parseMatrix.d.ts.map +1 -0
  108. package/lib/math/matrices/parseMatrix.js +22 -0
  109. package/lib/math/systems/generalSystem.d.ts +2 -0
  110. package/lib/math/systems/generalSystem.d.ts.map +1 -1
  111. package/lib/math/systems/generalSystem.js +5 -0
  112. package/lib/math/utils/graphs/graphRenderer.d.ts +25 -0
  113. package/lib/math/utils/graphs/graphRenderer.d.ts.map +1 -0
  114. package/lib/math/utils/graphs/graphRenderer.js +123 -0
  115. package/lib/playground.d.ts +6 -1
  116. package/lib/playground.d.ts.map +1 -1
  117. package/lib/playground.js +6 -5
  118. package/lib/tree/parsers/latexParser.d.ts +1 -1
  119. package/lib/tree/utilities/nodeSimplifier.d.ts +1 -1
  120. package/lib/types/keyIds.d.ts +2 -0
  121. package/lib/types/keyIds.d.ts.map +1 -1
  122. package/lib/utils/arrays/arrayChunks.d.ts +9 -0
  123. package/lib/utils/arrays/arrayChunks.d.ts.map +1 -0
  124. package/lib/utils/arrays/arrayChunks.js +34 -0
  125. package/lib/utils/strings/ordinalSuffixed.d.ts +2 -0
  126. package/lib/utils/strings/ordinalSuffixed.d.ts.map +1 -0
  127. package/lib/utils/strings/ordinalSuffixed.js +5 -0
  128. package/package.json +7 -1
@@ -0,0 +1,105 @@
1
+ import { addValidProp, shuffleProps, propWhile, tryToAddWrongProp, } from "../../../exercises/exercise.js";
2
+ import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
3
+ import { Matrix, MatrixConstructor } from "../../../math/matrices/matrix.js";
4
+ import { parseMatrix } from "../../../math/matrices/parseMatrix.js";
5
+ import { GeneralSystemConstructor, } from "../../../math/systems/generalSystem.js";
6
+ import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
7
+ const getPropositions = (n, { answer }) => {
8
+ const propositions = [];
9
+ addValidProp(propositions, answer);
10
+ propWhile(propositions, n, () => {
11
+ tryToAddWrongProp(propositions, MatrixConstructor.random(2, 2).toTex());
12
+ });
13
+ return shuffleProps(propositions, n);
14
+ };
15
+ const getAnswer = (identifiers) => {
16
+ const { systemIds } = identifiers;
17
+ const system = GeneralSystemConstructor.fromIdentifiers(systemIds);
18
+ const matrix = system.getMatrix();
19
+ return matrix.toTex();
20
+ };
21
+ const getInstruction = (identifiers) => {
22
+ const { systemIds } = identifiers;
23
+ const system = GeneralSystemConstructor.fromIdentifiers(systemIds);
24
+ return `On considère le système $(S)$ suivant :
25
+
26
+ $$
27
+ ${system.toTex()}
28
+ $$
29
+
30
+ On cherche à écrire ce système sous forme matricielle :
31
+
32
+ $$
33
+ AX = B
34
+ $$
35
+
36
+ avec $X = \\begin{pmatrix}x\\\\ y\\end{pmatrix}$ et $B = \\begin{pmatrix}${system.coeffs[0][2].toTex()}\\\\ ${system.coeffs[1][2].toTex()}\\end{pmatrix}$.
37
+
38
+
39
+ Écrire $A$.`;
40
+ };
41
+ const getHint = () => {
42
+ return `En faisant le produit de $A$ par $X$, on doit obtenir la partie gauche du système.`;
43
+ };
44
+ const getCorrection = (identifiers) => {
45
+ const { systemIds } = identifiers;
46
+ const system = GeneralSystemConstructor.fromIdentifiers(systemIds);
47
+ const coeffs = system.coeffs.map((row) => row.slice(0, 2));
48
+ const matrix = new Matrix(coeffs).toTex();
49
+ return `En posant $X = \\begin{pmatrix}x\\\\ y\\end{pmatrix}$, $B = \\begin{pmatrix}${system.coeffs[0][2].toTex()}\\\\ ${system.coeffs[1][2].toTex()}\\end{pmatrix}$ et :
50
+
51
+ $$
52
+ A = ${matrix}
53
+ $$
54
+
55
+ on obtient bien $(S)\\iff AX=B$.`;
56
+ };
57
+ const getKeys = () => {
58
+ return ["mat-2-2"];
59
+ };
60
+ const isAnswerValid = (ans, { answer }) => {
61
+ try {
62
+ const matAns = parseMatrix(ans);
63
+ const matAnswer = parseMatrix(answer);
64
+ return matAns.equals(matAnswer);
65
+ }
66
+ catch (err) {
67
+ return handleVEAError(err);
68
+ }
69
+ };
70
+ const getWriteMatrixAssociatedToSystemQuestion = () => {
71
+ const sys = GeneralSystemConstructor.random();
72
+ const identifiers = {
73
+ systemIds: sys.toIdentifiers(),
74
+ };
75
+ return getQuestionFromIdentifiers(identifiers);
76
+ };
77
+ const getQuestionFromIdentifiers = (identifiers) => {
78
+ return {
79
+ answer: getAnswer(identifiers),
80
+ instruction: getInstruction(identifiers),
81
+ keys: getKeys(identifiers),
82
+ answerFormat: "tex",
83
+ identifiers,
84
+ hint: getHint(identifiers),
85
+ correction: getCorrection(identifiers),
86
+ };
87
+ };
88
+ export const writeMatrixAssociatedToSystem = {
89
+ id: "writeMatrixAssociatedToSystem",
90
+ connector: "=",
91
+ label: "Écrire la matrice associée à un système d'équations linéaires",
92
+ isSingleStep: true,
93
+ generator: (nb, opts) => getDistinctQuestions(() => getWriteMatrixAssociatedToSystemQuestion(opts), nb),
94
+ qcmTimer: 60,
95
+ freeTimer: 60,
96
+ getPropositions,
97
+ isAnswerValid,
98
+ subject: "Mathématiques",
99
+ getInstruction,
100
+ getHint,
101
+ getCorrection,
102
+ getAnswer,
103
+ getQuestionFromIdentifiers,
104
+ hasHintAndCorrection: true,
105
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"lineLineRelativePositionsFromParametricLines.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/spaceGeometry/parametricLine/lineLineRelativePositionsFromParametricLines.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAGL,qBAAqB,EACtB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAGL,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;AAgH5C,KAAK,YAAY,GAAG;IAClB,aAAa,EAAE,qBAAqB,CAAC;IACrC,cAAc,EAAE,sBAAsB,CAAC;CACxC,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,eAAe,EAAE,qBAAqB,EAAE,CAAC;IACzC,YAAY,EAAE,YAAY,EAAE,CAAC;CAC9B,CAAC;AAyTF,eAAO,MAAM,4CAA4C,EAAE,QAAQ,CAAC,WAAW,CAoB5E,CAAC"}
1
+ {"version":3,"file":"lineLineRelativePositionsFromParametricLines.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/spaceGeometry/parametricLine/lineLineRelativePositionsFromParametricLines.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAGL,qBAAqB,EACtB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAGL,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;AAgH5C,KAAK,YAAY,GAAG;IAClB,aAAa,EAAE,qBAAqB,CAAC;IACrC,cAAc,EAAE,sBAAsB,CAAC;CACxC,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,eAAe,EAAE,qBAAqB,EAAE,CAAC;IACzC,YAAY,EAAE,YAAY,EAAE,CAAC;CAC9B,CAAC;AA6XF,eAAO,MAAM,4CAA4C,EAAE,QAAQ,CAAC,WAAW,CAoB5E,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { addValidProp, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
2
2
  import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { ParametricLine } from "../../../../math/geometry/parametricLine.js";
4
- import { SpacePointConstructor, } from "../../../../math/geometry/spacePoint.js";
5
- import { SpaceVectorConstructor, } from "../../../../math/geometry/spaceVector.js";
4
+ import { SpacePoint, SpacePointConstructor, } from "../../../../math/geometry/spacePoint.js";
5
+ import { SpaceVector, SpaceVectorConstructor, } from "../../../../math/geometry/spaceVector.js";
6
6
  import { nodeBySubstitutingVar } from "../../../../math/utils/functions/functionComposition.js";
7
7
  import { randint } from "../../../../math/utils/random/randint.js";
8
8
  import { frac } from "../../../../tree/nodes/operators/fractionNode.js";
@@ -293,8 +293,61 @@ const createRandomIdentifiers = () => {
293
293
  };
294
294
  return identifiers;
295
295
  };
296
+ const isIdentifiersQCPassed = (identifiers) => {
297
+ const isExploding = (identifiers) => {
298
+ let isExploding = false;
299
+ try {
300
+ //ensure only one valid proposition
301
+ const n = 4;
302
+ const answer = getAnswer(identifiers);
303
+ const propositions = getPropositions(n, { answer, ...identifiers });
304
+ const nbRightAnswers = propositions.filter((proposition) => proposition.isRightAnswer).length;
305
+ if (nbRightAnswers !== 1) {
306
+ throw new Error("nbRightAnswers !== 1");
307
+ }
308
+ }
309
+ catch (_) {
310
+ isExploding = true;
311
+ }
312
+ return isExploding;
313
+ };
314
+ return !isExploding(identifiers);
315
+ };
316
+ const createQCPassedIdentifiers = () => {
317
+ let identifiers;
318
+ let counter = -1;
319
+ let isValid = false;
320
+ while (!isValid && counter < 100) {
321
+ counter++;
322
+ const identifiersCandidate = createRandomIdentifiers();
323
+ isValid = isIdentifiersQCPassed(identifiersCandidate);
324
+ if (isValid) {
325
+ identifiers = identifiersCandidate;
326
+ }
327
+ }
328
+ if (!isValid) {
329
+ const vec1 = new SpaceVector("v1", (1).toTree(), (0).toTree(), (0).toTree());
330
+ const vec2 = new SpaceVector("v2", (2).toTree(), (0).toTree(), (0).toTree());
331
+ const A = new SpacePoint("A", (0).toTree(), (1).toTree(), (0).toTree());
332
+ const B = new SpacePoint("B", (0).toTree(), (0).toTree(), (2).toTree());
333
+ const identifiersDefault = {
334
+ spacePointIdsAB: [A, B].map((spacePoint) => spacePoint.toIdentifiers()),
335
+ spaceLineIds: [
336
+ [A, vec1],
337
+ [B, vec2],
338
+ ].map(([spacePoint, spaceVector]) => {
339
+ return {
340
+ spacePointIds: spacePoint.toIdentifiers(),
341
+ spaceVectorIds: spaceVector.toIdentifiers(),
342
+ };
343
+ }),
344
+ };
345
+ identifiers = identifiersDefault;
346
+ }
347
+ return identifiers;
348
+ };
296
349
  const getLineLineRelativePositionsFromParametricLinesQuestion = () => {
297
- const identifiers = createRandomIdentifiers();
350
+ const identifiers = createQCPassedIdentifiers();
298
351
  return getQuestionFromIdentifiers(identifiers);
299
352
  };
300
353
  const getQuestionFromIdentifiers = (identifiers, _opts) => {
@@ -1 +1 @@
1
- {"version":3,"file":"findNormalVectorFromPlaneEquation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/spaceGeometry/planes/findNormalVectorFromPlaneEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AASrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAsF7C,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,eAAe,CAAC;CACvC,CAAC;AA+QF,eAAO,MAAM,iCAAiC,EAAE,QAAQ,CAAC,WAAW,CAmBnE,CAAC"}
1
+ {"version":3,"file":"findNormalVectorFromPlaneEquation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/spaceGeometry/planes/findNormalVectorFromPlaneEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AASrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAsF7C,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,eAAe,CAAC;CACvC,CAAC;AAuRF,eAAO,MAAM,iCAAiC,EAAE,QAAQ,CAAC,WAAW,CAmBnE,CAAC"}
@@ -140,7 +140,9 @@ const getPropositions = (n, { answer, ...identifiers }) => {
140
140
  }
141
141
  }
142
142
  }
143
+ let counter = -1;
143
144
  propWhile(propositions, n, () => {
145
+ counter++;
144
146
  const nodeFactorW = randint(-4, 5, [0, 1]).toTree();
145
147
  const arr = [nodeA, nodeB, nodeC, nodeD].map((node) => multiply(nodeFactorW, node).simplify({ towardsDistribute: true }));
146
148
  {
@@ -160,6 +162,10 @@ const getPropositions = (n, { answer, ...identifiers }) => {
160
162
  }
161
163
  }
162
164
  }
165
+ if (counter > 50) {
166
+ const identifiersWrong = createRandomIdentifiers();
167
+ tryToAddWrongProp(propositions, getAnswer(identifiersWrong));
168
+ }
163
169
  });
164
170
  return shuffleProps(propositions, n);
165
171
  };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=matrixVEA.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matrixVEA.d.ts","sourceRoot":"","sources":["../../../src/exercises/vea/matrixVEA.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"treeTableVEA.d.ts","sourceRoot":"","sources":["../../../src/exercises/vea/treeTableVEA.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,GACvB,KAAK,MAAM,EAAE,EAAE,EAAE,EAAE,EACnB,aAAa,MAAM,EAAE,EAAE,EAAE,EAAE,YAgB5B,CAAC"}
1
+ {"version":3,"file":"treeTableVEA.d.ts","sourceRoot":"","sources":["../../../src/exercises/vea/treeTableVEA.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,GACvB,KAAK,MAAM,EAAE,EAAE,EAAE,EAAE,EACnB,aAAa,MAAM,EAAE,EAAE,EAAE,EAAE,YAiB5B,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { percentVEA } from "./percentVEA.js";
1
2
  import { rationalVEA } from "./rationalVEA.js";
2
3
  // type Options = {
3
4
  // }
@@ -6,5 +7,6 @@ export const treeTableVEA = (ans, answerTable) => {
6
7
  //les branches peuvent commuter au sein d'un block
7
8
  //les blocks peuvent commuter au sein d'un step
8
9
  return ans.every((step, i) => step.every((block, j) => block.every((branch, k) => branch.every((value, l) => value === answerTable[i][j][k][l] ||
10
+ percentVEA(value, answerTable[i][j][k][l]) ||
9
11
  rationalVEA(value, answerTable[i][j][k][l])))));
10
12
  };
package/lib/index.d.ts CHANGED
@@ -1042,19 +1042,6 @@ declare const mathExercises: (Exercise<{
1042
1042
  minutes: number;
1043
1043
  }, {
1044
1044
  amPmType: string;
1045
- }> | Exercise<{
1046
- dateTimeStart: {
1047
- day: number;
1048
- hours: number;
1049
- minutes: number;
1050
- };
1051
- dateTimeDuration: {
1052
- day: number;
1053
- hours: number;
1054
- minutes: number;
1055
- };
1056
- }, {
1057
- hoursMinutesType: string;
1058
1045
  }> | Exercise<{
1059
1046
  point: import("./math/geometry/point.js").PointIdentifiers;
1060
1047
  }, Record<string, string | boolean | string[]>> | Exercise<{
@@ -3283,6 +3270,41 @@ declare const mathExercises: (Exercise<{
3283
3270
  BjCoeff: number;
3284
3271
  i: number;
3285
3272
  j: number;
3273
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3274
+ matIdsA: import("./math/matrices/matrix.js").MatrixIdentifiers;
3275
+ matIdsB: import("./math/matrices/matrix.js").MatrixIdentifiers;
3276
+ nodeIdsKA: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3277
+ nodeIdsKB: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3278
+ }, {
3279
+ typeLinComb: string;
3280
+ }> | Exercise<{
3281
+ matIdsA: import("./math/matrices/matrix.js").MatrixIdentifiers;
3282
+ matIdsB: import("./math/matrices/matrix.js").MatrixIdentifiers;
3283
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3284
+ matIdsA: import("./math/matrices/matrix.js").MatrixIdentifiers;
3285
+ exponent: number;
3286
+ }, {
3287
+ exponent: string;
3288
+ }> | Exercise<{
3289
+ matIdsA: import("./math/matrices/matrix.js").MatrixIdentifiers;
3290
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3291
+ matIdsA: import("./math/matrices/matrix.js").MatrixIdentifiers;
3292
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3293
+ matIdsA: import("./math/matrices/matrix.js").MatrixIdentifiers;
3294
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3295
+ matIdsA: import("./math/matrices/matrix.js").MatrixIdentifiers;
3296
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3297
+ aIds: import("./math/matrices/matrix.js").MatrixIdentifiers;
3298
+ bIds: import("./math/matrices/matrix.js").MatrixIdentifiers;
3299
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3300
+ systemIds: import("./math/systems/generalSystem.js").GeneralSystemIdentifiers;
3301
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3302
+ systemIds: import("./math/systems/generalSystem.js").GeneralSystemIdentifiers;
3303
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3304
+ matrixIds: import("./math/matrices/matrix.js").MatrixIdentifiers;
3305
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3306
+ aIds: import("./math/matrices/matrix.js").MatrixIdentifiers;
3307
+ bIds: import("./math/matrices/matrix.js").MatrixIdentifiers;
3286
3308
  }, Record<string, string | boolean | string[]>> | Exercise<{
3287
3309
  isPercentToDecimal: boolean;
3288
3310
  nb: number;
@@ -5895,6 +5917,57 @@ declare const mathExercises: (Exercise<{
5895
5917
  nodeIdsInterval: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
5896
5918
  nodeIdsDistanceMax: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
5897
5919
  keyIncomplete: string;
5920
+ }, Record<string, string | boolean | string[]>> | Exercise<{
5921
+ graphIds: import("./math/graphs/graph.js").GraphIdentifiers;
5922
+ graphNodes: import("./math/utils/graphs/graphRenderer.js").GraphNode[];
5923
+ graphEdges: import("./math/utils/graphs/graphRenderer.js").GraphEdge[];
5924
+ }, {
5925
+ graphType: string;
5926
+ }> | Exercise<{
5927
+ graphIds: import("./math/graphs/graph.js").GraphIdentifiers;
5928
+ indexAsked: number;
5929
+ graphNodes: import("./math/utils/graphs/graphRenderer.js").GraphNode[];
5930
+ graphEdges: import("./math/utils/graphs/graphRenderer.js").GraphEdge[];
5931
+ }, {
5932
+ graphType: string;
5933
+ }> | Exercise<{
5934
+ graphIds: import("./math/graphs/graph.js").GraphIdentifiers;
5935
+ nameVertex1: string;
5936
+ nameVertex2: string;
5937
+ graphNodes: import("./math/utils/graphs/graphRenderer.js").GraphNode[];
5938
+ graphEdges: import("./math/utils/graphs/graphRenderer.js").GraphEdge[];
5939
+ }, {
5940
+ graphType: string;
5941
+ }> | Exercise<{
5942
+ graphIds1: import("./math/graphs/graph.js").GraphIdentifiers;
5943
+ graphIds2: import("./math/graphs/graph.js").GraphIdentifiers;
5944
+ graphNodes1: import("./math/utils/graphs/graphRenderer.js").GraphNode[];
5945
+ graphEdges1: import("./math/utils/graphs/graphRenderer.js").GraphEdge[];
5946
+ scale1: number;
5947
+ graphNodes2: import("./math/utils/graphs/graphRenderer.js").GraphNode[];
5948
+ graphEdges2: import("./math/utils/graphs/graphRenderer.js").GraphEdge[];
5949
+ scale2: number;
5950
+ }, {
5951
+ graphType: string;
5952
+ }> | Exercise<{
5953
+ graphIds: import("./math/graphs/graph.js").GraphIdentifiers;
5954
+ graphNodes: import("./math/utils/graphs/graphRenderer.js").GraphNode[];
5955
+ graphEdges: import("./math/utils/graphs/graphRenderer.js").GraphEdge[];
5956
+ }, Record<string, string | boolean | string[]>> | Exercise<{
5957
+ graphIds: import("./math/graphs/graph.js").GraphIdentifiers;
5958
+ lengthAsked: number;
5959
+ graphNodes: import("./math/utils/graphs/graphRenderer.js").GraphNode[];
5960
+ graphEdges: import("./math/utils/graphs/graphRenderer.js").GraphEdge[];
5961
+ }, {
5962
+ graphType: string;
5963
+ }> | Exercise<{
5964
+ degrees: number[];
5965
+ }, Record<string, string | boolean | string[]>> | Exercise<{
5966
+ matrixIds: import("./math/matrices/matrix.js").MatrixIdentifiers;
5967
+ startIndex: number;
5968
+ endIndex: number;
5969
+ }, Record<string, string | boolean | string[]>> | Exercise<{
5970
+ matrixIds: import("./math/matrices/matrix.js").MatrixIdentifiers;
5898
5971
  }, Record<string, string | boolean | string[]>> | Exercise<{
5899
5972
  a: number;
5900
5973
  mod: number;
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AAkB;IAIrD,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,SAAkB;IAI1C,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,SAAkB;IAKhD,QAAQ,CAAC,IAAI,CAAC,EAAE,eAAe;IAG/B,SAAS,CAAC,CAAC,EAAE,aAAa,GAAG,MAAM,EAAE,CAAC,EAAE,aAAa,GAAG,MAAM;CAO/D"}
@@ -160,7 +160,9 @@ export class Point {
160
160
  }
161
161
  toGGBCommand({ isFixed = true, isSelectionnable = false, showLabel = true, style, size, color, label, isVisible = true, } = {}) {
162
162
  const commands = [
163
- `${this.name} = Point({${this.x.toMathString()}, ${this.y.toMathString()}})`,
163
+ `${this.name} = ${isFixed
164
+ ? `Point({${this.x.toMathString()}, ${this.y.toMathString()}})`
165
+ : `(${this.x.toMathString()}, ${this.y.toMathString()})`}`,
164
166
  `SetFixed(${this.name},${isFixed ? "true" : "false"},${isSelectionnable ? "true" : "false"})`,
165
167
  `ShowLabel(${this.name},${showLabel ? "true" : "false"})`,
166
168
  ];
@@ -0,0 +1,43 @@
1
+ import { Matrix, MatrixIdentifiers } from "../matrices/matrix.js";
2
+ export declare abstract class GraphConstructor {
3
+ static randomConnected(nbVertices: number, isSimple?: boolean, //simple === no loop A--A
4
+ isDirected?: boolean, minDensity?: number, poolVertexName?: string[]): Graph;
5
+ static random(nbVertices: number, isSimple?: boolean, //simple === no loop A--A
6
+ isDirected?: boolean, minDensity?: number, poolVertexName?: string[], isConnected?: boolean): Graph;
7
+ static randomChain(nbVertices: number, poolVertexName: string[] | undefined, isDirected: boolean): Graph;
8
+ static graphByMergingSimpleGraphs(arrGraph: Graph[]): Graph;
9
+ static graphByAddingRandomEdge(graph: Graph): Graph;
10
+ static fromIdentifiers(identifiers: GraphIdentifiers): Graph;
11
+ }
12
+ export type GraphIdentifiers = {
13
+ vertexNames: string[];
14
+ matIds: MatrixIdentifiers;
15
+ isDirected: boolean;
16
+ };
17
+ export declare class Graph {
18
+ vertexNames: string[];
19
+ mat: Matrix;
20
+ isDirected: boolean;
21
+ constructor(vertexNames: string[], mat: Matrix, isDirected?: boolean);
22
+ toIdentifiers(): GraphIdentifiers;
23
+ dictConnections(): Record<string, Record<string, boolean>>;
24
+ arrConnection(): [string, string, boolean][];
25
+ density(): number;
26
+ densifyUpTo(minDensity: number): Graph;
27
+ undirectedGraph(): Graph;
28
+ isWeaklyConnected(): boolean;
29
+ getWeaklyConnectedSubgraphCoveringChainsAsArrIndex(): number[][];
30
+ getSomePathsWithNbEdges(nbEdges: number, nbToFindIfPossible: number): number[][];
31
+ /**
32
+ *
33
+ * @param nameVertexTarget
34
+ * @returns [d, d-, d+]
35
+ */
36
+ getArrDegreeOfVertex(nameVertexTarget: string): number[];
37
+ getArrVertexNameAdjacent(nameVertexTarget: string): string[];
38
+ getArrVertexNameAdjacentXComing(nameVertexTarget: string, isIncomingVertices: boolean): string[];
39
+ isValidPath(arrNameVertex: string[]): boolean;
40
+ adjacencyMatrix(): Matrix;
41
+ equals(graph2: Graph): boolean;
42
+ }
43
+ //# sourceMappingURL=graph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../src/math/graphs/graph.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,MAAM,EAEN,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAE/B,8BAAsB,gBAAgB;IACpC,MAAM,CAAC,eAAe,CACpB,UAAU,EAAE,MAAM,EAClB,QAAQ,GAAE,OAAc,EAAE,yBAAyB;IACnD,UAAU,GAAE,OAAe,EAC3B,UAAU,GAAE,MAAa,EAEzB,cAAc,GAAE,MAAM,EAA8B;IA6EtD,MAAM,CAAC,MAAM,CACX,UAAU,EAAE,MAAM,EAClB,QAAQ,GAAE,OAAc,EAAE,yBAAyB;IACnD,UAAU,GAAE,OAAe,EAC3B,UAAU,GAAE,MAAa,EACzB,cAAc,GAAE,MAAM,EAA8B,EACpD,WAAW,GAAE,OAAc;IAkC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