math-exercises 3.0.100 → 3.0.102

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 (76) hide show
  1. package/lib/exercises/math/calcul/arithmetics/whichMultipleAmI.js +1 -1
  2. package/lib/exercises/math/curve/sqrtCurvePoint.js +3 -3
  3. package/lib/exercises/math/dataRepresentations/barChartReading.d.ts +1 -1
  4. package/lib/exercises/math/dataRepresentations/barChartReading.js +1 -1
  5. package/lib/exercises/math/functions/basics/imageFunction.d.ts.map +1 -1
  6. package/lib/exercises/math/functions/basics/imageFunction.js +8 -8
  7. package/lib/exercises/math/functions/sqrt/compareSqrtValues.js +1 -1
  8. package/lib/exercises/math/geometry/euclidianConstructions/pointImageFromTranslation.d.ts.map +1 -1
  9. package/lib/exercises/math/geometry/euclidianConstructions/pointImageFromTranslation.js +41 -18
  10. package/lib/exercises/math/geometry/index.d.ts +1 -0
  11. package/lib/exercises/math/geometry/index.d.ts.map +1 -1
  12. package/lib/exercises/math/geometry/index.js +1 -0
  13. package/lib/exercises/math/geometry/optimisation/geometryExtremaReadingOnGraph.d.ts +8 -0
  14. package/lib/exercises/math/geometry/optimisation/geometryExtremaReadingOnGraph.d.ts.map +1 -0
  15. package/lib/exercises/math/geometry/optimisation/geometryExtremaReadingOnGraph.js +145 -0
  16. package/lib/exercises/math/geometry/optimisation/index.d.ts +4 -0
  17. package/lib/exercises/math/geometry/optimisation/index.d.ts.map +1 -0
  18. package/lib/exercises/math/geometry/optimisation/index.js +3 -0
  19. package/lib/exercises/math/geometry/optimisation/lengthIntervalOnPicture.d.ts +8 -0
  20. package/lib/exercises/math/geometry/optimisation/lengthIntervalOnPicture.d.ts.map +1 -0
  21. package/lib/exercises/math/geometry/optimisation/lengthIntervalOnPicture.js +93 -0
  22. package/lib/exercises/math/geometry/optimisation/lengthWithXOnPicture.d.ts +8 -0
  23. package/lib/exercises/math/geometry/optimisation/lengthWithXOnPicture.d.ts.map +1 -0
  24. package/lib/exercises/math/geometry/optimisation/lengthWithXOnPicture.js +99 -0
  25. package/lib/exercises/math/geometry/pythagore/index.d.ts +1 -0
  26. package/lib/exercises/math/geometry/pythagore/index.d.ts.map +1 -1
  27. package/lib/exercises/math/geometry/pythagore/index.js +1 -1
  28. package/lib/exercises/math/geometry/pythagore/triangleHeight.d.ts.map +1 -1
  29. package/lib/exercises/math/geometry/pythagore/triangleHeight.js +78 -32
  30. package/lib/exercises/math/geometry/vectors/constructions/traceOppositeVector.d.ts.map +1 -1
  31. package/lib/exercises/math/geometry/vectors/constructions/traceOppositeVector.js +31 -6
  32. package/lib/exercises/math/geometry/vectors/constructions/traceVectorDifference.d.ts.map +1 -1
  33. package/lib/exercises/math/geometry/vectors/constructions/traceVectorDifference.js +50 -10
  34. package/lib/exercises/math/geometry/vectors/constructions/traceVectorMultiple.d.ts.map +1 -1
  35. package/lib/exercises/math/geometry/vectors/constructions/traceVectorMultiple.js +39 -6
  36. package/lib/exercises/math/geometry/vectors/constructions/traceVectorSum.d.ts.map +1 -1
  37. package/lib/exercises/math/geometry/vectors/constructions/traceVectorSum.js +44 -7
  38. package/lib/exercises/math/probaStat/events/describeEvent.js +1 -1
  39. package/lib/exercises/math/probaStat/events/eventNotation.js +1 -1
  40. package/lib/exercises/math/probaStat/randomVariable/randomVariableStandardDeviation.js +4 -4
  41. package/lib/exercises/math/probaStat/stats1var/cumulativeSum.js +1 -1
  42. package/lib/exercises/math/probaStat/stats1var/getQuartileProportionQuestion.js +1 -1
  43. package/lib/exercises/math/probaStat/stats1var/interquartilesList.js +3 -3
  44. package/lib/exercises/math/probaStat/stats1var/interquartilesTable.d.ts.map +1 -1
  45. package/lib/exercises/math/probaStat/stats1var/interquartilesTable.js +22 -7
  46. package/lib/exercises/math/probaStat/stats1var/median.js +1 -1
  47. package/lib/exercises/math/probaStat/stats1var/medianList.js +1 -1
  48. package/lib/exercises/math/probaStat/stats1var/standardDeviationList.js +4 -4
  49. package/lib/exercises/math/probaStat/stats1var/standardDeviationTable.js +4 -4
  50. package/lib/exercises/math/probaStat/unionIntersectionProba.js +1 -1
  51. package/lib/exercises/math/python/inOutCalcul.js +1 -1
  52. package/lib/exercises/math/python/index.d.ts +6 -0
  53. package/lib/exercises/math/python/index.d.ts.map +1 -1
  54. package/lib/exercises/math/python/index.js +6 -0
  55. package/lib/exercises/math/python/pythonForLoopInstructionCompletion.d.ts +9 -0
  56. package/lib/exercises/math/python/pythonForLoopInstructionCompletion.d.ts.map +1 -0
  57. package/lib/exercises/math/python/pythonForLoopInstructionCompletion.js +129 -0
  58. package/lib/exercises/math/python/pythonIfStatementCompletion.d.ts +8 -0
  59. package/lib/exercises/math/python/pythonIfStatementCompletion.d.ts.map +1 -0
  60. package/lib/exercises/math/python/pythonIfStatementCompletion.js +114 -0
  61. package/lib/exercises/math/python/pythonRangeCompletion.d.ts +9 -0
  62. package/lib/exercises/math/python/pythonRangeCompletion.d.ts.map +1 -0
  63. package/lib/exercises/math/python/pythonRangeCompletion.js +105 -0
  64. package/lib/exercises/math/python/pythonSimpleFunctionInstructionCompletion.d.ts +8 -0
  65. package/lib/exercises/math/python/pythonSimpleFunctionInstructionCompletion.d.ts.map +1 -0
  66. package/lib/exercises/math/python/pythonSimpleFunctionInstructionCompletion.js +89 -0
  67. package/lib/exercises/math/python/pythonWhileStatementCompletion.d.ts +7 -0
  68. package/lib/exercises/math/python/pythonWhileStatementCompletion.d.ts.map +1 -0
  69. package/lib/exercises/math/python/pythonWhileStatementCompletion.js +87 -0
  70. package/lib/exercises/math/python/pythonWhileStatementOperationCompletion.d.ts +8 -0
  71. package/lib/exercises/math/python/pythonWhileStatementOperationCompletion.d.ts.map +1 -0
  72. package/lib/exercises/math/python/pythonWhileStatementOperationCompletion.js +120 -0
  73. package/lib/exercises/math/sampling/samplingFrequency.js +1 -1
  74. package/lib/index.d.ts +32 -0
  75. package/lib/index.d.ts.map +1 -1
  76. package/package.json +1 -1
@@ -0,0 +1,89 @@
1
+ import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../exercises/exercise.js";
2
+ import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
3
+ import { randint } from "../../../math/utils/random/randint.js";
4
+ import { add } from "../../../tree/nodes/operators/addNode.js";
5
+ import { multiply } from "../../../tree/nodes/operators/multiplyNode.js";
6
+ import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
7
+ const getPropositions = (n, { answer }) => {
8
+ const propositions = [];
9
+ addValidProp(propositions, answer, "raw");
10
+ tryToAddWrongProp(propositions, answer.replace("*", ""), "raw");
11
+ tryToAddWrongProp(propositions, answer.replace("*", "x"), "raw");
12
+ tryToAddWrongProp(propositions, answer.replace("*", "+"), "raw");
13
+ return shuffleProps(propositions, n);
14
+ };
15
+ const getAnswer = (identifiers) => {
16
+ const { m, p } = identifiers;
17
+ const mString = m < 0 ? m.toString() : `+${m}`;
18
+ return `\`${p}${mString}*a\``;
19
+ };
20
+ const getInstruction = (identifiers) => {
21
+ const { m, p } = identifiers;
22
+ return `La fonction en Python suivante doit permettre, pour un paramètre \`a\` saisi en entrée, de calculer $${add(p, multiply(m, "a").simplify({ forbidFactorize: true })).toTex()}$.
23
+
24
+ Par quoi faut-il remplacer les trois points ?
25
+
26
+ \`\`\`
27
+ def calcul(a):
28
+ return ...
29
+ \`\`\`
30
+ `;
31
+ };
32
+ const getHint = (identifiers) => {
33
+ return `En Python, la multiplication se note \`*\`.`;
34
+ };
35
+ const getCorrection = (identifiers) => {
36
+ const { p, m } = identifiers;
37
+ return `En Python, la multiplication se note \`*\`.
38
+
39
+ L'opération $${add(p, multiply(m, "a").simplify({ forbidFactorize: true })).toTex()}$ se note donc :
40
+
41
+ ${getAnswer(identifiers)}`;
42
+ };
43
+ const getKeys = (identifiers) => {
44
+ return [];
45
+ };
46
+ const isAnswerValid = (ans, { answer }) => {
47
+ try {
48
+ throw Error("VEA not implemented");
49
+ }
50
+ catch (err) {
51
+ return handleVEAError(err);
52
+ }
53
+ };
54
+ const getPythonSimpleFunctionInstructionCompletionQuestion = (ops) => {
55
+ const identifiers = {
56
+ m: randint(-10, 11, [-1, 0, 1]),
57
+ p: randint(-10, 11, [0]),
58
+ };
59
+ return getQuestionFromIdentifiers(identifiers);
60
+ };
61
+ const getQuestionFromIdentifiers = (identifiers) => {
62
+ return {
63
+ answer: getAnswer(identifiers),
64
+ instruction: getInstruction(identifiers),
65
+ keys: getKeys(identifiers),
66
+ answerFormat: "raw",
67
+ identifiers,
68
+ hint: getHint(identifiers),
69
+ correction: getCorrection(identifiers),
70
+ };
71
+ };
72
+ export const pythonSimpleFunctionInstructionCompletion = {
73
+ id: "pythonSimpleFunctionInstructionCompletion",
74
+ label: "Compléter une fonction en Python (calcul simple)",
75
+ isSingleStep: true,
76
+ generator: (nb, opts) => getDistinctQuestions(() => getPythonSimpleFunctionInstructionCompletionQuestion(opts), nb),
77
+ qcmTimer: 60,
78
+ freeTimer: 60,
79
+ getPropositions,
80
+ isAnswerValid,
81
+ subject: "Mathématiques",
82
+ getInstruction,
83
+ getHint,
84
+ getCorrection,
85
+ getAnswer,
86
+ getQuestionFromIdentifiers,
87
+ hasHintAndCorrection: true,
88
+ answerType: "QCU",
89
+ };
@@ -0,0 +1,7 @@
1
+ import { Exercise } from "../../../exercises/exercise.js";
2
+ type Identifiers = {
3
+ threshold: number;
4
+ };
5
+ export declare const pythonWhileStatementCompletion: Exercise<Identifiers>;
6
+ export {};
7
+ //# sourceMappingURL=pythonWhileStatementCompletion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pythonWhileStatementCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonWhileStatementCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAgFF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAsBhE,CAAC"}
@@ -0,0 +1,87 @@
1
+ import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../exercises/exercise.js";
2
+ import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
3
+ import { randint } from "../../../math/utils/random/randint.js";
4
+ import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
5
+ const getPropositions = (n, { answer, threshold }) => {
6
+ const propositions = [];
7
+ addValidProp(propositions, answer, "raw");
8
+ tryToAddWrongProp(propositions, `\`${threshold}\``, "raw");
9
+ tryToAddWrongProp(propositions, `\`x>${threshold}\``, "raw");
10
+ tryToAddWrongProp(propositions, `\`x*3\``, "raw");
11
+ return shuffleProps(propositions, n);
12
+ };
13
+ const getAnswer = (identifiers) => {
14
+ return `\`x<${identifiers.threshold}\``;
15
+ };
16
+ const getInstruction = (identifiers) => {
17
+ return `On considère la fonction en Python ci-dessous. Cette fonction doit permettre, pour un paramètre \`x\` saisi en entrée, de déterminer combien de fois on doit tripler ce nombre pour qu'il dépasse $${identifiers.threshold}$.
18
+
19
+ Par quoi faut-il remplacer les trois points ?
20
+
21
+ \`\`\`
22
+ def boucle(x):
23
+ compt=0
24
+ while ...:
25
+ x=x*3
26
+ compt=compt+1
27
+ return compt
28
+ \`\`\`
29
+ `;
30
+ };
31
+ const getHint = (identifiers) => {
32
+ return `La boucle \`while\` doit s'exécuter tant que \`x\` n'a pas dépassé $${identifiers.threshold}$.`;
33
+ };
34
+ const getCorrection = (identifiers) => {
35
+ return `On veut que la boucle \`while\` s'exécute tant que \`x\` est inférieur à $${identifiers.threshold}$. En python, cela se traduit par :
36
+
37
+ \`\`\`
38
+ while x<${identifiers.threshold}:
39
+ \`\`\`
40
+ `;
41
+ };
42
+ const getKeys = (identifiers) => {
43
+ return ["x", "sup", "inf", "equal"];
44
+ };
45
+ const isAnswerValid = (ans, { answer }) => {
46
+ try {
47
+ return ans === answer;
48
+ }
49
+ catch (err) {
50
+ return handleVEAError(err);
51
+ }
52
+ };
53
+ const getPythonWhileStatementCompletionQuestion = (ops) => {
54
+ const identifiers = {
55
+ threshold: 50 * randint(2, 20),
56
+ };
57
+ return getQuestionFromIdentifiers(identifiers);
58
+ };
59
+ const getQuestionFromIdentifiers = (identifiers) => {
60
+ return {
61
+ answer: getAnswer(identifiers),
62
+ instruction: getInstruction(identifiers),
63
+ keys: getKeys(identifiers),
64
+ answerFormat: "raw",
65
+ identifiers,
66
+ hint: getHint(identifiers),
67
+ correction: getCorrection(identifiers),
68
+ };
69
+ };
70
+ export const pythonWhileStatementCompletion = {
71
+ id: "pythonWhileStatementCompletion",
72
+ label: "Compléter la condition d'une boucle `while` en Python",
73
+ isSingleStep: true,
74
+ generator: (nb, opts) => getDistinctQuestions(() => getPythonWhileStatementCompletionQuestion(opts), nb, 15),
75
+ qcmTimer: 60,
76
+ freeTimer: 60,
77
+ getPropositions,
78
+ isAnswerValid,
79
+ subject: "Mathématiques",
80
+ getInstruction,
81
+ getHint,
82
+ getCorrection,
83
+ getQuestionFromIdentifiers,
84
+ hasHintAndCorrection: true,
85
+ answerType: "QCU",
86
+ maxAllowedQuestions: 15,
87
+ };
@@ -0,0 +1,8 @@
1
+ import { Exercise } from "../../../exercises/exercise.js";
2
+ type Identifiers = {
3
+ operation: string;
4
+ coeff: number;
5
+ };
6
+ export declare const pythonWhileStatementOperationCompletion: Exercise<Identifiers>;
7
+ export {};
8
+ //# sourceMappingURL=pythonWhileStatementOperationCompletion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pythonWhileStatementOperationCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonWhileStatementOperationCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IAEjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAwGF,eAAO,MAAM,uCAAuC,EAAE,QAAQ,CAAC,WAAW,CAsBzE,CAAC"}
@@ -0,0 +1,120 @@
1
+ import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../exercises/exercise.js";
2
+ import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
3
+ import { randint } from "../../../math/utils/random/randint.js";
4
+ import { random } from "../../../utils/alea/random.js";
5
+ import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
6
+ const getPropositions = (n, { answer, operation, coeff }) => {
7
+ const propositions = [];
8
+ addValidProp(propositions, answer, "raw");
9
+ tryToAddWrongProp(propositions, `\`${operation}${coeff}\``, "raw");
10
+ tryToAddWrongProp(propositions, `\`x>1500\``, "raw");
11
+ tryToAddWrongProp(propositions, `\`${coeff}\``, "raw");
12
+ return shuffleProps(propositions, n);
13
+ };
14
+ const getAnswer = (identifiers) => {
15
+ return `\`x${identifiers.operation}${identifiers.coeff}\``;
16
+ };
17
+ const getInstruction = (identifiers) => {
18
+ const { coeff, operation } = identifiers;
19
+ let word = "";
20
+ if (operation === "*") {
21
+ if (coeff === 2)
22
+ word = "doubler ce nombre";
23
+ else if (coeff === 3)
24
+ word = "tripler ce nombre";
25
+ else
26
+ word = `multiplier ce nombre par $${coeff}$`;
27
+ }
28
+ else {
29
+ word = `additionner $${coeff}$ à ce nombre`;
30
+ }
31
+ return `On considère la fonction en Python ci-dessous. Cette fonction doit permettre, pour un paramètre \`x\` saisi en entrée, de déterminer combien de fois on doit ${word} pour qu'il dépasse $1500$.
32
+
33
+ Par quoi faut-il remplacer les trois points ?
34
+
35
+ \`\`\`
36
+ def boucle(x):
37
+ compt=0
38
+ while x<1500:
39
+ x=...
40
+ compt=compt+1
41
+ return compt
42
+ \`\`\`
43
+ `;
44
+ };
45
+ const getHint = (identifiers) => {
46
+ const { coeff, operation } = identifiers;
47
+ return `Sers-toi de cet exemple : en Python, si l'on veut diviser une variable \`a\` par $2$, on écrit :
48
+
49
+ \`\`\`
50
+ a = a/2
51
+ \`\`\``;
52
+ };
53
+ const getCorrection = (identifiers) => {
54
+ const { coeff, operation } = identifiers;
55
+ let word = "";
56
+ if (operation === "*") {
57
+ if (coeff === 2)
58
+ word = "doubler `x` ";
59
+ else if (coeff === 3)
60
+ word = "tripler `x`";
61
+ else
62
+ word = `multiplier \`x\` par $${coeff}$`;
63
+ }
64
+ else {
65
+ word = `additionner $${coeff}$ à \`x\``;
66
+ }
67
+ return `On veut ${word} à chaque exécution de la boucle \`while\`. En python, cela se traduit par :
68
+
69
+ \`\`\`
70
+ x=x${operation}${coeff}
71
+ \`\`\`
72
+ `;
73
+ };
74
+ const getKeys = (identifiers) => {
75
+ return ["x", "sup", "inf", "equal"];
76
+ };
77
+ const isAnswerValid = (ans, { answer }) => {
78
+ try {
79
+ return ans === answer;
80
+ }
81
+ catch (err) {
82
+ return handleVEAError(err);
83
+ }
84
+ };
85
+ const getPythonWhileStatementCompletionQuestion = (ops) => {
86
+ const identifiers = {
87
+ operation: random(["+", "*"]),
88
+ coeff: randint(2, 11),
89
+ };
90
+ return getQuestionFromIdentifiers(identifiers);
91
+ };
92
+ const getQuestionFromIdentifiers = (identifiers) => {
93
+ return {
94
+ answer: getAnswer(identifiers),
95
+ instruction: getInstruction(identifiers),
96
+ keys: getKeys(identifiers),
97
+ answerFormat: "raw",
98
+ identifiers,
99
+ hint: getHint(identifiers),
100
+ correction: getCorrection(identifiers),
101
+ };
102
+ };
103
+ export const pythonWhileStatementOperationCompletion = {
104
+ id: "pythonWhileStatementOperationCompletion",
105
+ label: "Compléter une instruction dans une boucle `while` en Python",
106
+ isSingleStep: true,
107
+ generator: (nb, opts) => getDistinctQuestions(() => getPythonWhileStatementCompletionQuestion(opts), nb, 15),
108
+ qcmTimer: 60,
109
+ freeTimer: 60,
110
+ getPropositions,
111
+ isAnswerValid,
112
+ subject: "Mathématiques",
113
+ getInstruction,
114
+ getHint,
115
+ getCorrection,
116
+ getQuestionFromIdentifiers,
117
+ hasHintAndCorrection: true,
118
+ answerType: "QCU",
119
+ maxAllowedQuestions: 15,
120
+ };
@@ -22,7 +22,7 @@ const getAnswer = (identifiers) => {
22
22
  };
23
23
  const getInstruction = (identifiers) => {
24
24
  const length = identifiers.samples.length;
25
- return `Ce graphique donne les fréquences $${length}$ échantillons d'une expérience aléatoire. Estimer la probabilité de l'évènement $A$.`;
25
+ return `Ce graphique donne les fréquences de $${length}$ échantillons d'une expérience aléatoire. Estimer la probabilité de l'évènement $A$.`;
26
26
  };
27
27
  const getHint = (identifiers) => {
28
28
  return `Chaque échantillon donne une valeur approximative proche de la probabilité réelle.
package/lib/index.d.ts CHANGED
@@ -1381,6 +1381,10 @@ declare const mathExercises: (Exercise<{
1381
1381
  shape: "square" | "rectangle";
1382
1382
  side: number;
1383
1383
  side2?: number;
1384
+ }, {}> | Exercise<{
1385
+ isEqui: boolean;
1386
+ side: number;
1387
+ base?: number;
1384
1388
  }, {}> | Exercise<{
1385
1389
  ratio: number;
1386
1390
  triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
@@ -1751,6 +1755,15 @@ declare const mathExercises: (Exercise<{
1751
1755
  }, {}> | Exercise<{
1752
1756
  triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
1753
1757
  angleAsked: number;
1758
+ }, {}> | Exercise<{
1759
+ perimeter: number;
1760
+ askingX: boolean;
1761
+ }, {}> | Exercise<{
1762
+ shape: number;
1763
+ side: number;
1764
+ }, {}> | Exercise<{
1765
+ shape: number;
1766
+ side: number;
1754
1767
  }, {}> | Exercise<{
1755
1768
  coeffs: number[];
1756
1769
  to: "+\\infty" | "-\\infty";
@@ -2511,6 +2524,25 @@ declare const mathExercises: (Exercise<{
2511
2524
  a: number;
2512
2525
  b: number;
2513
2526
  opName: string;
2527
+ }, {}> | Exercise<{
2528
+ coeff: number;
2529
+ iterations: number;
2530
+ operation: string;
2531
+ }, {}> | Exercise<{
2532
+ ineq: string;
2533
+ coeff: number;
2534
+ }, {}> | Exercise<{
2535
+ threshold: number;
2536
+ }, {}> | Exercise<{
2537
+ operation: string;
2538
+ coeff: number;
2539
+ }, {}> | Exercise<{
2540
+ coeff: number;
2541
+ iterations: number;
2542
+ operation: string;
2543
+ }, {}> | Exercise<{
2544
+ m: number;
2545
+ p: number;
2514
2546
  }, {}> | Exercise<{
2515
2547
  p: number;
2516
2548
  n: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAE3D,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAA+B,CAAC;AACnD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAA6B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "math-exercises",
3
3
  "type": "module",
4
- "version": "3.0.100",
4
+ "version": "3.0.102",
5
5
  "description": "Math exercises generator for middle school and high school",
6
6
  "main": "lib/index.js",
7
7
  "files": [