math-exercises 1.3.24 → 1.3.26
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/calcul/addAndSub.d.ts.map +1 -1
- package/lib/exercises/calcul/addAndSub.js +1 -0
- package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts.map +1 -1
- package/lib/exercises/calcul/addAndSubWithoutRelatives.js +1 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +1 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +1 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +1 -0
- package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.d.ts +3 -0
- package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.js +55 -39
- package/lib/exercises/calcul/fractions/fractionsDivision.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsDivision.js +1 -0
- package/lib/exercises/calcul/fractions/fractionsProduct.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsProduct.js +1 -0
- package/lib/exercises/calcul/fractions/fractionsSum.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsSum.js +1 -0
- package/lib/exercises/calcul/fractions/simplifyFraction.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/simplifyFraction.js +1 -0
- package/lib/exercises/calcul/operations/operationsPriorities.d.ts.map +1 -1
- package/lib/exercises/calcul/operations/operationsPriorities.js +1 -0
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.js +1 -0
- package/lib/exercises/calcul/rounding/rounding.d.ts.map +1 -1
- package/lib/exercises/calcul/rounding/rounding.js +1 -0
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +1 -0
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +1 -0
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +1 -0
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +1 -0
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +1 -0
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.js +1 -0
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +1 -0
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +1 -0
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +1 -0
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +1 -0
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.js +1 -0
- package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.js +1 -0
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.js +1 -0
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.js +1 -0
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.js +1 -0
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +1 -0
- package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/thirdDegreeDerivative.js +1 -0
- package/lib/exercises/derivation/derivative/usualderivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/usualderivative.js +1 -0
- package/lib/exercises/exercise.d.ts +3 -0
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/exercises.d.ts.map +1 -1
- package/lib/exercises/exercises.js +10 -5
- package/lib/exercises/geometry/cartesian/derivativeNumberReading.d.ts.map +1 -1
- package/lib/exercises/geometry/cartesian/derivativeNumberReading.js +9 -18
- package/lib/exercises/geometry/cartesian/leadingCoefficient.d.ts.map +1 -1
- package/lib/exercises/geometry/cartesian/leadingCoefficient.js +26 -4
- package/lib/exercises/geometry/cartesian/midpoint.d.ts.map +1 -1
- package/lib/exercises/geometry/cartesian/midpoint.js +1 -0
- package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
- package/lib/exercises/geometry/vectors/scalarProductViaCoords.js +2 -0
- package/lib/exercises/percent/applyPercent.d.ts.map +1 -1
- package/lib/exercises/percent/applyPercent.js +1 -0
- package/lib/exercises/percent/averageEvolutionRate.d.ts.map +1 -1
- package/lib/exercises/percent/averageEvolutionRate.js +1 -0
- package/lib/exercises/percent/globalPercent.d.ts.map +1 -1
- package/lib/exercises/percent/globalPercent.js +1 -0
- package/lib/exercises/percent/reciprocalPercentage.d.ts.map +1 -1
- package/lib/exercises/percent/reciprocalPercentage.js +1 -0
- package/lib/exercises/powers/powersDivision.d.ts.map +1 -1
- package/lib/exercises/powers/powersDivision.js +1 -0
- package/lib/exercises/powers/powersOfTenToDecimal.d.ts.map +1 -1
- package/lib/exercises/powers/powersOfTenToDecimal.js +1 -0
- package/lib/exercises/powers/powersPower.d.ts.map +1 -1
- package/lib/exercises/powers/powersPower.js +1 -0
- package/lib/exercises/powers/powersProduct.d.ts.map +1 -1
- package/lib/exercises/powers/powersProduct.js +1 -0
- package/lib/exercises/powers/scientificToDecimal.d.ts.map +1 -1
- package/lib/exercises/powers/scientificToDecimal.js +1 -0
- package/lib/exercises/proba/conditionalProbability.d.ts.map +1 -1
- package/lib/exercises/proba/conditionalProbability.js +2 -1
- package/lib/exercises/proba/marginalAndConditionalFrequency.d.ts.map +1 -1
- package/lib/exercises/proba/marginalAndConditionalFrequency.js +9 -1
- package/lib/exercises/proba/probabilityTree.d.ts.map +1 -1
- package/lib/exercises/proba/probabilityTree.js +42 -7
- package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +1 -0
- package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.js +1 -0
- package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticFindReason.js +1 -0
- package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.js +1 -0
- package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +1 -0
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.js +1 -0
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +1 -0
- package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.js +1 -0
- package/lib/exercises/sequences/geometric/geometricFindReason.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricFindReason.js +1 -0
- package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricReasonUsage.js +1 -0
- package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.js +1 -0
- package/lib/exercises/squareRoots/simpifySquareRoot.d.ts.map +1 -1
- package/lib/exercises/squareRoots/simpifySquareRoot.js +1 -0
- package/lib/exercises/trigonometry/mainRemarkableValues.d.ts.map +1 -1
- package/lib/exercises/trigonometry/mainRemarkableValues.js +1 -0
- package/lib/exercises/trigonometry/remarkableValues.d.ts.map +1 -1
- package/lib/exercises/trigonometry/remarkableValues.js +1 -0
- package/lib/exercises/utils/getDistinctQuestions.d.ts +1 -0
- package/lib/exercises/utils/getDistinctQuestions.d.ts.map +1 -1
- package/lib/exercises/utils/getDistinctQuestions.js +15 -2
- package/package.json +1 -1
- package/lib/exercises/derivation/derivative/affineDerivative.d.ts +0 -4
- package/lib/exercises/derivation/derivative/affineDerivative.d.ts.map +0 -1
- package/lib/exercises/derivation/derivative/affineDerivative.js +0 -27
- package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts +0 -1
- package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts.map +0 -1
- package/lib/exercises/derivation/derivative/secondDegreeDerivative.js +0 -28
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exercises.d.ts","sourceRoot":"","sources":["../../src/exercises/exercises.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exercises.d.ts","sourceRoot":"","sources":["../../src/exercises/exercises.ts"],"names":[],"mappings":"AAqEA,eAAO,MAAM,SAAS,iCA8GrB,CAAC"}
|
|
@@ -6,6 +6,7 @@ const addAndSubWithoutRelatives_1 = require("./calcul/addAndSubWithoutRelatives"
|
|
|
6
6
|
const fractionAndIntegerDivision_1 = require("./calcul/fractions/fractionAndIntegerDivision");
|
|
7
7
|
const fractionAndIntegerProduct_1 = require("./calcul/fractions/fractionAndIntegerProduct");
|
|
8
8
|
const fractionAndIntegerSum_1 = require("./calcul/fractions/fractionAndIntegerSum");
|
|
9
|
+
const fractionToPercentToDecimal_1 = require("./calcul/fractions/fractionToPercentToDecimal");
|
|
9
10
|
const fractionsDivision_1 = require("./calcul/fractions/fractionsDivision");
|
|
10
11
|
const fractionsProduct_1 = require("./calcul/fractions/fractionsProduct");
|
|
11
12
|
const fractionsSum_1 = require("./calcul/fractions/fractionsSum");
|
|
@@ -31,6 +32,8 @@ const factoIdRmq3_1 = require("./calculLitteral/factorisation/factoIdRmq3");
|
|
|
31
32
|
const factoType1Exercise_1 = require("./calculLitteral/factorisation/factoType1Exercise");
|
|
32
33
|
const thirdDegreeDerivative_1 = require("./derivation/derivative/thirdDegreeDerivative");
|
|
33
34
|
const usualderivative_1 = require("./derivation/derivative/usualderivative");
|
|
35
|
+
const derivativeNumberReading_1 = require("./geometry/cartesian/derivativeNumberReading");
|
|
36
|
+
const leadingCoefficient_1 = require("./geometry/cartesian/leadingCoefficient");
|
|
34
37
|
const midpoint_1 = require("./geometry/cartesian/midpoint");
|
|
35
38
|
const scalarProductViaCoords_1 = require("./geometry/vectors/scalarProductViaCoords");
|
|
36
39
|
const applyPercent_1 = require("./percent/applyPercent");
|
|
@@ -43,6 +46,8 @@ const powersPower_1 = require("./powers/powersPower");
|
|
|
43
46
|
const powersProduct_1 = require("./powers/powersProduct");
|
|
44
47
|
const scientificToDecimal_1 = require("./powers/scientificToDecimal");
|
|
45
48
|
const conditionalProbability_1 = require("./proba/conditionalProbability");
|
|
49
|
+
const marginalAndConditionalFrequency_1 = require("./proba/marginalAndConditionalFrequency");
|
|
50
|
+
const probabilityTree_1 = require("./proba/probabilityTree");
|
|
46
51
|
const arithmeticExplicitFormulaUsage_1 = require("./sequences/arithmetic/arithmeticExplicitFormulaUsage");
|
|
47
52
|
const arithmeticFindExplicitFormula_1 = require("./sequences/arithmetic/arithmeticFindExplicitFormula");
|
|
48
53
|
const arithmeticFindReason_1 = require("./sequences/arithmetic/arithmeticFindReason");
|
|
@@ -150,9 +155,9 @@ exports.exercises = [
|
|
|
150
155
|
usualderivative_1.usualDerivative,
|
|
151
156
|
thirdDegreeDerivative_1.thirdDegreeDerivative,
|
|
152
157
|
conditionalProbability_1.conditionalProbability,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
+
leadingCoefficient_1.leadingCoefficient,
|
|
159
|
+
derivativeNumberReading_1.derivativeNumberReading,
|
|
160
|
+
probabilityTree_1.probabilityTree,
|
|
161
|
+
fractionToPercentToDecimal_1.fractionToPercentToDecimal,
|
|
162
|
+
marginalAndConditionalFrequency_1.marginalAndConditionalFrequency,
|
|
158
163
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derivativeNumberReading.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/cartesian/derivativeNumberReading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,uBAAuB,EAAE,QASrC,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"derivativeNumberReading.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/cartesian/derivativeNumberReading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,uBAAuB,EAAE,QASrC,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,QAAQ,CAoCrD"}
|
|
@@ -19,22 +19,6 @@ exports.derivativeNumberReading = {
|
|
|
19
19
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getDerivativeNumberReading, nb),
|
|
20
20
|
};
|
|
21
21
|
function getDerivativeNumberReading() {
|
|
22
|
-
/*let xA = randint(-4, 5);
|
|
23
|
-
let polynome: Polynomial;
|
|
24
|
-
let yA: number;
|
|
25
|
-
|
|
26
|
-
do {
|
|
27
|
-
polynome = new Polynomial([randint(-4, 5), randint(-4, 5), randint(-4, 5), randint(-4, 5, [0])]);
|
|
28
|
-
yA = polynome.coefficients[0];
|
|
29
|
-
for (let index = 1; index < 4; index++) yA += polynome.coefficients[index] * Math.pow(xA, index);
|
|
30
|
-
} while (yA < -5 || yA > 5);
|
|
31
|
-
|
|
32
|
-
const pointA = new Point('A', new NumberNode(xA), new NumberNode(yA));
|
|
33
|
-
const slope = polynome.derivate().coefficients[2] * xA;
|
|
34
|
-
const droite = DroiteConstructor.fromPointAndSlope(pointA, new NumberNode(slope));
|
|
35
|
-
|
|
36
|
-
let instruction = `$f(x) = ${polynome}$, $${pointA.toTexWithCoords()}$, $f'(${xA}) = ${slope}$`;
|
|
37
|
-
*/
|
|
38
22
|
let xA, yA, xB, yB;
|
|
39
23
|
let pointA, pointB;
|
|
40
24
|
do {
|
|
@@ -49,11 +33,18 @@ function getDerivativeNumberReading() {
|
|
|
49
33
|
const c = (0, mathjs_1.evaluate)(droite.a.toMathString()) - a * Math.pow(xA, 2) - b * xA;
|
|
50
34
|
const d = yA - (a / 3) * Math.pow(xA, 3) - (b / 2) * Math.pow(xA, 2) - xA * c;
|
|
51
35
|
const polynome = new polynomial_1.Polynomial([d, c, b / 2, a / 3]);
|
|
52
|
-
|
|
36
|
+
const instruction = `Ci-dessous sont tracées la courbe de la fonction f et la tangente à cette courbe au point d'abscisse $${xA}$.$\\\\$ Déterminer le coefficient directeur de la tangente qui passe par ce point.`;
|
|
37
|
+
const commands = [
|
|
38
|
+
polynome.toString(),
|
|
39
|
+
`g(x) = (${droite.a.toMathString()}) * x + (${droite.b.toMathString()})`,
|
|
40
|
+
`(${xA},${yA})`,
|
|
41
|
+
];
|
|
53
42
|
const question = {
|
|
54
43
|
instruction,
|
|
55
|
-
|
|
44
|
+
startStatement: 'a',
|
|
56
45
|
answer: droite.getLeadingCoefficient(),
|
|
46
|
+
commands,
|
|
47
|
+
coords: [xA - 5, xA + 5, yA - 5, yA + 5],
|
|
57
48
|
};
|
|
58
49
|
return question;
|
|
59
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leadingCoefficient.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/cartesian/leadingCoefficient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"leadingCoefficient.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/cartesian/leadingCoefficient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,CA4CxD"}
|
|
@@ -6,10 +6,11 @@ const droite_1 = require("../../../math/geometry/droite");
|
|
|
6
6
|
const point_1 = require("../../../math/geometry/point");
|
|
7
7
|
const randint_1 = require("../../../math/utils/random/randint");
|
|
8
8
|
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
9
|
+
const mathjs_1 = require("mathjs");
|
|
9
10
|
exports.leadingCoefficient = {
|
|
10
11
|
id: 'leadingCoefficient',
|
|
11
12
|
connector: '=',
|
|
12
|
-
instruction: '',
|
|
13
|
+
instruction: 'Quel est le coefficient directeur de la droite suivante :',
|
|
13
14
|
label: 'Déterminer le coefficient directeur',
|
|
14
15
|
levels: ['3', '2', '1'],
|
|
15
16
|
isSingleStep: false,
|
|
@@ -27,11 +28,32 @@ function getLeadingCoefficientQuestion() {
|
|
|
27
28
|
pointB = new point_1.Point('B', new numberNode_1.NumberNode(xB), new numberNode_1.NumberNode(yB));
|
|
28
29
|
} while (xB - xA === 0);
|
|
29
30
|
const droite = droite_1.DroiteConstructor.fromTwoPoints(pointA, pointB, 'D');
|
|
30
|
-
|
|
31
|
+
const a = droite.a.toMathString();
|
|
32
|
+
const b = droite.b.toMathString();
|
|
33
|
+
const aValue = (0, mathjs_1.evaluate)(a);
|
|
34
|
+
const bValue = (0, mathjs_1.evaluate)(b);
|
|
35
|
+
let xmin, xmax, ymin, ymax;
|
|
36
|
+
if (bValue > 0) {
|
|
37
|
+
ymax = bValue + 1;
|
|
38
|
+
ymin = -1;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
ymin = bValue - 1;
|
|
42
|
+
ymax = 1;
|
|
43
|
+
}
|
|
44
|
+
if (-bValue / aValue > 0) {
|
|
45
|
+
xmax = -bValue / aValue + 1;
|
|
46
|
+
xmin = -1;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
xmin = -bValue / aValue - 1;
|
|
50
|
+
xmax = 1;
|
|
51
|
+
}
|
|
31
52
|
const question = {
|
|
32
|
-
instruction,
|
|
33
|
-
//startStatement: pointA.toTexWithCoords() + ' ' + pointB.toTexWithCoords(),
|
|
34
53
|
answer: droite.getLeadingCoefficient(),
|
|
54
|
+
keys: [],
|
|
55
|
+
commands: [`f(x) = (${a}) * x + (${b})`],
|
|
56
|
+
coords: [xmin, xmax, ymin, ymax],
|
|
35
57
|
};
|
|
36
58
|
return question;
|
|
37
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"midpoint.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/cartesian/midpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM9D,eAAO,MAAM,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"midpoint.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/cartesian/midpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM9D,eAAO,MAAM,QAAQ,EAAE,QAUtB,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAW9C"}
|
|
@@ -14,6 +14,7 @@ exports.midpoint = {
|
|
|
14
14
|
isSingleStep: false,
|
|
15
15
|
section: 'Géométrie cartésienne',
|
|
16
16
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getMidpointQuestion, nb),
|
|
17
|
+
keys: ['semicolon'],
|
|
17
18
|
};
|
|
18
19
|
function getMidpointQuestion() {
|
|
19
20
|
const [coords1, coords2] = (0, randTupleInt_1.distinctRandTupleInt)(2, 2, { from: -9, to: 10 });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scalarProductViaCoords.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/vectors/scalarProductViaCoords.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM9D,eAAO,MAAM,sBAAsB,EAAE,
|
|
1
|
+
{"version":3,"file":"scalarProductViaCoords.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/vectors/scalarProductViaCoords.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM9D,eAAO,MAAM,sBAAsB,EAAE,QAUpC,CAAC;AAEF,wBAAgB,iCAAiC,IAAI,QAAQ,CAW5D"}
|
|
@@ -14,6 +14,7 @@ exports.scalarProductViaCoords = {
|
|
|
14
14
|
levels: ['1, 0'],
|
|
15
15
|
section: 'Vecteurs',
|
|
16
16
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getScalarProductViaCoordsQuestion, nb),
|
|
17
|
+
keys: [],
|
|
17
18
|
};
|
|
18
19
|
function getScalarProductViaCoordsQuestion() {
|
|
19
20
|
const [coords1, coords2] = (0, randTupleInt_1.distinctRandTupleInt)(2, 2, { from: -9, to: 10 });
|
|
@@ -23,6 +24,7 @@ function getScalarProductViaCoordsQuestion() {
|
|
|
23
24
|
instruction: `Soit $${u.toTexWithCoords()}$ et $${v.toTexWithCoords()}$. Calculer $${u.toTex()}\\cdot ${v.toTex()}$.`,
|
|
24
25
|
startStatement: `${u.toTex()}\\cdot ${v.toTex()}`,
|
|
25
26
|
answer: u.scalarProduct(v).toTex(),
|
|
27
|
+
keys: [],
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
exports.getScalarProductViaCoordsQuestion = getScalarProductViaCoordsQuestion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyPercent.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/applyPercent.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"applyPercent.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/applyPercent.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,YAAY,EAAE,QAW1B,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAuBlD"}
|
|
@@ -14,6 +14,7 @@ exports.applyPercent = {
|
|
|
14
14
|
section: 'Pourcentages',
|
|
15
15
|
isSingleStep: false,
|
|
16
16
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getApplyPercentQuestion, nb),
|
|
17
|
+
keys: ['percent'],
|
|
17
18
|
};
|
|
18
19
|
function getApplyPercentQuestion() {
|
|
19
20
|
const randNbr = (0, randint_1.randint)(1, 500);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"averageEvolutionRate.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/averageEvolutionRate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"averageEvolutionRate.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/averageEvolutionRate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAclD"}
|
|
@@ -13,6 +13,7 @@ exports.averageEvolutionRate = {
|
|
|
13
13
|
section: 'Pourcentages',
|
|
14
14
|
isSingleStep: false,
|
|
15
15
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getAverageEvolutionRate, nb),
|
|
16
|
+
keys: ['percent'],
|
|
16
17
|
};
|
|
17
18
|
function getAverageEvolutionRate() {
|
|
18
19
|
const rate = (0, randint_1.randint)(1, 100);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalPercent.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/globalPercent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"globalPercent.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/globalPercent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,aAAa,EAAE,QAW3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CA6BnD"}
|
|
@@ -13,6 +13,7 @@ exports.globalPercent = {
|
|
|
13
13
|
section: 'Pourcentages',
|
|
14
14
|
isSingleStep: false,
|
|
15
15
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getGlobalPercentQuestion, nb),
|
|
16
|
+
keys: ['percent'],
|
|
16
17
|
};
|
|
17
18
|
function getGlobalPercentQuestion() {
|
|
18
19
|
const tab = ['hausse', 'baisse'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reciprocalPercentage.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/reciprocalPercentage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"reciprocalPercentage.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/reciprocalPercentage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAgB1D"}
|
|
@@ -13,6 +13,7 @@ exports.reciprocalPercentage = {
|
|
|
13
13
|
section: 'Pourcentages',
|
|
14
14
|
isSingleStep: false,
|
|
15
15
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getReciprocalPercentageQuestion, nb),
|
|
16
|
+
keys: ['percent'],
|
|
16
17
|
};
|
|
17
18
|
function getReciprocalPercentageQuestion() {
|
|
18
19
|
const randPercent = (0, randint_1.randint)(1, 50);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powersDivision.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersDivision.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,cAAc,EAAE,QAS5B,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"powersDivision.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersDivision.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,cAAc,EAAE,QAS5B,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,QAUjC,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAgBvF"}
|
|
@@ -29,6 +29,7 @@ exports.powersOfTenDivision = {
|
|
|
29
29
|
section: 'Puissances',
|
|
30
30
|
isSingleStep: true,
|
|
31
31
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(() => getPowersDivisionQuestion(true), nb),
|
|
32
|
+
keys: [],
|
|
32
33
|
};
|
|
33
34
|
function getPowersDivisionQuestion(useOnlyPowersOfTen = false) {
|
|
34
35
|
const a = useOnlyPowersOfTen ? 10 : (0, randint_1.randint)(-11, 11, [0]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powersOfTenToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersOfTenToDecimal.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"powersOfTenToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersOfTenToDecimal.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CAYzD"}
|
|
@@ -18,6 +18,7 @@ exports.powersOfTenToDecimal = {
|
|
|
18
18
|
section: 'Puissances',
|
|
19
19
|
isSingleStep: true,
|
|
20
20
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getPowersOfTenDivisionQuestion, nb),
|
|
21
|
+
keys: [],
|
|
21
22
|
};
|
|
22
23
|
function getPowersOfTenDivisionQuestion() {
|
|
23
24
|
const randPower = (0, randint_1.randint)(-6, 8);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powersPower.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersPower.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,gBAAgB,EAAE,QAS9B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"powersPower.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersPower.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,gBAAgB,EAAE,QAS9B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAapF"}
|
|
@@ -28,6 +28,7 @@ exports.powersPower = {
|
|
|
28
28
|
section: 'Puissances',
|
|
29
29
|
isSingleStep: true,
|
|
30
30
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getPowersPowerQuestion, nb),
|
|
31
|
+
keys: [],
|
|
31
32
|
};
|
|
32
33
|
function getPowersPowerQuestion(useOnlyPowersOfTen = false) {
|
|
33
34
|
const a = useOnlyPowersOfTen ? 10 : (0, randint_1.randint)(-11, 11);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powersProduct.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersProduct.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"powersProduct.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersProduct.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAU3B,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAgBtF"}
|
|
@@ -29,6 +29,7 @@ exports.powersProduct = {
|
|
|
29
29
|
section: 'Puissances',
|
|
30
30
|
isSingleStep: true,
|
|
31
31
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getPowersProductQuestion, nb),
|
|
32
|
+
keys: [],
|
|
32
33
|
};
|
|
33
34
|
function getPowersProductQuestion(useOnlyPowersOfTen = false) {
|
|
34
35
|
const a = useOnlyPowersOfTen ? 10 : (0, randint_1.randint)(-11, 11);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scientificToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/scientificToDecimal.ts"],"names":[],"mappings":"AAAA;;MAEM;AAQN,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"scientificToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/scientificToDecimal.ts"],"names":[],"mappings":"AAAA;;MAEM;AAQN,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,mBAAmB,EAAE,QAWjC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CAiBzD"}
|
|
@@ -19,6 +19,7 @@ exports.scientificToDecimal = {
|
|
|
19
19
|
levels: ['5', '4', '3', '2'],
|
|
20
20
|
section: 'Puissances',
|
|
21
21
|
isSingleStep: true,
|
|
22
|
+
keys: [],
|
|
22
23
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getScientificToDecimalQuestion, nb),
|
|
23
24
|
};
|
|
24
25
|
function getScientificToDecimalQuestion() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conditionalProbability.d.ts","sourceRoot":"","sources":["../../../src/exercises/proba/conditionalProbability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIjD,eAAO,MAAM,sBAAsB,EAAE,
|
|
1
|
+
{"version":3,"file":"conditionalProbability.d.ts","sourceRoot":"","sources":["../../../src/exercises/proba/conditionalProbability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIjD,eAAO,MAAM,sBAAsB,EAAE,QAUpC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,CA4DpD"}
|
|
@@ -13,6 +13,7 @@ exports.conditionalProbability = {
|
|
|
13
13
|
isSingleStep: false,
|
|
14
14
|
section: 'Probabilités',
|
|
15
15
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getConditionalProbability, nb),
|
|
16
|
+
keys: ['p', 'cap', 'underscore'],
|
|
16
17
|
};
|
|
17
18
|
function getConditionalProbability() {
|
|
18
19
|
const pA = (0, randint_1.randint)(2, 100);
|
|
@@ -66,7 +67,7 @@ function getConditionalProbability() {
|
|
|
66
67
|
instruction,
|
|
67
68
|
startStatement,
|
|
68
69
|
answer,
|
|
69
|
-
keys: ['p', '
|
|
70
|
+
keys: ['p', 'cap', 'underscore'],
|
|
70
71
|
};
|
|
71
72
|
return question;
|
|
72
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marginalAndConditionalFrequency.d.ts","sourceRoot":"","sources":["../../../src/exercises/proba/marginalAndConditionalFrequency.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,+BAA+B,EAAE,
|
|
1
|
+
{"version":3,"file":"marginalAndConditionalFrequency.d.ts","sourceRoot":"","sources":["../../../src/exercises/proba/marginalAndConditionalFrequency.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,+BAA+B,EAAE,QAU7C,CAAC;AAEF,wBAAgB,kCAAkC,IAAI,QAAQ,CAmE7D"}
|
|
@@ -13,6 +13,7 @@ exports.marginalAndConditionalFrequency = {
|
|
|
13
13
|
isSingleStep: false,
|
|
14
14
|
section: 'Probabilités',
|
|
15
15
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getMarginalAndConditionalFrequency, nb),
|
|
16
|
+
keys: ['f', 'cap', 'underscore'],
|
|
16
17
|
};
|
|
17
18
|
function getMarginalAndConditionalFrequency() {
|
|
18
19
|
const [x1, x2, x3, x4] = [1, 2, 3, 4].map((el) => (0, randint_1.randint)(1, 100));
|
|
@@ -62,7 +63,14 @@ function getMarginalAndConditionalFrequency() {
|
|
|
62
63
|
];
|
|
63
64
|
Calculs = Calculs.map((el) => (0, round_1.round)(el, 2));
|
|
64
65
|
const question = {
|
|
65
|
-
instruction:
|
|
66
|
+
instruction: `On considère le tableau d'effectifs suivant :
|
|
67
|
+
|
|
68
|
+
| |A|B|
|
|
69
|
+
|-|-|-|
|
|
70
|
+
|C|${x1}|${x2}|
|
|
71
|
+
|D|${x3}|${x4}|
|
|
72
|
+
|
|
73
|
+
Calculer la fréquence ${freqString[rand]}.`,
|
|
66
74
|
startStatement: `${frequences[rand]}`,
|
|
67
75
|
answer: Calculs[rand].toString(),
|
|
68
76
|
keys: ['f', 'cap', 'underscore'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"probabilityTree.d.ts","sourceRoot":"","sources":["../../../src/exercises/proba/probabilityTree.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,eAAe,EAAE,QAS7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"probabilityTree.d.ts","sourceRoot":"","sources":["../../../src/exercises/proba/probabilityTree.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,eAAe,EAAE,QAS7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CAyF7C"}
|
|
@@ -17,15 +17,19 @@ exports.probabilityTree = {
|
|
|
17
17
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getProbabilityTree, nb),
|
|
18
18
|
};
|
|
19
19
|
function getProbabilityTree() {
|
|
20
|
-
const A = (0, randint_1.randint)(
|
|
21
|
-
const B = (0, randint_1.randint)(
|
|
20
|
+
const A = (0, randint_1.randint)(2, 9);
|
|
21
|
+
const B = (0, randint_1.randint)(2, 10 - A);
|
|
22
|
+
const AC = (0, randint_1.randint)(2, 9);
|
|
23
|
+
const AD = (0, randint_1.randint)(2, 10 - AC);
|
|
24
|
+
const BC = (0, randint_1.randint)(2, 9);
|
|
25
|
+
const BD = (0, randint_1.randint)(2, 10 - BC);
|
|
22
26
|
const pA = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(A / (A + B)));
|
|
23
27
|
const pB = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(B / (A + B)));
|
|
24
|
-
const pA_C = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(
|
|
25
|
-
const pA_D = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(
|
|
26
|
-
const pB_C = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(
|
|
27
|
-
const pB_D = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(
|
|
28
|
-
let instruction =
|
|
28
|
+
const pA_C = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(AC / (AC + AD)));
|
|
29
|
+
const pA_D = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(AD / (AC + AD)));
|
|
30
|
+
const pB_C = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(BC / (BC + BD)));
|
|
31
|
+
const pB_D = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(BD / (BC + BD)));
|
|
32
|
+
let instruction = `En utilisant l'arbre de probabilité suivant, `;
|
|
29
33
|
let startStatement = '';
|
|
30
34
|
let answer = '';
|
|
31
35
|
const rand = (0, randint_1.randint)(1, 5);
|
|
@@ -55,11 +59,42 @@ function getProbabilityTree() {
|
|
|
55
59
|
break;
|
|
56
60
|
}
|
|
57
61
|
}
|
|
62
|
+
let commands = [
|
|
63
|
+
'Racine = Point({0,0})',
|
|
64
|
+
'A = Point({2,2})',
|
|
65
|
+
'B = Point({2,-2})',
|
|
66
|
+
'AC = Point({5,3})',
|
|
67
|
+
'AD = Point({5,1})',
|
|
68
|
+
'BC = Point({5,-1})',
|
|
69
|
+
'BD = Point({5,-3})',
|
|
70
|
+
'Segment(Racine,A)',
|
|
71
|
+
'Segment(A,AC)',
|
|
72
|
+
'Segment(A,AD)',
|
|
73
|
+
'Segment(Racine,B)',
|
|
74
|
+
'Segment(B,BC)',
|
|
75
|
+
'Segment(B,BD)',
|
|
76
|
+
'ShowAxes(false)',
|
|
77
|
+
'ShowGrid(false)',
|
|
78
|
+
`Text("${pA.toTex()}", (0.5, 2.5), true, true)`,
|
|
79
|
+
`Text("${pA_C.toTex()}", (3, 4), true, true)`,
|
|
80
|
+
`Text("${pA_D.toTex()}", (3, 1.5), true, true)`,
|
|
81
|
+
`Text("${pB.toTex()}", (0.5, -1), true, true)`,
|
|
82
|
+
`Text("${pB_C.toTex()}", (3, 0), true, true)`,
|
|
83
|
+
`Text("${pB_D.toTex()}", (3, -2.5), true, true)`,
|
|
84
|
+
'Text("A", (1.85 , 2.5))',
|
|
85
|
+
'Text("B", (1.85 , -2.7))',
|
|
86
|
+
'Text("C", (5.5 , 2.85))',
|
|
87
|
+
'Text("D", (5.5 , 0.85))',
|
|
88
|
+
'Text("C", (5.5 , -1.1))',
|
|
89
|
+
'Text("D", (5.5 , -3.1))',
|
|
90
|
+
];
|
|
58
91
|
const question = {
|
|
59
92
|
instruction,
|
|
60
93
|
startStatement,
|
|
61
94
|
answer,
|
|
62
95
|
keys: [],
|
|
96
|
+
commands,
|
|
97
|
+
coords: [-2, 8, -4, 4],
|
|
63
98
|
};
|
|
64
99
|
return question;
|
|
65
100
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arithmeticExplicitFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY9D,eAAO,MAAM,8BAA8B,EAAE,
|
|
1
|
+
{"version":3,"file":"arithmeticExplicitFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY9D,eAAO,MAAM,8BAA8B,EAAE,QAU5C,CAAC;AAEF,wBAAgB,iCAAiC,IAAI,QAAQ,CAe5D"}
|
|
@@ -13,6 +13,7 @@ exports.arithmeticExplicitFormulaUsage = {
|
|
|
13
13
|
isSingleStep: false,
|
|
14
14
|
section: 'Suites',
|
|
15
15
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticExplicitFormulaUsage, nb),
|
|
16
|
+
keys: ['r', 'n', 'u', 'underscore'],
|
|
16
17
|
};
|
|
17
18
|
function getArithmeticExplicitFormulaUsage() {
|
|
18
19
|
const askedRank = (0, randint_1.randint)(0, 10);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arithmeticFindExplicitFormula.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY9D,eAAO,MAAM,6BAA6B,EAAE,
|
|
1
|
+
{"version":3,"file":"arithmeticFindExplicitFormula.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY9D,eAAO,MAAM,6BAA6B,EAAE,QAU3C,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAe3D"}
|
|
@@ -13,6 +13,7 @@ exports.arithmeticFindExplicitFormula = {
|
|
|
13
13
|
isSingleStep: false,
|
|
14
14
|
section: 'Suites',
|
|
15
15
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticFindExplicitFormula, nb),
|
|
16
|
+
keys: ['r', 'n', 'u', 'underscore'],
|
|
16
17
|
};
|
|
17
18
|
function getArithmeticFindExplicitFormula() {
|
|
18
19
|
const firstRank = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arithmeticFindReason.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticFindReason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"arithmeticFindReason.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticFindReason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAK9D,eAAO,MAAM,oBAAoB,EAAE,QAWlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAclD"}
|
|
@@ -11,6 +11,7 @@ exports.arithmeticFindReason = {
|
|
|
11
11
|
levels: ['1', '0'],
|
|
12
12
|
isSingleStep: false,
|
|
13
13
|
section: 'Suites',
|
|
14
|
+
keys: ['r', 'n', 'u', 'underscore'],
|
|
14
15
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticFindReason, nb),
|
|
15
16
|
};
|
|
16
17
|
function getArithmeticFindReason() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arithmeticReasonUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticReasonUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"arithmeticReasonUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticReasonUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAYnD"}
|
|
@@ -12,6 +12,7 @@ exports.arithmeticReasonUsage = {
|
|
|
12
12
|
isSingleStep: false,
|
|
13
13
|
section: 'Suites',
|
|
14
14
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticReasonUsage, nb),
|
|
15
|
+
keys: ['r', 'n', 'u', 'underscore'],
|
|
15
16
|
};
|
|
16
17
|
function getArithmeticReasonUsage() {
|
|
17
18
|
const reason = (0, randint_1.randint)(-10, 10, [0]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arithmeticRecurrenceFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAoB,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIhF,eAAO,MAAM,gCAAgC,EAAE,
|
|
1
|
+
{"version":3,"file":"arithmeticRecurrenceFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAoB,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIhF,eAAO,MAAM,gCAAgC,EAAE,QAU9C,CAAC;AAEF,wBAAgB,mCAAmC,IAAI,QAAQ,CAa9D"}
|
|
@@ -12,6 +12,7 @@ exports.arithmeticRecurrenceFormulaUsage = {
|
|
|
12
12
|
isSingleStep: false,
|
|
13
13
|
section: 'Suites',
|
|
14
14
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticRecurrenceFormulaUsage, nb),
|
|
15
|
+
keys: ['r', 'n', 'u', 'underscore'],
|
|
15
16
|
};
|
|
16
17
|
function getArithmeticRecurrenceFormulaUsage() {
|
|
17
18
|
const firstRank = (0, randint_1.randint)(1, 20);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arithmeticThresholdFind.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticThresholdFind.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGpD,eAAO,MAAM,uBAAuB,EAAE,
|
|
1
|
+
{"version":3,"file":"arithmeticThresholdFind.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticThresholdFind.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGpD,eAAO,MAAM,uBAAuB,EAAE,QAUrC,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,QAAQ,CA0BrD"}
|
|
@@ -13,6 +13,7 @@ exports.arithmeticThresholdFind = {
|
|
|
13
13
|
isSingleStep: false,
|
|
14
14
|
section: 'Suites',
|
|
15
15
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticThresholdFind, nb),
|
|
16
|
+
keys: ['r', 'n', 'u', 'underscore', 'inf', 'sup', 'approx'],
|
|
16
17
|
};
|
|
17
18
|
function getArithmeticThresholdFind() {
|
|
18
19
|
const firstValue = (0, randint_1.randint)(-10, 10);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geometricExplicitFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricExplicitFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,6BAA6B,EAAE,
|
|
1
|
+
{"version":3,"file":"geometricExplicitFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricExplicitFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,6BAA6B,EAAE,QAU3C,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAiB3D"}
|
|
@@ -17,6 +17,7 @@ exports.geometricExplicitFormulaUsage = {
|
|
|
17
17
|
isSingleStep: false,
|
|
18
18
|
section: 'Suites',
|
|
19
19
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getGeometricExplicitFormulaUsage, nb),
|
|
20
|
+
keys: ['n', 'u', 'underscore'],
|
|
20
21
|
};
|
|
21
22
|
function getGeometricExplicitFormulaUsage() {
|
|
22
23
|
const askedRank = (0, randint_1.randint)(0, 10);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geometricFindExplicitFormula.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricFindExplicitFormula.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,4BAA4B,EAAE,
|
|
1
|
+
{"version":3,"file":"geometricFindExplicitFormula.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricFindExplicitFormula.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,4BAA4B,EAAE,QAU1C,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAgB1D"}
|
|
@@ -17,6 +17,7 @@ exports.geometricFindExplicitFormula = {
|
|
|
17
17
|
isSingleStep: false,
|
|
18
18
|
section: 'Suites',
|
|
19
19
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getGeometricFindExplicitFormula, nb),
|
|
20
|
+
keys: ['q', 'n', 'u', 'underscore'],
|
|
20
21
|
};
|
|
21
22
|
function getGeometricFindExplicitFormula() {
|
|
22
23
|
const firstRank = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geometricFindReason.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricFindReason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"geometricFindReason.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricFindReason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,mBAAmB,EAAE,QAUjC,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,QAAQ,CAajD"}
|
|
@@ -12,6 +12,7 @@ exports.geometricFindReason = {
|
|
|
12
12
|
isSingleStep: false,
|
|
13
13
|
section: 'Suites',
|
|
14
14
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getGeometricFindReason, nb),
|
|
15
|
+
keys: ['q', 'n', 'u', 'underscore'],
|
|
15
16
|
};
|
|
16
17
|
function getGeometricFindReason() {
|
|
17
18
|
const rank1 = (0, randint_1.randint)(0, 10);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geometricReasonUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricReasonUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"geometricReasonUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricReasonUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAYlD"}
|
|
@@ -12,6 +12,7 @@ exports.geometricReasonUsage = {
|
|
|
12
12
|
isSingleStep: false,
|
|
13
13
|
section: 'Suites',
|
|
14
14
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getGeometricReasonUsage, nb),
|
|
15
|
+
keys: ['q', 'n', 'u', 'underscore'],
|
|
15
16
|
};
|
|
16
17
|
function getGeometricReasonUsage() {
|
|
17
18
|
const reason = (0, randint_1.randint)(2, 10);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geometricRecurrenceFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIhF,UAAU,sCAAuC,SAAQ,gBAAgB;IACvE,IAAI,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,+BAA+B,EAAE,
|
|
1
|
+
{"version":3,"file":"geometricRecurrenceFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIhF,UAAU,sCAAuC,SAAQ,gBAAgB;IACvE,IAAI,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,+BAA+B,EAAE,QAY7C,CAAC;AAEF,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,sCAAsC,GAAG,QAAQ,CAa5G"}
|