math-exercises 3.0.92 → 3.0.94
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.
- package/lib/exercises/math/functions/variations/index.d.ts +1 -0
- package/lib/exercises/math/functions/variations/index.d.ts.map +1 -1
- package/lib/exercises/math/functions/variations/index.js +1 -0
- package/lib/exercises/math/functions/variations/partialVarTableFromGraph.d.ts +10 -0
- package/lib/exercises/math/functions/variations/partialVarTableFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/functions/variations/partialVarTableFromGraph.js +198 -0
- package/lib/exercises/math/percent/evolutions/applyPercent.d.ts.map +1 -1
- package/lib/exercises/math/percent/evolutions/applyPercent.js +1 -0
- package/lib/exercises/math/percent/evolutions/evolutionRateFromValues.d.ts.map +1 -1
- package/lib/exercises/math/percent/evolutions/evolutionRateFromValues.js +1 -0
- package/lib/exercises/math/percent/evolutions/findEndValueAfterEvolution.d.ts.map +1 -1
- package/lib/exercises/math/percent/evolutions/findEndValueAfterEvolution.js +1 -0
- package/lib/exercises/math/percent/evolutions/findStartValueAfterEvolution.d.ts.map +1 -1
- package/lib/exercises/math/percent/evolutions/findStartValueAfterEvolution.js +1 -0
- package/lib/exercises/math/percent/evolutions/globalCM.d.ts.map +1 -1
- package/lib/exercises/math/percent/evolutions/globalCM.js +1 -0
- package/lib/exercises/math/percent/evolutions/globalPercent.d.ts.map +1 -1
- package/lib/exercises/math/percent/evolutions/globalPercent.js +1 -0
- package/lib/exercises/math/percent/evolutions/reciprocalPercentage.d.ts.map +1 -1
- package/lib/exercises/math/percent/evolutions/reciprocalPercentage.js +1 -0
- package/lib/exercises/math/percent/findTVA.d.ts.map +1 -1
- package/lib/exercises/math/percent/findTVA.js +1 -0
- package/lib/exercises/math/percent/percentOfPercent.d.ts.map +1 -1
- package/lib/exercises/math/percent/percentOfPercent.js +1 -0
- package/lib/exercises/math/percent/percentOfPercentOfNumber.d.ts.map +1 -1
- package/lib/exercises/math/percent/percentOfPercentOfNumber.js +1 -0
- package/lib/exercises/math/percent/populationEffectifFromSubPopulation.d.ts.map +1 -1
- package/lib/exercises/math/percent/populationEffectifFromSubPopulation.js +1 -0
- package/lib/exercises/math/percent/ttcToHT.d.ts.map +1 -1
- package/lib/exercises/math/percent/ttcToHT.js +1 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/variations/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/variations/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Exercise } from "../../../../exercises/exercise.js";
|
|
2
|
+
type Identifiers = {
|
|
3
|
+
type: number;
|
|
4
|
+
coeffs: number[];
|
|
5
|
+
initTable: string[][];
|
|
6
|
+
lineAsked: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const partialVarTableFromGraph: Exercise<Identifiers>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=partialVarTableFromGraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partialVarTableFromGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/variations/partialVarTableFromGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAiBT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,EAAE,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAmMF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAmB1D,CAAC"}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
2
|
+
import { GeogebraConstructor } from "../../../../geogebra/geogebraConstructor.js";
|
|
3
|
+
import { Polynomial } from "../../../../math/polynomials/polynomial.js";
|
|
4
|
+
import { randint } from "../../../../math/utils/random/randint.js";
|
|
5
|
+
import { coinFlip } from "../../../../utils/alea/coinFlip.js";
|
|
6
|
+
import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
|
|
7
|
+
const getFunc = (identifiers) => {
|
|
8
|
+
const { coeffs } = identifiers;
|
|
9
|
+
const poly = new Polynomial(coeffs);
|
|
10
|
+
return (x) => coeffs;
|
|
11
|
+
};
|
|
12
|
+
const getRoots = (coeffs) => {
|
|
13
|
+
const [d, c, b, a] = coeffs;
|
|
14
|
+
const sqrtDelta = 2 * Math.sqrt(b ** 2 - 3 * a * c);
|
|
15
|
+
const x1 = (-2 * b - sqrtDelta) / (6 * a);
|
|
16
|
+
const x2 = (-2 * b + sqrtDelta) / (6 * a);
|
|
17
|
+
return [x1, x2].sort((a, b) => a - b);
|
|
18
|
+
};
|
|
19
|
+
const getGGBOptions = (identifiers) => {
|
|
20
|
+
const { coeffs } = identifiers;
|
|
21
|
+
const poly = new Polynomial(coeffs);
|
|
22
|
+
const commands = [`f(x) =${poly.toMathString()}`];
|
|
23
|
+
const ggb = new GeogebraConstructor({
|
|
24
|
+
commands,
|
|
25
|
+
lockedAxesRatio: false,
|
|
26
|
+
});
|
|
27
|
+
const [x1, x2] = getRoots(coeffs);
|
|
28
|
+
const fx1 = poly.calculate(x1);
|
|
29
|
+
const fx2 = poly.calculate(x2);
|
|
30
|
+
return ggb.getOptions({
|
|
31
|
+
coords: ggb.getAdaptedCoords({
|
|
32
|
+
xMin: x1 - 2,
|
|
33
|
+
xMax: x2 + 2,
|
|
34
|
+
yMin: Math.min(fx1, fx2) - 2,
|
|
35
|
+
yMax: Math.max(fx1, fx2) + 2,
|
|
36
|
+
}),
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
const getFirstLine = (x1, x2) => {
|
|
40
|
+
return [
|
|
41
|
+
"$x$",
|
|
42
|
+
"-\\infty",
|
|
43
|
+
"\\ ",
|
|
44
|
+
x1.toTree().toTex(),
|
|
45
|
+
"\\ ",
|
|
46
|
+
x2.toTree().toTex(),
|
|
47
|
+
"\\ ",
|
|
48
|
+
"+\\infty",
|
|
49
|
+
];
|
|
50
|
+
};
|
|
51
|
+
const getSecondsLines = (coeffs) => {
|
|
52
|
+
const [d, c, b, a] = coeffs;
|
|
53
|
+
const poly = new Polynomial(coeffs);
|
|
54
|
+
const [x1, x2] = getRoots(coeffs);
|
|
55
|
+
const fx1 = poly.calculate(x1);
|
|
56
|
+
const fx2 = poly.calculate(x2);
|
|
57
|
+
const vars = coeffs[3] > 0
|
|
58
|
+
? ["\\nearrow", "\\searrow", "\\nearrow"]
|
|
59
|
+
: ["\\searrow", "\\nearrow", "\\searrow"];
|
|
60
|
+
return [
|
|
61
|
+
[
|
|
62
|
+
"$\\ $",
|
|
63
|
+
"\\ ",
|
|
64
|
+
"\\ ",
|
|
65
|
+
a > 0 ? fx1.toTree().toTex() : "\\ ",
|
|
66
|
+
"\\ ",
|
|
67
|
+
a > 0 ? "\\ " : fx1.toTree().toTex(),
|
|
68
|
+
"\\ ",
|
|
69
|
+
"\\ ",
|
|
70
|
+
],
|
|
71
|
+
["$f(x)$", "\\ ", vars[0], "\\ ", vars[1], "\\ ", vars[2], "\\ "],
|
|
72
|
+
[
|
|
73
|
+
"$\\ $",
|
|
74
|
+
"\\ ",
|
|
75
|
+
"\\ ",
|
|
76
|
+
a > 0 ? "\\ " : fx2.toTree().toTex(),
|
|
77
|
+
"\\ ",
|
|
78
|
+
a > 0 ? fx2.toTree().toTex() : "\\ ",
|
|
79
|
+
"\\ ",
|
|
80
|
+
"\\ ",
|
|
81
|
+
],
|
|
82
|
+
];
|
|
83
|
+
};
|
|
84
|
+
const getAnswerTable = (identifiers) => {
|
|
85
|
+
const { coeffs } = identifiers;
|
|
86
|
+
const [x1, x2] = getRoots(coeffs);
|
|
87
|
+
return [getFirstLine(x1, x2), ...getSecondsLines(coeffs)];
|
|
88
|
+
};
|
|
89
|
+
const getInstruction = (identifiers) => {
|
|
90
|
+
return `Dresser le tableau de variations de la fonction $f$ définie sur $\\mathbb{R}$ dont la courbe représentative est donnée ci-dessous :`;
|
|
91
|
+
};
|
|
92
|
+
const getHint = (identifiers) => {
|
|
93
|
+
return `La fonction est définie sur $\\mathbb{R}$, donc les valeurs de $x$ vont de $-\\infty$ à $+\\infty$.
|
|
94
|
+
|
|
95
|
+
Repère ensuite les points de la courbe auxquels le sens de variation change. Dans la première ligne du tableau, il faut mettre les abscisses de ces points, et dans la deuxième ligne, les ordonnées.`;
|
|
96
|
+
};
|
|
97
|
+
const getCorrection = (identifiers) => {
|
|
98
|
+
const { coeffs } = identifiers;
|
|
99
|
+
const [d, c, b, a] = coeffs;
|
|
100
|
+
const poly = new Polynomial(coeffs);
|
|
101
|
+
const [x1, x2] = getRoots(coeffs);
|
|
102
|
+
const fx1 = poly.calculate(x1);
|
|
103
|
+
const fx2 = poly.calculate(x2);
|
|
104
|
+
const words = a > 0
|
|
105
|
+
? ["croissante", "décroissante", "croissante"]
|
|
106
|
+
: ["décroissante", "croissante", "décroissante"];
|
|
107
|
+
return `D'après le graphique, la fonction $f$ est ${words[0]} sur $]-\\infty; ${x1}]$, puis ${words[1]} sur $[${x1}; ${x2}]$, puis ${words[2]} sur $[${x2}; +\\infty[$.
|
|
108
|
+
|
|
109
|
+
De plus, on lit graphiquement que l'image de $${x1}$ est $${fx1}$, et celle de $${x2}$ est $${fx2}$.
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
`;
|
|
113
|
+
};
|
|
114
|
+
const getKeys = (identifiers) => {
|
|
115
|
+
return ["infty"];
|
|
116
|
+
};
|
|
117
|
+
const isAnswerTableValid = (ans, { answerTable }) => {
|
|
118
|
+
try {
|
|
119
|
+
return ans.every((row, i) => row.every((cell, j) => cell === answerTable[i][j]));
|
|
120
|
+
}
|
|
121
|
+
catch (err) {
|
|
122
|
+
return handleVEAError(err);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
// const lists = [
|
|
126
|
+
// "x^3 - 3x",
|
|
127
|
+
// "x^3 -6x^2 + 9x",
|
|
128
|
+
// "-x^3 + 3x^2 + 9x",
|
|
129
|
+
// "2x^3 - 9x^2 + 12x",
|
|
130
|
+
// "-x^3+6x^2-9x",
|
|
131
|
+
// "4x^3 -24x^2 + 36x",
|
|
132
|
+
// ];
|
|
133
|
+
const poly3Coeffs = [
|
|
134
|
+
[0, -3, 0, 1],
|
|
135
|
+
[0, 9, -6, 1],
|
|
136
|
+
// [0, 9, 3, -1],
|
|
137
|
+
[0, 12, -9, 2],
|
|
138
|
+
[0, -9, 6, -1],
|
|
139
|
+
// [0, 36, -24, 4],
|
|
140
|
+
];
|
|
141
|
+
const getTestSignTableQuestion = (ops) => {
|
|
142
|
+
const index = randint(0, 4);
|
|
143
|
+
const lineAsked = randint(0, 2);
|
|
144
|
+
const coeffs = coinFlip()
|
|
145
|
+
? poly3Coeffs[index]
|
|
146
|
+
: poly3Coeffs[index].map((x) => -x);
|
|
147
|
+
const finalCoeffs = [coeffs[0] + randint(-10, 10), ...coeffs.slice(1)];
|
|
148
|
+
const [x1, x2] = getRoots(finalCoeffs);
|
|
149
|
+
const initTable = [
|
|
150
|
+
lineAsked === 0
|
|
151
|
+
? ["$x$", "", "\\ ", "", "\\ ", "", "\\ ", ""]
|
|
152
|
+
: getFirstLine(x1, x2),
|
|
153
|
+
];
|
|
154
|
+
if (lineAsked === 1) {
|
|
155
|
+
initTable.push(["$\\ $", "\\ ", "\\ ", "\\ ", "\\ ", "\\ ", "\\ ", "\\ "], ["$f(x)$", "\\ ", "", "", "", "", "", "\\ "], ["$\\ $", "\\ ", "\\ ", "\\ ", "\\ ", "\\ ", "\\ ", "\\ "]);
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
initTable.push(...getSecondsLines(finalCoeffs));
|
|
159
|
+
}
|
|
160
|
+
const identifiers = {
|
|
161
|
+
type: 0,
|
|
162
|
+
coeffs: finalCoeffs,
|
|
163
|
+
initTable,
|
|
164
|
+
lineAsked,
|
|
165
|
+
};
|
|
166
|
+
return getQuestionFromIdentifiers(identifiers);
|
|
167
|
+
};
|
|
168
|
+
const getQuestionFromIdentifiers = (identifiers) => {
|
|
169
|
+
return {
|
|
170
|
+
answerTable: getAnswerTable(identifiers),
|
|
171
|
+
instruction: getInstruction(identifiers),
|
|
172
|
+
keys: getKeys(identifiers),
|
|
173
|
+
answerFormat: "tex",
|
|
174
|
+
identifiers,
|
|
175
|
+
hint: getHint(identifiers),
|
|
176
|
+
correction: getCorrection(identifiers),
|
|
177
|
+
initTable: identifiers.initTable,
|
|
178
|
+
ggbOptions: getGGBOptions(identifiers),
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
export const partialVarTableFromGraph = {
|
|
182
|
+
id: "partialVarTableFromGraph",
|
|
183
|
+
label: "Compléter le tableau de variations d'une fonction à partir de sa représentation graphique",
|
|
184
|
+
isSingleStep: true,
|
|
185
|
+
generator: (nb, opts) => getDistinctQuestions(() => getTestSignTableQuestion(opts), nb),
|
|
186
|
+
qcmTimer: 60,
|
|
187
|
+
freeTimer: 60,
|
|
188
|
+
isAnswerTableValid,
|
|
189
|
+
subject: "Mathématiques",
|
|
190
|
+
getInstruction,
|
|
191
|
+
getHint,
|
|
192
|
+
getCorrection,
|
|
193
|
+
getAnswerTable,
|
|
194
|
+
getQuestionFromIdentifiers,
|
|
195
|
+
hasHintAndCorrection: true,
|
|
196
|
+
answerType: "varTable",
|
|
197
|
+
hasGeogebra: true,
|
|
198
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyPercent.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/applyPercent.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AAG9B,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAqHF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"applyPercent.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/applyPercent.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AAG9B,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAqHF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAc9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evolutionRateFromValues.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/evolutionRateFromValues.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAyGF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"evolutionRateFromValues.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/evolutionRateFromValues.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAyGF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAgBzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findEndValueAfterEvolution.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/findEndValueAfterEvolution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAiGF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"findEndValueAfterEvolution.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/findEndValueAfterEvolution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAiGF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAiB5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findStartValueAfterEvolution.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/findStartValueAfterEvolution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAiGF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"findStartValueAfterEvolution.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/findStartValueAfterEvolution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAiGF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAiB9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalCM.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/globalCM.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAoFF,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"globalCM.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/globalCM.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAoFF,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,WAAW,CAoB1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalPercent.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/globalPercent.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAaT,MAAM,sBAAsB,CAAC;AAO9B,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AA4GF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"globalPercent.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/globalPercent.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAaT,MAAM,sBAAsB,CAAC;AAO9B,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AA4GF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAe/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reciprocalPercentage.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/reciprocalPercentage.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAaT,MAAM,sBAAsB,CAAC;AAM9B,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AA6HF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"reciprocalPercentage.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/reciprocalPercentage.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAaT,MAAM,sBAAsB,CAAC;AAM9B,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AA6HF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAetD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findTVA.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/findTVA.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AA4EF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"findTVA.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/findTVA.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AA4EF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,WAAW,CAezC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"percentOfPercent.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/percentOfPercent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA0EF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"percentOfPercent.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/percentOfPercent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA0EF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAmBlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"percentOfPercentOfNumber.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/percentOfPercentOfNumber.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAiFF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"percentOfPercentOfNumber.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/percentOfPercentOfNumber.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAiFF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAmB1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"populationEffectifFromSubPopulation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/populationEffectifFromSubPopulation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAsJF,eAAO,MAAM,mCAAmC,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"populationEffectifFromSubPopulation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/populationEffectifFromSubPopulation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAsJF,eAAO,MAAM,mCAAmC,EAAE,QAAQ,CAAC,WAAW,CAiBrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ttcToHT.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/ttcToHT.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAmFF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"ttcToHT.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/ttcToHT.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAmFF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,WAAW,CAgBzC,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1197,6 +1197,11 @@ declare const mathExercises: (Exercise<{
|
|
|
1197
1197
|
vars: string[];
|
|
1198
1198
|
a: number;
|
|
1199
1199
|
b: number;
|
|
1200
|
+
}, {}> | Exercise<{
|
|
1201
|
+
type: number;
|
|
1202
|
+
coeffs: number[];
|
|
1203
|
+
initTable: string[][];
|
|
1204
|
+
lineAsked: number;
|
|
1200
1205
|
}, {}> | Exercise<{
|
|
1201
1206
|
a: number;
|
|
1202
1207
|
b: number;
|
package/lib/index.d.ts.map
CHANGED
|
@@ -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,EA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