math-exercises 1.3.23 → 1.3.25
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 +2 -0
- package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts.map +1 -1
- package/lib/exercises/calcul/addAndSubWithoutRelatives.js +2 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +2 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +2 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +2 -0
- package/lib/exercises/calcul/fractions/fractionsDivision.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsDivision.js +2 -0
- package/lib/exercises/calcul/fractions/fractionsProduct.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsProduct.js +2 -0
- package/lib/exercises/calcul/fractions/fractionsSum.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsSum.js +2 -0
- package/lib/exercises/calcul/fractions/simplifyFraction.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/simplifyFraction.js +2 -0
- package/lib/exercises/calcul/operations/operationsPriorities.d.ts.map +1 -1
- package/lib/exercises/calcul/operations/operationsPriorities.js +2 -0
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.js +2 -0
- package/lib/exercises/calcul/rounding/rounding.d.ts.map +1 -1
- package/lib/exercises/calcul/rounding/rounding.js +2 -0
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +2 -0
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +2 -0
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +2 -0
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +2 -0
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +2 -0
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.js +3 -2
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +2 -0
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +2 -0
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +2 -0
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +2 -0
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.js +10 -19
- package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.d.ts +1 -1
- package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.js +12 -21
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.js +2 -0
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.js +2 -0
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.js +2 -0
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +2 -0
- package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/thirdDegreeDerivative.js +3 -1
- package/lib/exercises/derivation/derivative/usualderivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/usualderivative.js +11 -4
- package/lib/exercises/exercise.d.ts +2 -0
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/exercises.d.ts.map +1 -1
- package/lib/exercises/exercises.js +2 -0
- package/lib/exercises/geometry/cartesian/midpoint.d.ts.map +1 -1
- package/lib/exercises/geometry/cartesian/midpoint.js +2 -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 +1 -1
- package/lib/exercises/percent/applyPercent.d.ts.map +1 -1
- package/lib/exercises/percent/applyPercent.js +5 -5
- package/lib/exercises/percent/averageEvolutionRate.d.ts +1 -1
- package/lib/exercises/percent/averageEvolutionRate.d.ts.map +1 -1
- package/lib/exercises/percent/averageEvolutionRate.js +3 -1
- package/lib/exercises/percent/globalPercent.d.ts +1 -1
- package/lib/exercises/percent/globalPercent.d.ts.map +1 -1
- package/lib/exercises/percent/globalPercent.js +4 -4
- package/lib/exercises/percent/reciprocalPercentage.d.ts +1 -1
- package/lib/exercises/percent/reciprocalPercentage.d.ts.map +1 -1
- package/lib/exercises/percent/reciprocalPercentage.js +6 -9
- package/lib/exercises/powers/powersDivision.d.ts.map +1 -1
- package/lib/exercises/powers/powersDivision.js +2 -0
- package/lib/exercises/powers/powersOfTenToDecimal.d.ts.map +1 -1
- package/lib/exercises/powers/powersOfTenToDecimal.js +2 -0
- package/lib/exercises/powers/powersPower.d.ts.map +1 -1
- package/lib/exercises/powers/powersPower.js +2 -0
- package/lib/exercises/powers/powersProduct.d.ts.map +1 -1
- package/lib/exercises/powers/powersProduct.js +2 -0
- package/lib/exercises/powers/scientificToDecimal.d.ts.map +1 -1
- package/lib/exercises/powers/scientificToDecimal.js +2 -0
- package/lib/exercises/proba/conditionalProbability.d.ts.map +1 -1
- package/lib/exercises/proba/conditionalProbability.js +2 -0
- package/lib/exercises/proba/marginalAndConditionalFrequency.d.ts +4 -0
- package/lib/exercises/proba/marginalAndConditionalFrequency.d.ts.map +1 -0
- package/lib/exercises/proba/marginalAndConditionalFrequency.js +73 -0
- package/lib/exercises/proba/probabilityTree.d.ts +4 -0
- package/lib/exercises/proba/probabilityTree.d.ts.map +1 -0
- package/lib/exercises/proba/probabilityTree.js +66 -0
- package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +2 -0
- package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.js +2 -0
- package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticFindReason.js +2 -0
- package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.js +2 -0
- package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +2 -0
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.js +2 -0
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +2 -0
- package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.js +2 -0
- package/lib/exercises/sequences/geometric/geometricFindReason.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricFindReason.js +2 -0
- package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricReasonUsage.js +2 -0
- package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.js +2 -0
- package/lib/exercises/squareRoots/simpifySquareRoot.d.ts.map +1 -1
- package/lib/exercises/squareRoots/simpifySquareRoot.js +2 -0
- package/lib/exercises/trigonometry/mainRemarkableValues.d.ts.map +1 -1
- package/lib/exercises/trigonometry/mainRemarkableValues.js +2 -0
- package/lib/exercises/trigonometry/remarkableValues.d.ts.map +1 -1
- package/lib/exercises/trigonometry/remarkableValues.js +2 -0
- package/package.json +2 -2
- 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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMarginalAndConditionalFrequency = exports.marginalAndConditionalFrequency = void 0;
|
|
4
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
5
|
+
const round_1 = require("../../math/utils/round");
|
|
6
|
+
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
7
|
+
exports.marginalAndConditionalFrequency = {
|
|
8
|
+
id: 'marginalAndConditionalFrequency',
|
|
9
|
+
connector: '=',
|
|
10
|
+
instruction: '',
|
|
11
|
+
label: 'Calculs de fréquences marginales et conditionnelles',
|
|
12
|
+
levels: ['1', '0'],
|
|
13
|
+
isSingleStep: false,
|
|
14
|
+
section: 'Probabilités',
|
|
15
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getMarginalAndConditionalFrequency, nb),
|
|
16
|
+
keys: ['f', 'cap', 'underscore'],
|
|
17
|
+
};
|
|
18
|
+
function getMarginalAndConditionalFrequency() {
|
|
19
|
+
const [x1, x2, x3, x4] = [1, 2, 3, 4].map((el) => (0, randint_1.randint)(1, 100));
|
|
20
|
+
const x = x1 + x2 + x3 + x4;
|
|
21
|
+
const rand = (0, randint_1.randint)(0, 12);
|
|
22
|
+
const freqString = [
|
|
23
|
+
'marginale de A',
|
|
24
|
+
'marginale de B',
|
|
25
|
+
'marginale de C',
|
|
26
|
+
'marginale de D',
|
|
27
|
+
'conditionnelle de A parmi C',
|
|
28
|
+
'conditionnelle de A parmi D',
|
|
29
|
+
'conditionnelle de B parmi C',
|
|
30
|
+
'conditionnelle de B parmi D',
|
|
31
|
+
'conditionnelle de C parmi A',
|
|
32
|
+
'conditionnelle de C parmi B',
|
|
33
|
+
'conditionnelle de D parmi A',
|
|
34
|
+
'conditionnelle de D parmi B',
|
|
35
|
+
];
|
|
36
|
+
const frequences = [
|
|
37
|
+
'f(A)',
|
|
38
|
+
'f(B)',
|
|
39
|
+
'f(C)',
|
|
40
|
+
'f(D)',
|
|
41
|
+
'f_C(A)',
|
|
42
|
+
'f_D(A)',
|
|
43
|
+
'f_C(B)',
|
|
44
|
+
'f_D(B)',
|
|
45
|
+
'f_A(C)',
|
|
46
|
+
'f_B(C)',
|
|
47
|
+
'f_A(D)',
|
|
48
|
+
'f_B(D)',
|
|
49
|
+
];
|
|
50
|
+
let Calculs = [
|
|
51
|
+
(x1 + x3) / x,
|
|
52
|
+
(x2 + x4) / x,
|
|
53
|
+
(x1 + x2) / x,
|
|
54
|
+
(x3 + x4) / x,
|
|
55
|
+
x1 / (x1 + x2),
|
|
56
|
+
x3 / (x3 + x4),
|
|
57
|
+
x2 / (x1 + x2),
|
|
58
|
+
x4 / (x3 + x4),
|
|
59
|
+
x1 / (x1 + x3),
|
|
60
|
+
x3 / (x1 + x3),
|
|
61
|
+
x2 / (x2 + x4),
|
|
62
|
+
x4 / (x2 + x4),
|
|
63
|
+
];
|
|
64
|
+
Calculs = Calculs.map((el) => (0, round_1.round)(el, 2));
|
|
65
|
+
const question = {
|
|
66
|
+
instruction: `$|\\;\\;\\;| A | B | \\\\ | C | ${x1} | ${x2} | \\\\| D | ${x3} | ${x4} |\\\\$ Calculer la fréquence ${freqString[rand]}`,
|
|
67
|
+
startStatement: `${frequences[rand]}`,
|
|
68
|
+
answer: Calculs[rand].toString(),
|
|
69
|
+
keys: ['f', 'cap', 'underscore'],
|
|
70
|
+
};
|
|
71
|
+
return question;
|
|
72
|
+
}
|
|
73
|
+
exports.getMarginalAndConditionalFrequency = getMarginalAndConditionalFrequency;
|
|
@@ -0,0 +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,CAqD7C"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getProbabilityTree = exports.probabilityTree = void 0;
|
|
4
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
5
|
+
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
6
|
+
const multiplyNode_1 = require("../../tree/nodes/operators/multiplyNode");
|
|
7
|
+
const simplify_1 = require("../../tree/parsers/simplify");
|
|
8
|
+
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
9
|
+
exports.probabilityTree = {
|
|
10
|
+
id: 'probabilityTree',
|
|
11
|
+
connector: '=',
|
|
12
|
+
instruction: '',
|
|
13
|
+
label: 'Calculs dans un arbre pondéré',
|
|
14
|
+
levels: ['1', '0'],
|
|
15
|
+
isSingleStep: false,
|
|
16
|
+
section: 'Probabilités',
|
|
17
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getProbabilityTree, nb),
|
|
18
|
+
};
|
|
19
|
+
function getProbabilityTree() {
|
|
20
|
+
const A = (0, randint_1.randint)(4, 9);
|
|
21
|
+
const B = (0, randint_1.randint)(4, 10 - A);
|
|
22
|
+
const pA = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(A / (A + B)));
|
|
23
|
+
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((A - 1) / (A + B - 1)));
|
|
25
|
+
const pA_D = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(B / (A + B - 1)));
|
|
26
|
+
const pB_C = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(A / (A + B - 1)));
|
|
27
|
+
const pB_D = (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode((B - 1) / (A + B - 1)));
|
|
28
|
+
let instruction = `$P(A) = ${pA.toTex()}, P(B) = ${pB.toTex()}$.$\\\\$ $P_A(C) = ${pA_C.toTex()}, P_A(D) = ${pA_D.toTex()}, P_B(C) = ${pB_C.toTex()}, P_B(D) = ${pB_D.toTex()}$.`;
|
|
29
|
+
let startStatement = '';
|
|
30
|
+
let answer = '';
|
|
31
|
+
const rand = (0, randint_1.randint)(1, 5);
|
|
32
|
+
switch (rand) {
|
|
33
|
+
case 1: {
|
|
34
|
+
instruction += `$\\\\$ Calculer $P(A \\cap C)$`;
|
|
35
|
+
startStatement = `P(A \\cap C)`;
|
|
36
|
+
answer = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(pA, pA_C)).toTex();
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
case 2: {
|
|
40
|
+
instruction += `$\\\\$ Calculer $P(A \\cap D)$`;
|
|
41
|
+
startStatement = `P(A \\cap D)`;
|
|
42
|
+
answer = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(pA, pA_D)).toTex();
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
case 3: {
|
|
46
|
+
instruction += `$\\\\$ Calculer $P(B \\cap C)$`;
|
|
47
|
+
startStatement = `P(B \\cap C)`;
|
|
48
|
+
answer = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(pB, pB_C)).toTex();
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
case 4: {
|
|
52
|
+
instruction += `$\\\\$ Calculer $P(B \\cap D)$`;
|
|
53
|
+
startStatement = `P(B \\cap D)`;
|
|
54
|
+
answer = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(pB, pB_D)).toTex();
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const question = {
|
|
59
|
+
instruction,
|
|
60
|
+
startStatement,
|
|
61
|
+
answer,
|
|
62
|
+
keys: [],
|
|
63
|
+
};
|
|
64
|
+
return question;
|
|
65
|
+
}
|
|
66
|
+
exports.getProbabilityTree = getProbabilityTree;
|
|
@@ -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);
|
|
@@ -23,6 +24,7 @@ function getArithmeticExplicitFormulaUsage() {
|
|
|
23
24
|
instruction: `$(u_n)$ est une suite arithmétique définie par $u_n = ${polynomial.toString()}$. Calculer :`,
|
|
24
25
|
startStatement: `u_{${askedRank}}`,
|
|
25
26
|
answer: (firstValue + askedRank * reason).toString(),
|
|
27
|
+
keys: ['r', 'n', 'u', 'underscore'],
|
|
26
28
|
};
|
|
27
29
|
return question;
|
|
28
30
|
}
|
|
@@ -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;
|
|
@@ -23,6 +24,7 @@ function getArithmeticFindExplicitFormula() {
|
|
|
23
24
|
instruction: `$(u_n)$ est une suite arithmétique de premier terme $u_{${firstRank}} = ${firstValue}$ et de raison $r = ${reason}$. $\\\\$ Donner l'expression de $u_n$ en fonction de $n$.`,
|
|
24
25
|
startStatement: 'u_n',
|
|
25
26
|
answer: formula.toString(),
|
|
27
|
+
keys: ['r', 'n', 'u', 'underscore'],
|
|
26
28
|
};
|
|
27
29
|
return question;
|
|
28
30
|
}
|
|
@@ -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() {
|
|
@@ -23,6 +24,7 @@ function getArithmeticFindReason() {
|
|
|
23
24
|
instruction: `$(u_n)$ est une suite arithmétique. On sait que $u_{${rank1}} = ${value1}$ et $u_{${rank2}} = ${value2}$. Quelle est la raison de la suite $(u_n)$ ?`,
|
|
24
25
|
startStatement: 'r',
|
|
25
26
|
answer: reason.toString(),
|
|
27
|
+
keys: ['r', 'n', 'u', 'underscore'],
|
|
26
28
|
};
|
|
27
29
|
return question;
|
|
28
30
|
}
|
|
@@ -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]);
|
|
@@ -22,6 +23,7 @@ function getArithmeticReasonUsage() {
|
|
|
22
23
|
instruction: `$(u_n)$ est une suite arithmétique de raison $r = ${reason}$ et on sait que $u_{${startRank}} = ${startValue}$. Calculer : `,
|
|
23
24
|
startStatement: `u_{${askedRank}}`,
|
|
24
25
|
answer: (startValue + reason).toString(),
|
|
26
|
+
keys: ['r', 'n', 'u', 'underscore'],
|
|
25
27
|
};
|
|
26
28
|
return question;
|
|
27
29
|
}
|
|
@@ -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);
|
|
@@ -22,6 +23,7 @@ function getArithmeticRecurrenceFormulaUsage() {
|
|
|
22
23
|
instruction: `$(u_n)$ est une suite définie par $u_{n+1} = ${reason} + u_n$ et $u_{${firstRank}} = ${firstValue}$. Calculer :`,
|
|
23
24
|
startStatement: `u_{${askedRank}}`,
|
|
24
25
|
answer: (firstValue + reason).toString(),
|
|
26
|
+
keys: ['r', 'n', 'u', 'underscore'],
|
|
25
27
|
};
|
|
26
28
|
return question;
|
|
27
29
|
}
|
|
@@ -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);
|
|
@@ -33,6 +34,7 @@ function getArithmeticThresholdFind() {
|
|
|
33
34
|
instruction,
|
|
34
35
|
startStatement: `n`,
|
|
35
36
|
answer: (Math.floor((randValue - firstValue) / reason) + 1).toString(),
|
|
37
|
+
keys: ['r', 'n', 'u', 'underscore', 'inf', 'sup', 'approx'],
|
|
36
38
|
};
|
|
37
39
|
return question;
|
|
38
40
|
}
|
|
@@ -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);
|
|
@@ -28,6 +29,7 @@ function getGeometricExplicitFormulaUsage() {
|
|
|
28
29
|
instruction: `$(u_n)$ est une suite géométrique définie par $u_n = ${formulaTex}$. Calculer :`,
|
|
29
30
|
startStatement: `u_{${askedRank}}`,
|
|
30
31
|
answer: (firstValue * Math.pow(reason, askedRank)).toString(),
|
|
32
|
+
keys: ['n', 'u', 'underscore'],
|
|
31
33
|
};
|
|
32
34
|
return question;
|
|
33
35
|
}
|
|
@@ -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;
|
|
@@ -27,6 +28,7 @@ function getGeometricFindExplicitFormula() {
|
|
|
27
28
|
instruction: `$(u_n)$ est une suite géométrique de premier terme $u_{${firstRank}} = ${firstValue}$ et de raison $q = ${reason}$. $\\\\$ Donner l'expression de $u_n$ en fonction de $n$.`,
|
|
28
29
|
startStatement: 'u_n',
|
|
29
30
|
answer: (0, simplify_1.simplifyNode)(formula).toTex(),
|
|
31
|
+
keys: ['q', 'n', 'u', 'underscore'],
|
|
30
32
|
};
|
|
31
33
|
return question;
|
|
32
34
|
}
|
|
@@ -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);
|
|
@@ -23,6 +24,7 @@ function getGeometricFindReason() {
|
|
|
23
24
|
instruction: `$(u_n)$ est une suite géométrique. On sait que $u_{${rank1}} = ${value1}$ et $u_{${rank2}} = ${value2}$. Quelle est la raison de la suite $(u_n)$ ?`,
|
|
24
25
|
startStatement: 'q',
|
|
25
26
|
answer: reason.toString(),
|
|
27
|
+
keys: ['q', 'n', 'u', 'underscore'],
|
|
26
28
|
};
|
|
27
29
|
return question;
|
|
28
30
|
}
|
|
@@ -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);
|
|
@@ -22,6 +23,7 @@ function getGeometricReasonUsage() {
|
|
|
22
23
|
instruction: `$(u_n)$ est une suite géométrique de raison $q = ${reason}$ et on sait que $u_{${startRank}} = ${startValue}$. Calculer : `,
|
|
23
24
|
startStatement: `u_{${askedRank}}`,
|
|
24
25
|
answer: (startValue * reason).toString(),
|
|
26
|
+
keys: ['q', 'n', 'u', 'underscore'],
|
|
25
27
|
};
|
|
26
28
|
return question;
|
|
27
29
|
}
|
|
@@ -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"}
|
|
@@ -11,6 +11,7 @@ exports.geometricRecurrenceFormulaUsage = {
|
|
|
11
11
|
levels: ['1', '0'],
|
|
12
12
|
isSingleStep: false,
|
|
13
13
|
section: 'Suites',
|
|
14
|
+
keys: ['q', 'n', 'u', 'underscore'],
|
|
14
15
|
generator: (nb, options) => (0, getDistinctQuestions_1.getDistinctQuestions)(getGeometricRecurrenceFormulaUsage, nb),
|
|
15
16
|
};
|
|
16
17
|
function getGeometricRecurrenceFormulaUsage(options) {
|
|
@@ -22,6 +23,7 @@ function getGeometricRecurrenceFormulaUsage(options) {
|
|
|
22
23
|
instruction: `$(u_n)$ est une suite définie par $u_{n+1} = ${reason}\\times u_n$ et $u_{${firstRank}} = ${firstValue}$. Calculer :`,
|
|
23
24
|
startStatement: `u_{${askedRank}}`,
|
|
24
25
|
answer: (firstValue * reason).toString(),
|
|
26
|
+
keys: ['q', 'n', 'u', 'underscore'],
|
|
25
27
|
};
|
|
26
28
|
return question;
|
|
27
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simpifySquareRoot.d.ts","sourceRoot":"","sources":["../../../src/exercises/squareRoots/simpifySquareRoot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"simpifySquareRoot.d.ts","sourceRoot":"","sources":["../../../src/exercises/squareRoots/simpifySquareRoot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAWhD"}
|
|
@@ -12,6 +12,7 @@ exports.simplifySquareRoot = {
|
|
|
12
12
|
isSingleStep: false,
|
|
13
13
|
section: 'Racines carrées',
|
|
14
14
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getSimplifySquareRoot, nb),
|
|
15
|
+
keys: [],
|
|
15
16
|
};
|
|
16
17
|
function getSimplifySquareRoot() {
|
|
17
18
|
const squareRoot = squareRoot_1.SquareRootConstructor.randomSimplifiable({
|
|
@@ -21,6 +22,7 @@ function getSimplifySquareRoot() {
|
|
|
21
22
|
const question = {
|
|
22
23
|
startStatement: squareRoot.toTree().toTex(),
|
|
23
24
|
answer: squareRoot.simplify().toTree().toTex(),
|
|
25
|
+
keys: [],
|
|
24
26
|
};
|
|
25
27
|
return question;
|
|
26
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mainRemarkableValues.d.ts","sourceRoot":"","sources":["../../../src/exercises/trigonometry/mainRemarkableValues.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,4BAA4B,EAAE,
|
|
1
|
+
{"version":3,"file":"mainRemarkableValues.d.ts","sourceRoot":"","sources":["../../../src/exercises/trigonometry/mainRemarkableValues.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,4BAA4B,EAAE,QAU1C,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAalD"}
|
|
@@ -13,6 +13,7 @@ exports.mainRemarkableValuesExercise = {
|
|
|
13
13
|
isSingleStep: false,
|
|
14
14
|
section: 'Trigonométrie',
|
|
15
15
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getMainRemarkableValues, nb),
|
|
16
|
+
keys: ['pi', 'cos', 'sin'],
|
|
16
17
|
};
|
|
17
18
|
function getMainRemarkableValues() {
|
|
18
19
|
const isCos = (0, coinFlip_1.coinFlip)();
|
|
@@ -22,6 +23,7 @@ function getMainRemarkableValues() {
|
|
|
22
23
|
? `\\cos\\left(${remarkableValue.angle.toTex()}\\right)`
|
|
23
24
|
: `\\sin\\left(${remarkableValue.angle.toTex()}\\right)`,
|
|
24
25
|
answer: isCos ? remarkableValue.cos.toTex() : remarkableValue.sin.toTex(),
|
|
26
|
+
keys: ['pi', 'cos', 'sin'],
|
|
25
27
|
};
|
|
26
28
|
return question;
|
|
27
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remarkableValues.d.ts","sourceRoot":"","sources":["../../../src/exercises/trigonometry/remarkableValues.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"remarkableValues.d.ts","sourceRoot":"","sources":["../../../src/exercises/trigonometry/remarkableValues.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,wBAAwB,EAAE,QAUtC,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAW9C"}
|
|
@@ -13,6 +13,7 @@ exports.remarkableValuesExercise = {
|
|
|
13
13
|
isSingleStep: false,
|
|
14
14
|
section: 'Trigonométrie',
|
|
15
15
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getRemarkableValues, nb),
|
|
16
|
+
keys: ['pi', 'cos', 'sin'],
|
|
16
17
|
};
|
|
17
18
|
function getRemarkableValues() {
|
|
18
19
|
const isCos = (0, coinFlip_1.coinFlip)();
|
|
@@ -22,6 +23,7 @@ function getRemarkableValues() {
|
|
|
22
23
|
? `\\cos\\left(${remarkableValue.angle.toTex()}\\right)`
|
|
23
24
|
: `\\sin\\left(${remarkableValue.angle.toTex()}\\right)`,
|
|
24
25
|
answer: isCos ? remarkableValue.cos.toTex() : remarkableValue.sin.toTex(),
|
|
26
|
+
keys: ['pi', 'cos', 'sin'],
|
|
25
27
|
};
|
|
26
28
|
return question;
|
|
27
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "math-exercises",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.25",
|
|
4
4
|
"description": "Math exercises generator for middle school and high school",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dev": "nodemon",
|
|
11
11
|
"start": "ts-node -r tsconfig-paths/register src/index.ts",
|
|
12
12
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
13
|
-
"
|
|
13
|
+
"prepublishOnly": "npm run build",
|
|
14
14
|
"build": "tsc && tsc-alias"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [],
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"affineDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/affineDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,eAAO,MAAM,gBAAgB,EAAE,QAS9B,CAAC;AAEF,wBAAgB,2BAA2B,IAAI,QAAQ,CAUtD"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAffineDerivativeQuestion = exports.affineDerivative = void 0;
|
|
4
|
-
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
5
|
-
const affine_1 = require("../../../math/polynomials/affine");
|
|
6
|
-
const randint_1 = require("../../../math/utils/random/randint");
|
|
7
|
-
exports.affineDerivative = {
|
|
8
|
-
id: 'affineDerivative',
|
|
9
|
-
connector: '=',
|
|
10
|
-
instruction: '',
|
|
11
|
-
isSingleStep: false,
|
|
12
|
-
label: "Calculer la dérivée d'une fonction affine",
|
|
13
|
-
levels: ['1, 0'],
|
|
14
|
-
section: 'Dérivation',
|
|
15
|
-
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getAffineDerivativeQuestion, nb),
|
|
16
|
-
};
|
|
17
|
-
function getAffineDerivativeQuestion() {
|
|
18
|
-
const a = (0, randint_1.randint)(-20, 20, [0]);
|
|
19
|
-
const b = (0, randint_1.randint)(-20, 20);
|
|
20
|
-
const affine = new affine_1.Affine(a, b);
|
|
21
|
-
return {
|
|
22
|
-
instruction: `Soit $f(x) = ${affine.toTex()}$. Déterminer la fonction dérivée $f'$ de $f$.`,
|
|
23
|
-
startStatement: `f'(x)`,
|
|
24
|
-
answer: a.toString(),
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
exports.getAffineDerivativeQuestion = getAffineDerivativeQuestion;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=secondDegreeDerivative.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secondDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/secondDegreeDerivative.ts"],"names":[],"mappings":""}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { Exercise, Question } from '../../../exercises/exercise';
|
|
3
|
-
// import { getDistinctQuestions } from '../../../exercises/utils/getDistinctQuestions';
|
|
4
|
-
// import { Vector } from '../../../math/geometry/vector';
|
|
5
|
-
// import { Affine, AffineConstructor } from '../../../math/polynomials/affine';
|
|
6
|
-
// import { Polynomial } from '../../../math/polynomials/polynomial';
|
|
7
|
-
// import { randint } from '../../../math/utils/random/randint';
|
|
8
|
-
// import { distinctRandTupleInt } from '../../../math/utils/random/randTupleInt';
|
|
9
|
-
// import { NumberNode } from '../../../tree/nodes/numbers/numberNode';
|
|
10
|
-
// export const secondDegreeDerivative: Exercise = {
|
|
11
|
-
// id: 'secondDegreeDerivative',
|
|
12
|
-
// connector: '=',
|
|
13
|
-
// instruction: '',
|
|
14
|
-
// isSingleStep: false,
|
|
15
|
-
// label: "Calculer la dérivée d'une fonction du second degré",
|
|
16
|
-
// levels: ['1, 0'],
|
|
17
|
-
// section: 'Dérivation',
|
|
18
|
-
// generator: (nb: number) => getDistinctQuestions(getSecondDegreeDerivativeQuestion, nb),
|
|
19
|
-
// };
|
|
20
|
-
// export function getSecondDegreeDerivativeQuestion(): Question {
|
|
21
|
-
// const polynom = new Polynomial([randint(-20, 20, [0]), randint(-20, 20), randint(-20, 20)]);
|
|
22
|
-
// const answer = polynom.derivate();
|
|
23
|
-
// return {
|
|
24
|
-
// instruction: `Soit $f(x) = ${polynom.toTex()}$. Déterminer la fonction dérivée $f'$ de $f$.`,
|
|
25
|
-
// startStatement: `$f'(x)$`,
|
|
26
|
-
// answer: a.toString(),
|
|
27
|
-
// };
|
|
28
|
-
// }
|