math-exercises 1.3.29 → 1.3.31
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/fractions/fractionAndIntegerDivision.js +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +1 -1
- package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.js +9 -9
- package/lib/exercises/calcul/fractions/fractionsDivision.js +1 -1
- package/lib/exercises/calcul/fractions/fractionsProduct.js +1 -1
- package/lib/exercises/calcul/fractions/fractionsSum.js +1 -1
- package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.js +2 -2
- package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.js +2 -2
- package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.js +2 -2
- package/lib/exercises/calcul/mentalCaluls.ts/mentalPercentage.js +1 -1
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.js +4 -4
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +1 -1
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +1 -1
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +1 -1
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +1 -1
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.js +1 -1
- package/lib/exercises/conversion/aeraConversion.d.ts +4 -0
- package/lib/exercises/conversion/aeraConversion.d.ts.map +1 -0
- package/lib/exercises/conversion/aeraConversion.js +32 -0
- package/lib/exercises/conversion/capacityConversion.d.ts +4 -0
- package/lib/exercises/conversion/capacityConversion.d.ts.map +1 -0
- package/lib/exercises/conversion/capacityConversion.js +30 -0
- package/lib/exercises/conversion/lengthConversion.d.ts +4 -0
- package/lib/exercises/conversion/lengthConversion.d.ts.map +1 -0
- package/lib/exercises/conversion/lengthConversion.js +30 -0
- package/lib/exercises/conversion/massConversion.d.ts +4 -0
- package/lib/exercises/conversion/massConversion.d.ts.map +1 -0
- package/lib/exercises/conversion/massConversion.js +30 -0
- package/lib/exercises/conversion/volumeCapacityConversion.d.ts +4 -0
- package/lib/exercises/conversion/volumeCapacityConversion.d.ts.map +1 -0
- package/lib/exercises/conversion/volumeCapacityConversion.js +47 -0
- package/lib/exercises/conversion/volumeConversion.d.ts +4 -0
- package/lib/exercises/conversion/volumeConversion.d.ts.map +1 -0
- package/lib/exercises/conversion/volumeConversion.js +32 -0
- package/lib/exercises/derivation/derivative/constanteDerivative.js +1 -1
- package/lib/exercises/derivation/derivative/firstDegreeDerivative.js +1 -1
- package/lib/exercises/derivation/derivative/inverseFunctionDerivative.js +1 -1
- package/lib/exercises/derivation/derivative/powerFunctionDerivative.js +1 -1
- package/lib/exercises/derivation/derivative/rootFunctionDerivative.js +3 -3
- package/lib/exercises/derivation/derivative/secondDegreeDerivative.js +1 -1
- package/lib/exercises/derivation/derivative/thirdDegreeDerivative.js +1 -1
- package/lib/exercises/derivation/derivative/usualderivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/usualderivative.js +2 -11
- package/lib/exercises/exercise.d.ts +1 -0
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/exercises.d.ts.map +1 -1
- package/lib/exercises/exercises.js +15 -0
- package/lib/exercises/geometry/cartesian/derivativeNumberReading.js +1 -1
- package/lib/exercises/percent/applyPercent.d.ts.map +1 -1
- package/lib/exercises/percent/applyPercent.js +2 -2
- package/lib/exercises/percent/averageEvolutionRate.d.ts.map +1 -1
- package/lib/exercises/percent/averageEvolutionRate.js +1 -1
- package/lib/exercises/percent/reciprocalPercentage.js +1 -1
- package/lib/exercises/proba/conditionalProbability.d.ts.map +1 -1
- package/lib/exercises/proba/conditionalProbability.js +13 -13
- package/lib/exercises/proba/marginalAndConditionalFrequency.d.ts.map +1 -1
- package/lib/exercises/proba/marginalAndConditionalFrequency.js +5 -4
- package/lib/exercises/proba/probabilityTree.d.ts.map +1 -1
- package/lib/exercises/proba/probabilityTree.js +12 -7
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.js +2 -3
- package/lib/math/geometry/point.d.ts +13 -0
- package/lib/math/geometry/point.d.ts.map +1 -1
- package/lib/math/geometry/point.js +13 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ const coinFlip_1 = require("../../../utils/coinFlip");
|
|
|
10
10
|
exports.fractionAndIntegerDivision = {
|
|
11
11
|
id: 'fractionAndIntegerDivision',
|
|
12
12
|
connector: '=',
|
|
13
|
-
instruction:
|
|
13
|
+
instruction: "Calculer et donner le résultat sous la forme d'une fraction irréductible.",
|
|
14
14
|
label: "Division d'un entier et d'une fraction",
|
|
15
15
|
levels: ['4', '3', '2', '1'],
|
|
16
16
|
isSingleStep: false,
|
|
@@ -9,7 +9,7 @@ const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
|
9
9
|
exports.fractionAndIntegerProduct = {
|
|
10
10
|
id: 'fractionAndIntegerProduct',
|
|
11
11
|
connector: '=',
|
|
12
|
-
instruction:
|
|
12
|
+
instruction: "Calculer et donner le résultat sous la forme d'une fraction irréductible.",
|
|
13
13
|
label: "Produit d'un entier et d'une fraction",
|
|
14
14
|
levels: ['4', '3', '2', '1'],
|
|
15
15
|
isSingleStep: false,
|
|
@@ -9,7 +9,7 @@ const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
|
9
9
|
exports.fractionAndIntegerSum = {
|
|
10
10
|
id: 'fractionAndIntegerSum',
|
|
11
11
|
connector: '=',
|
|
12
|
-
instruction:
|
|
12
|
+
instruction: "Calculer et donner le résultat sous la forme d'une fraction irréductible.",
|
|
13
13
|
label: "Somme d'un entier et d'une fraction",
|
|
14
14
|
levels: ['4', '3', '2', '1'],
|
|
15
15
|
isSingleStep: false,
|
|
@@ -11,7 +11,7 @@ exports.fractionToPercentToDecimal = {
|
|
|
11
11
|
id: 'fractionToPercentToDecimal',
|
|
12
12
|
connector: '\\iff',
|
|
13
13
|
instruction: '',
|
|
14
|
-
label: "Passer d'une écriture d'un nombre à une autre
|
|
14
|
+
label: "Passer d'une écriture d'un nombre à une autre",
|
|
15
15
|
levels: ['2', '1'],
|
|
16
16
|
section: 'Fractions',
|
|
17
17
|
isSingleStep: false,
|
|
@@ -19,7 +19,7 @@ exports.fractionToPercentToDecimal = {
|
|
|
19
19
|
};
|
|
20
20
|
function getFractionToPercentToDecimal() {
|
|
21
21
|
const denominator = 2 ** (0, randint_1.randint)(0, 5) * 5 ** (0, randint_1.randint)(0, 5);
|
|
22
|
-
const numerator = (0, randint_1.randint)(1, denominator);
|
|
22
|
+
const numerator = denominator !== 1 ? (0, randint_1.randint)(1, denominator) : (0, randint_1.randint)(1, 100);
|
|
23
23
|
const fraction = new fractionNode_1.FractionNode(new numberNode_1.NumberNode(numerator), new numberNode_1.NumberNode(denominator));
|
|
24
24
|
const decimal = numerator / denominator;
|
|
25
25
|
const percent = (0, round_1.round)((numerator / denominator) * 100, 2);
|
|
@@ -28,39 +28,39 @@ function getFractionToPercentToDecimal() {
|
|
|
28
28
|
let answer = '';
|
|
29
29
|
switch (rand) {
|
|
30
30
|
case 1: {
|
|
31
|
-
instruction =
|
|
31
|
+
instruction = `Écrire le nombre $${decimal}$ sous forme de pourcentage.`;
|
|
32
32
|
answer = `${percent}\\%`;
|
|
33
33
|
break;
|
|
34
34
|
}
|
|
35
35
|
case 2: {
|
|
36
|
-
instruction =
|
|
36
|
+
instruction = `Écrire le nombre $${decimal}$ sous forme de fraction.`;
|
|
37
37
|
answer = `${(0, simplify_1.simplifyNode)(fraction).toTex()}`;
|
|
38
38
|
break;
|
|
39
39
|
}
|
|
40
40
|
case 3: {
|
|
41
|
-
instruction =
|
|
41
|
+
instruction = `Écrire le nombre $${percent}\\%$ sous forme décimale.`;
|
|
42
42
|
answer = `${decimal}`;
|
|
43
43
|
break;
|
|
44
44
|
}
|
|
45
45
|
case 4: {
|
|
46
|
-
instruction =
|
|
46
|
+
instruction = `Écrire le nombre $${percent}\\%$ sous forme de fraction.`;
|
|
47
47
|
answer = `${(0, simplify_1.simplifyNode)(fraction).toTex()}`;
|
|
48
48
|
break;
|
|
49
49
|
}
|
|
50
50
|
case 5: {
|
|
51
|
-
instruction =
|
|
51
|
+
instruction = `Écrire le nombre $${fraction.toTex()}$ sous forme décimale.`;
|
|
52
52
|
answer = `${decimal}`;
|
|
53
53
|
break;
|
|
54
54
|
}
|
|
55
55
|
case 6: {
|
|
56
|
-
instruction =
|
|
56
|
+
instruction = `Écrire le nombre $${fraction.toTex()}$ sous forme de pourcentage.`;
|
|
57
57
|
answer = `${percent}\\%`;
|
|
58
58
|
break;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
const question = {
|
|
62
62
|
instruction,
|
|
63
|
-
//startStatement: `${
|
|
63
|
+
//startStatement: `${numerator} et ${denominator}`,
|
|
64
64
|
answer,
|
|
65
65
|
keys: ['percent'],
|
|
66
66
|
};
|
|
@@ -7,7 +7,7 @@ const divideNode_1 = require("../../../tree/nodes/operators/divideNode");
|
|
|
7
7
|
exports.fractionsDivision = {
|
|
8
8
|
id: 'fractionsDivision',
|
|
9
9
|
connector: '=',
|
|
10
|
-
instruction:
|
|
10
|
+
instruction: "Calculer et donner le résultat sous la forme d'une fraction irréductible.",
|
|
11
11
|
label: 'Divisions de fractions',
|
|
12
12
|
levels: ['4', '3', '2', '1'],
|
|
13
13
|
section: 'Fractions',
|
|
@@ -7,7 +7,7 @@ const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
|
7
7
|
exports.fractionsProduct = {
|
|
8
8
|
id: 'fractionsProduct',
|
|
9
9
|
connector: '=',
|
|
10
|
-
instruction:
|
|
10
|
+
instruction: "Calculer et donner le résultat sous la forme d'une fraction irréductible.",
|
|
11
11
|
label: 'Produits de fractions',
|
|
12
12
|
levels: ['4', '3', '2', '1'],
|
|
13
13
|
section: 'Fractions',
|
|
@@ -7,7 +7,7 @@ const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
|
7
7
|
exports.fractionsSum = {
|
|
8
8
|
id: 'fractionsSum',
|
|
9
9
|
connector: '=',
|
|
10
|
-
instruction:
|
|
10
|
+
instruction: "Calculer et donner le résultat sous la forme d'une fraction irréductible.",
|
|
11
11
|
label: 'Sommes de fractions',
|
|
12
12
|
levels: ['4', '3', '2', '1'],
|
|
13
13
|
section: 'Fractions',
|
|
@@ -10,8 +10,8 @@ const coinFlip_1 = require("../../../utils/coinFlip");
|
|
|
10
10
|
exports.mentalAddAndSub = {
|
|
11
11
|
id: 'mentalAddAndSub',
|
|
12
12
|
connector: '=',
|
|
13
|
-
instruction: 'Calculer
|
|
14
|
-
label:
|
|
13
|
+
instruction: 'Calculer.',
|
|
14
|
+
label: 'Effectuer mentalement des additions et des soustractions simples',
|
|
15
15
|
levels: ['6', '5', '4', '3', '2', '1', '0'],
|
|
16
16
|
section: 'Calculs',
|
|
17
17
|
isSingleStep: true,
|
|
@@ -10,8 +10,8 @@ const coinFlip_1 = require("../../../utils/coinFlip");
|
|
|
10
10
|
exports.mentalDivisions = {
|
|
11
11
|
id: 'mentalDivisions',
|
|
12
12
|
connector: '=',
|
|
13
|
-
instruction: 'Calculer
|
|
14
|
-
label: 'Effectuer mentalement des
|
|
13
|
+
instruction: 'Calculer.',
|
|
14
|
+
label: 'Effectuer mentalement des divisions simples',
|
|
15
15
|
levels: ['6', '5', '4', '3', '2', '1', '0'],
|
|
16
16
|
section: 'Calculs',
|
|
17
17
|
isSingleStep: true,
|
|
@@ -10,8 +10,8 @@ const coinFlip_1 = require("../../../utils/coinFlip");
|
|
|
10
10
|
exports.mentalMultiplications = {
|
|
11
11
|
id: 'mentalMultiplications',
|
|
12
12
|
connector: '=',
|
|
13
|
-
instruction: 'Calculer
|
|
14
|
-
label: 'Effectuer mentalement des
|
|
13
|
+
instruction: 'Calculer.',
|
|
14
|
+
label: 'Effectuer mentalement des multiplications simples',
|
|
15
15
|
levels: ['6', '5', '4', '3', '2', '1', '0'],
|
|
16
16
|
section: 'Calculs',
|
|
17
17
|
isSingleStep: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equationSimpleSquare.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationSimpleSquare.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAOF,wBAAgB,uBAAuB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"equationSimpleSquare.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationSimpleSquare.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAOF,wBAAgB,uBAAuB,IAAI,QAAQ,CAyBlD"}
|
|
@@ -26,10 +26,10 @@ function getEquationSimpleSquare() {
|
|
|
26
26
|
if (randNbr >= 0)
|
|
27
27
|
while (higherFactor(randNbr) === 1)
|
|
28
28
|
randNbr = (0, randint_1.randint)(1, 100);
|
|
29
|
-
const instruction = `Résoudre l'équation suivante $x^2 = ${randNbr}$`;
|
|
30
|
-
|
|
31
|
-
if (
|
|
32
|
-
answer = `\\{${
|
|
29
|
+
const instruction = `Résoudre l'équation suivante : $x^2 = ${randNbr}$`;
|
|
30
|
+
const ans = Math.sqrt(randNbr);
|
|
31
|
+
if (ans === Math.floor(ans))
|
|
32
|
+
answer = `\\{${ans}\\ ; -${ans}\\}`;
|
|
33
33
|
else {
|
|
34
34
|
const factor = higherFactor(randNbr);
|
|
35
35
|
const radicand = randNbr / factor ** 2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firstDegreeEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/firstDegreeEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"firstDegreeEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/firstDegreeEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM9D,eAAO,MAAM,mBAAmB,EAAE,QAUjC,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,QAAQ,CAYjD"}
|
|
@@ -20,7 +20,7 @@ function getFirstDegreeEquation() {
|
|
|
20
20
|
const a = (0, randint_1.randint)(-30, 30, [0]);
|
|
21
21
|
const b = (0, randint_1.randint)(-30, 30, [0]);
|
|
22
22
|
const question = {
|
|
23
|
-
instruction: `Résoudre l'équation suivante $\\frac{${a}}{x} = ${b}$`,
|
|
23
|
+
instruction: `Résoudre l'équation suivante : $\\frac{${a}}{x} = ${b}$`,
|
|
24
24
|
startStatement: `x`,
|
|
25
25
|
answer: (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(a / b)).toTex(),
|
|
26
26
|
keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'emptyset'],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aeraConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/aeraConversion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,cAAc,EAAE,QAU5B,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,QAAQ,CAmB5C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAeraConversion = exports.aeraConversion = void 0;
|
|
4
|
+
const decimal_1 = require("../../math/numbers/decimals/decimal");
|
|
5
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
6
|
+
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
7
|
+
exports.aeraConversion = {
|
|
8
|
+
id: 'aeraConversion',
|
|
9
|
+
connector: '=',
|
|
10
|
+
instruction: '',
|
|
11
|
+
label: 'Conversion des aires',
|
|
12
|
+
levels: ['6', '5'],
|
|
13
|
+
section: 'Conversions',
|
|
14
|
+
isSingleStep: true,
|
|
15
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getAeraConversion, nb),
|
|
16
|
+
keys: [],
|
|
17
|
+
};
|
|
18
|
+
function getAeraConversion() {
|
|
19
|
+
const units = ['mm^2', 'cm^2', 'dm^2', 'm^2', 'dam^2', 'hm^2', 'km^2'];
|
|
20
|
+
const randomUnitIndex = (0, randint_1.randint)(0, 7);
|
|
21
|
+
const randomUnitInstructionIndex = (0, randint_1.randint)(
|
|
22
|
+
// cette manip a pour but d'éviter des conversion de type km² --> cm² ou le contraire (chiffre trop grand/petit)
|
|
23
|
+
randomUnitIndex - 2 < 0 ? 0 : randomUnitIndex - 2, randomUnitIndex + 2 > 7 ? 7 : randomUnitIndex + 3, [randomUnitIndex]);
|
|
24
|
+
const randomAera = decimal_1.DecimalConstructor.random(0, 1000, (0, randint_1.randint)(0, 4));
|
|
25
|
+
const question = {
|
|
26
|
+
instruction: `$${randomAera.value}$ $${units[randomUnitIndex]}$ = ... $${units[randomUnitInstructionIndex]}$`,
|
|
27
|
+
answer: randomAera.multiplyByPowerOfTen(2 * (randomUnitIndex - randomUnitInstructionIndex)).value + '',
|
|
28
|
+
keys: [],
|
|
29
|
+
};
|
|
30
|
+
return question;
|
|
31
|
+
}
|
|
32
|
+
exports.getAeraConversion = getAeraConversion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capacityConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/capacityConversion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAchD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCapacityConversion = exports.capacityConversion = void 0;
|
|
4
|
+
const decimal_1 = require("../../math/numbers/decimals/decimal");
|
|
5
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
6
|
+
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
7
|
+
exports.capacityConversion = {
|
|
8
|
+
id: 'capacityConversion',
|
|
9
|
+
connector: '=',
|
|
10
|
+
instruction: '',
|
|
11
|
+
label: 'Conversion de capacités',
|
|
12
|
+
levels: ['6', '5'],
|
|
13
|
+
section: 'Conversions',
|
|
14
|
+
isSingleStep: true,
|
|
15
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getCapacityConversion, nb),
|
|
16
|
+
keys: [],
|
|
17
|
+
};
|
|
18
|
+
function getCapacityConversion() {
|
|
19
|
+
const units = ['mL', 'cL', 'dL', 'L', 'daL', 'hL', 'kL'];
|
|
20
|
+
const randomUnitIndex = (0, randint_1.randint)(0, 7);
|
|
21
|
+
const randomUnitInstructionIndex = (0, randint_1.randint)(0, 7, [randomUnitIndex]);
|
|
22
|
+
const randomCapacity = decimal_1.DecimalConstructor.random(0, 1000, (0, randint_1.randint)(0, 4));
|
|
23
|
+
const question = {
|
|
24
|
+
instruction: `$${randomCapacity.value}$ $${units[randomUnitIndex]}$ = ... $${units[randomUnitInstructionIndex]}$`,
|
|
25
|
+
answer: randomCapacity.multiplyByPowerOfTen(randomUnitIndex - randomUnitInstructionIndex).value + '',
|
|
26
|
+
keys: [],
|
|
27
|
+
};
|
|
28
|
+
return question;
|
|
29
|
+
}
|
|
30
|
+
exports.getCapacityConversion = getCapacityConversion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lengthConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/lengthConversion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAc9C"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLengthConversion = exports.lengthConversion = void 0;
|
|
4
|
+
const decimal_1 = require("../../math/numbers/decimals/decimal");
|
|
5
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
6
|
+
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
7
|
+
exports.lengthConversion = {
|
|
8
|
+
id: 'lengthConversion',
|
|
9
|
+
connector: '=',
|
|
10
|
+
instruction: '',
|
|
11
|
+
label: 'Conversion de longueurs',
|
|
12
|
+
levels: ['6', '5'],
|
|
13
|
+
section: 'Conversions',
|
|
14
|
+
isSingleStep: true,
|
|
15
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getLengthConversion, nb),
|
|
16
|
+
keys: [],
|
|
17
|
+
};
|
|
18
|
+
function getLengthConversion() {
|
|
19
|
+
const units = ['mm', 'cm', 'dm', 'm', 'dam', 'hm', 'km'];
|
|
20
|
+
const randomUnitIndex = (0, randint_1.randint)(0, 7);
|
|
21
|
+
const randomUnitInstructionIndex = (0, randint_1.randint)(0, 7, [randomUnitIndex]);
|
|
22
|
+
const randomlength = decimal_1.DecimalConstructor.random(0, 1000, (0, randint_1.randint)(0, 4));
|
|
23
|
+
const question = {
|
|
24
|
+
instruction: `$${randomlength.value}$ $${units[randomUnitIndex]}$ = ... $${units[randomUnitInstructionIndex]}$`,
|
|
25
|
+
answer: randomlength.multiplyByPowerOfTen(randomUnitIndex - randomUnitInstructionIndex).value + '',
|
|
26
|
+
keys: [],
|
|
27
|
+
};
|
|
28
|
+
return question;
|
|
29
|
+
}
|
|
30
|
+
exports.getLengthConversion = getLengthConversion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"massConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/massConversion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,cAAc,EAAE,QAU5B,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,QAAQ,CAc5C"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMassConversion = exports.massConversion = void 0;
|
|
4
|
+
const decimal_1 = require("../../math/numbers/decimals/decimal");
|
|
5
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
6
|
+
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
7
|
+
exports.massConversion = {
|
|
8
|
+
id: 'massConversion',
|
|
9
|
+
connector: '=',
|
|
10
|
+
instruction: '',
|
|
11
|
+
label: 'Conversion de masses',
|
|
12
|
+
levels: ['6', '5'],
|
|
13
|
+
section: 'Conversions',
|
|
14
|
+
isSingleStep: true,
|
|
15
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getMassConversion, nb),
|
|
16
|
+
keys: [],
|
|
17
|
+
};
|
|
18
|
+
function getMassConversion() {
|
|
19
|
+
const units = ['mg', 'cg', 'dg', 'g', 'dag', 'hg', 'kg'];
|
|
20
|
+
const randomUnitIndex = (0, randint_1.randint)(0, 7);
|
|
21
|
+
const randomUnitInstructionIndex = (0, randint_1.randint)(0, 7, [randomUnitIndex]);
|
|
22
|
+
const randomMass = decimal_1.DecimalConstructor.random(0, 1000, (0, randint_1.randint)(0, 4));
|
|
23
|
+
const question = {
|
|
24
|
+
instruction: `$${randomMass.value}$ $${units[randomUnitIndex]}$ = ... $${units[randomUnitInstructionIndex]}$`,
|
|
25
|
+
answer: randomMass.multiplyByPowerOfTen(randomUnitIndex - randomUnitInstructionIndex).value + '',
|
|
26
|
+
keys: [],
|
|
27
|
+
};
|
|
28
|
+
return question;
|
|
29
|
+
}
|
|
30
|
+
exports.getMassConversion = getMassConversion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumeCapacityConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/volumeCapacityConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,wBAAwB,EAAE,QAUtC,CAAC;AAEF,wBAAgB,2BAA2B,IAAI,QAAQ,CAiCtD"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getVolumeCapacityConversion = exports.volumeCapacityConversion = void 0;
|
|
4
|
+
const decimal_1 = require("../../math/numbers/decimals/decimal");
|
|
5
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
6
|
+
const coinFlip_1 = require("../../utils/coinFlip");
|
|
7
|
+
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
8
|
+
exports.volumeCapacityConversion = {
|
|
9
|
+
id: 'volumeCapacityConversion',
|
|
10
|
+
connector: '=',
|
|
11
|
+
instruction: '',
|
|
12
|
+
label: "Conversion d'un volume vers une contenance et vice versa",
|
|
13
|
+
levels: ['6', '5'],
|
|
14
|
+
section: 'Conversions',
|
|
15
|
+
isSingleStep: true,
|
|
16
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getVolumeCapacityConversion, nb),
|
|
17
|
+
keys: [],
|
|
18
|
+
};
|
|
19
|
+
function getVolumeCapacityConversion() {
|
|
20
|
+
const volumeUnits = ['mm^3', 'cm^3', 'dm^3', 'm^3', 'dam^3', 'hm^3', 'km^3'];
|
|
21
|
+
const capacityUnits = ['mL', 'cL', 'dL', 'L', 'daL', 'hL', 'kL'];
|
|
22
|
+
const randomUnitInstructionIndex = (0, randint_1.randint)(0, 7);
|
|
23
|
+
const randomUnitIndex = (0, randint_1.randint)(
|
|
24
|
+
// cette manip a pour but d'éviter des conversion avec des nombres trop grand/petit
|
|
25
|
+
randomUnitInstructionIndex - 1 < 0 ? 0 : randomUnitInstructionIndex - 1, randomUnitInstructionIndex + 2 > 7 ? 7 : randomUnitInstructionIndex + 2);
|
|
26
|
+
const random = decimal_1.DecimalConstructor.random(0, 1000, (0, randint_1.randint)(0, 4));
|
|
27
|
+
let instructionUnit;
|
|
28
|
+
let AsnwerUnit;
|
|
29
|
+
let answer;
|
|
30
|
+
if ((0, coinFlip_1.coinFlip)()) {
|
|
31
|
+
instructionUnit = volumeUnits[randomUnitIndex];
|
|
32
|
+
AsnwerUnit = capacityUnits[randomUnitInstructionIndex];
|
|
33
|
+
answer = random.multiplyByPowerOfTen(3 * (randomUnitIndex - 2) + 3 - randomUnitInstructionIndex).value + '';
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
instructionUnit = capacityUnits[randomUnitIndex];
|
|
37
|
+
AsnwerUnit = volumeUnits[randomUnitInstructionIndex];
|
|
38
|
+
answer = random.multiplyByPowerOfTen(randomUnitIndex - 3 + 3 * (2 - randomUnitInstructionIndex)).value + '';
|
|
39
|
+
}
|
|
40
|
+
const question = {
|
|
41
|
+
instruction: `$${random.value}$ $${instructionUnit}$ = ... $${AsnwerUnit}$`,
|
|
42
|
+
answer,
|
|
43
|
+
keys: [],
|
|
44
|
+
};
|
|
45
|
+
return question;
|
|
46
|
+
}
|
|
47
|
+
exports.getVolumeCapacityConversion = getVolumeCapacityConversion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumeConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/volumeConversion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAmB9C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getVolumeConversion = exports.volumeConversion = void 0;
|
|
4
|
+
const decimal_1 = require("../../math/numbers/decimals/decimal");
|
|
5
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
6
|
+
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
7
|
+
exports.volumeConversion = {
|
|
8
|
+
id: 'volumeConversion',
|
|
9
|
+
connector: '=',
|
|
10
|
+
instruction: '',
|
|
11
|
+
label: 'Conversion de volumes',
|
|
12
|
+
levels: ['6', '5'],
|
|
13
|
+
section: 'Conversions',
|
|
14
|
+
isSingleStep: true,
|
|
15
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getVolumeConversion, nb),
|
|
16
|
+
keys: [],
|
|
17
|
+
};
|
|
18
|
+
function getVolumeConversion() {
|
|
19
|
+
const units = ['mm^3', 'cm^3', 'dm^3', 'm^3', 'dam^3', 'hm^3', 'km^3'];
|
|
20
|
+
const randomUnitIndex = (0, randint_1.randint)(0, 7);
|
|
21
|
+
const randomUnitInstructionIndex = (0, randint_1.randint)(
|
|
22
|
+
// cette manip a pour but d'éviter des conversion de type km³ --> cm³ ou le contraire (chiffre trop grand/petit)
|
|
23
|
+
randomUnitIndex - 2 < 0 ? 0 : randomUnitIndex - 2, randomUnitIndex + 2 > 7 ? 7 : randomUnitIndex + 3, [randomUnitIndex]);
|
|
24
|
+
const randomVolume = decimal_1.DecimalConstructor.random(0, 1000, (0, randint_1.randint)(0, 4));
|
|
25
|
+
const question = {
|
|
26
|
+
instruction: `$${randomVolume.value}$ $${units[randomUnitIndex]}$ = ... $${units[randomUnitInstructionIndex]}$`,
|
|
27
|
+
answer: randomVolume.multiplyByPowerOfTen(3 * (randomUnitIndex - randomUnitInstructionIndex)).value + '',
|
|
28
|
+
keys: [],
|
|
29
|
+
};
|
|
30
|
+
return question;
|
|
31
|
+
}
|
|
32
|
+
exports.getVolumeConversion = getVolumeConversion;
|
|
@@ -17,7 +17,7 @@ exports.constanteDerivative = {
|
|
|
17
17
|
function getConstanteDerivative() {
|
|
18
18
|
const c = (0, randint_1.randint)(-9, 10, [0]);
|
|
19
19
|
const question = {
|
|
20
|
-
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) = ${c}
|
|
20
|
+
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) = ${c}$.`,
|
|
21
21
|
startStatement: `f'(x)`,
|
|
22
22
|
answer: '0',
|
|
23
23
|
keys: [],
|
|
@@ -19,7 +19,7 @@ function getFirstDegreeDerivative() {
|
|
|
19
19
|
const [a, b] = [(0, randint_1.randint)(-9, 10, [0]), (0, randint_1.randint)(-9, 10)];
|
|
20
20
|
const polynomial = new polynomial_1.Polynomial([b, a]);
|
|
21
21
|
const question = {
|
|
22
|
-
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) = ${polynomial.toString()}
|
|
22
|
+
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) = ${polynomial.toString()}$.`,
|
|
23
23
|
startStatement: `f'(x)`,
|
|
24
24
|
answer: a + '',
|
|
25
25
|
keys: [],
|
|
@@ -17,7 +17,7 @@ exports.inverseFunctionDerivative = {
|
|
|
17
17
|
function getInverseFunctionDerivative() {
|
|
18
18
|
const a = (0, randint_1.randint)(-9, 10, [0]);
|
|
19
19
|
const question = {
|
|
20
|
-
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) =\\frac{${a}}{x}
|
|
20
|
+
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) =\\frac{${a}}{x}$.`,
|
|
21
21
|
startStatement: `f'(x)`,
|
|
22
22
|
answer: `\\frac{${-a}}{x^2}`,
|
|
23
23
|
keys: ['x'],
|
|
@@ -25,7 +25,7 @@ function getPowerFunctionDerivative() {
|
|
|
25
25
|
const statement = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new powerNode_1.PowerNode(new variableNode_1.VariableNode('x'), new numberNode_1.NumberNode(n))));
|
|
26
26
|
const answerStatement = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a * n), new powerNode_1.PowerNode(new variableNode_1.VariableNode('x'), new numberNode_1.NumberNode(n - 1))));
|
|
27
27
|
const question = {
|
|
28
|
-
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) =${statement.toTex()}
|
|
28
|
+
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) =${statement.toTex()}$.`,
|
|
29
29
|
startStatement: `f'(x)`,
|
|
30
30
|
answer: answerStatement.toTex(),
|
|
31
31
|
keys: ['x'],
|
|
@@ -20,11 +20,11 @@ function getRootFunctionDerivative() {
|
|
|
20
20
|
let instruction = `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) =$ `;
|
|
21
21
|
let answer = '';
|
|
22
22
|
if (a === 1)
|
|
23
|
-
instruction += `$\\sqrt{x}
|
|
23
|
+
instruction += `$\\sqrt{x}$.`;
|
|
24
24
|
else if (a === -1)
|
|
25
|
-
instruction += `$-\\sqrt{x}
|
|
25
|
+
instruction += `$-\\sqrt{x}$.`;
|
|
26
26
|
else
|
|
27
|
-
instruction += `$${a}\\sqrt{x}
|
|
27
|
+
instruction += `$${a}\\sqrt{x}$.`;
|
|
28
28
|
if (a / 2 === (0, round_1.round)(a / 2, 0))
|
|
29
29
|
answer = `\\frac{${a / 2}}{\\sqrt{x}}`;
|
|
30
30
|
else
|
|
@@ -20,7 +20,7 @@ function getSecondDegreeDerivative() {
|
|
|
20
20
|
const polynomial = new polynomial_1.Polynomial(coefficients);
|
|
21
21
|
const derivative = polynomial.derivate();
|
|
22
22
|
const question = {
|
|
23
|
-
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) = ${polynomial.toString()}
|
|
23
|
+
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) = ${polynomial.toString()}$.`,
|
|
24
24
|
startStatement: `f'(x)`,
|
|
25
25
|
answer: derivative.toString(),
|
|
26
26
|
keys: ['x'],
|
|
@@ -23,7 +23,7 @@ function getThirdDegreeDerivative() {
|
|
|
23
23
|
const polynomial = new polynomial_1.Polynomial(coefficients);
|
|
24
24
|
const derivative = polynomial.derivate();
|
|
25
25
|
const question = {
|
|
26
|
-
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) = ${polynomial.toString()}
|
|
26
|
+
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) = ${polynomial.toString()}$.`,
|
|
27
27
|
startStatement: `f'(x)`,
|
|
28
28
|
answer: derivative.toString(),
|
|
29
29
|
keys: ['x'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usualderivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/usualderivative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"usualderivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/usualderivative.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAOpD,eAAO,MAAM,eAAe,EAAE,QAU7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CAe7C"}
|
|
@@ -5,16 +5,13 @@ const randint_1 = require("../../../math/utils/random/randint");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../utils/getDistinctQuestions");
|
|
6
6
|
const constanteDerivative_1 = require("./constanteDerivative");
|
|
7
7
|
const firstDegreeDerivative_1 = require("./firstDegreeDerivative");
|
|
8
|
-
const inverseFunctionDerivative_1 = require("./inverseFunctionDerivative");
|
|
9
|
-
const powerFunctionDerivative_1 = require("./powerFunctionDerivative");
|
|
10
|
-
const rootFunctionDerivative_1 = require("./rootFunctionDerivative");
|
|
11
8
|
const secondDegreeDerivative_1 = require("./secondDegreeDerivative");
|
|
12
9
|
const thirdDegreeDerivative_1 = require("./thirdDegreeDerivative");
|
|
13
10
|
exports.usualDerivative = {
|
|
14
11
|
id: 'usualDerivative',
|
|
15
12
|
connector: '=',
|
|
16
13
|
instruction: '',
|
|
17
|
-
label: 'Dérivées
|
|
14
|
+
label: 'Dérivées des fonctions de référence',
|
|
18
15
|
levels: ['1', '0'],
|
|
19
16
|
section: 'Dérivation',
|
|
20
17
|
isSingleStep: false,
|
|
@@ -22,7 +19,7 @@ exports.usualDerivative = {
|
|
|
22
19
|
keys: ['x'],
|
|
23
20
|
};
|
|
24
21
|
function getUsualDerivative() {
|
|
25
|
-
const rand = (0, randint_1.randint)(1,
|
|
22
|
+
const rand = (0, randint_1.randint)(1, 5);
|
|
26
23
|
switch (rand) {
|
|
27
24
|
case 1:
|
|
28
25
|
return (0, firstDegreeDerivative_1.getFirstDegreeDerivative)();
|
|
@@ -31,12 +28,6 @@ function getUsualDerivative() {
|
|
|
31
28
|
case 3:
|
|
32
29
|
return (0, thirdDegreeDerivative_1.getThirdDegreeDerivative)();
|
|
33
30
|
case 4:
|
|
34
|
-
return (0, inverseFunctionDerivative_1.getInverseFunctionDerivative)();
|
|
35
|
-
case 5:
|
|
36
|
-
return (0, powerFunctionDerivative_1.getPowerFunctionDerivative)();
|
|
37
|
-
case 6:
|
|
38
|
-
return (0, rootFunctionDerivative_1.getRootFunctionDerivative)();
|
|
39
|
-
case 7:
|
|
40
31
|
return (0, constanteDerivative_1.getConstanteDerivative)();
|
|
41
32
|
default:
|
|
42
33
|
throw Error('erreur');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,GAAG,GAAG,OAAO,GAAG,UAAU,CAAC;IACtC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,QAAQ,EAAE,CAAC;CAC/D"}
|
|
@@ -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":"AAqFA,eAAO,MAAM,SAAS,iCAmIrB,CAAC"}
|
|
@@ -34,6 +34,12 @@ const factoIdRmq1_1 = require("./calculLitteral/factorisation/factoIdRmq1");
|
|
|
34
34
|
const factoIdRmq2_1 = require("./calculLitteral/factorisation/factoIdRmq2");
|
|
35
35
|
const factoIdRmq3_1 = require("./calculLitteral/factorisation/factoIdRmq3");
|
|
36
36
|
const factoType1Exercise_1 = require("./calculLitteral/factorisation/factoType1Exercise");
|
|
37
|
+
const aeraConversion_1 = require("./conversion/aeraConversion");
|
|
38
|
+
const capacityConversion_1 = require("./conversion/capacityConversion");
|
|
39
|
+
const lengthConversion_1 = require("./conversion/lengthConversion");
|
|
40
|
+
const massConversion_1 = require("./conversion/massConversion");
|
|
41
|
+
const volumeCapacityConversion_1 = require("./conversion/volumeCapacityConversion");
|
|
42
|
+
const volumeConversion_1 = require("./conversion/volumeConversion");
|
|
37
43
|
const constanteDerivative_1 = require("./derivation/derivative/constanteDerivative");
|
|
38
44
|
const firstDegreeDerivative_1 = require("./derivation/derivative/firstDegreeDerivative");
|
|
39
45
|
const inverseFunctionDerivative_1 = require("./derivation/derivative/inverseFunctionDerivative");
|
|
@@ -180,4 +186,13 @@ exports.exercises = [
|
|
|
180
186
|
mentalMultiplications_1.mentalMultiplications,
|
|
181
187
|
mentalDivisions_1.mentalDivisions,
|
|
182
188
|
mentalPercentage_1.mentalPercentage,
|
|
189
|
+
/**
|
|
190
|
+
* nv generateurs
|
|
191
|
+
*/
|
|
192
|
+
capacityConversion_1.capacityConversion,
|
|
193
|
+
lengthConversion_1.lengthConversion,
|
|
194
|
+
massConversion_1.massConversion,
|
|
195
|
+
aeraConversion_1.aeraConversion,
|
|
196
|
+
volumeConversion_1.volumeConversion,
|
|
197
|
+
volumeCapacityConversion_1.volumeCapacityConversion,
|
|
183
198
|
];
|
|
@@ -33,7 +33,7 @@ function getDerivativeNumberReading() {
|
|
|
33
33
|
const c = (0, mathjs_1.evaluate)(droite.a.toMathString()) - a * Math.pow(xA, 2) - b * xA;
|
|
34
34
|
const d = yA - (a / 3) * Math.pow(xA, 3) - (b / 2) * Math.pow(xA, 2) - xA * c;
|
|
35
35
|
const polynome = new polynomial_1.Polynomial([d, c, b / 2, a / 3]);
|
|
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.`;
|
|
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
37
|
const commands = [
|
|
38
38
|
polynome.toString(),
|
|
39
39
|
`g(x) = (${droite.a.toMathString()}) * x + (${droite.b.toMathString()})`,
|
|
@@ -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,QAU1B,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAuBlD"}
|
|
@@ -24,12 +24,12 @@ function getApplyPercentQuestion() {
|
|
|
24
24
|
if ((0, coinFlip_1.coinFlip)()) {
|
|
25
25
|
ans = randNbr * (1 + randPercent / 100);
|
|
26
26
|
ans = (0, round_1.round)(ans, 2);
|
|
27
|
-
instruction = `Appliquer une
|
|
27
|
+
instruction = `Appliquer une hausse de $${randPercent}\\%$ à $${randNbr}$.`;
|
|
28
28
|
}
|
|
29
29
|
else {
|
|
30
30
|
ans = randNbr * (1 - randPercent / 100);
|
|
31
31
|
ans = (0, round_1.round)(ans, 2);
|
|
32
|
-
instruction = `Appliquer une
|
|
32
|
+
instruction = `Appliquer une baisse de $${randPercent}\\%$ à $${randNbr}$.`;
|
|
33
33
|
}
|
|
34
34
|
const question = {
|
|
35
35
|
instruction,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"averageEvolutionRate.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/averageEvolutionRate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"averageEvolutionRate.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/averageEvolutionRate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAclD"}
|
|
@@ -18,7 +18,7 @@ exports.averageEvolutionRate = {
|
|
|
18
18
|
function getAverageEvolutionRate() {
|
|
19
19
|
const rate = (0, randint_1.randint)(1, 100);
|
|
20
20
|
const nbMois = (0, randint_1.randint)(2, 13);
|
|
21
|
-
const instruction = `
|
|
21
|
+
const instruction = `Un prix augmente de $${rate}\\%$ en $${nbMois}$ mois. Quel est le taux d'évolution mensuel moyen ?`;
|
|
22
22
|
const answer = `${(0, round_1.round)((Math.pow(1 + rate / 100, 1 / nbMois) - 1) * 100, 2)}\\%`;
|
|
23
23
|
const question = {
|
|
24
24
|
instruction,
|
|
@@ -24,7 +24,7 @@ function getReciprocalPercentageQuestion() {
|
|
|
24
24
|
ans = a == 0 ? (1 / (1 + randPercent / 100) - 1) * 100 : (1 / (1 - randPercent / 100) - 1) * 100;
|
|
25
25
|
const question = {
|
|
26
26
|
instruction,
|
|
27
|
-
answer: `${(0, mathjs_1.round)(ans, 2)} \\%`,
|
|
27
|
+
answer: `${ans > 0 ? '+' + (0, mathjs_1.round)(ans, 2) : (0, mathjs_1.round)(ans, 2)} \\%`,
|
|
28
28
|
keys: ['percent'],
|
|
29
29
|
};
|
|
30
30
|
return question;
|
|
@@ -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,QAUpC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,
|
|
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,CA8EpD"}
|
|
@@ -8,7 +8,7 @@ exports.conditionalProbability = {
|
|
|
8
8
|
id: 'conditionalProbability',
|
|
9
9
|
connector: '=',
|
|
10
10
|
instruction: '',
|
|
11
|
-
label: 'Calcul de probabilité conditionnelle avec la formule',
|
|
11
|
+
label: 'Calcul de probabilité conditionnelle avec la formule de Bayes',
|
|
12
12
|
levels: ['1', '0'],
|
|
13
13
|
isSingleStep: false,
|
|
14
14
|
section: 'Probabilités',
|
|
@@ -27,38 +27,38 @@ function getConditionalProbability() {
|
|
|
27
27
|
let answer = '';
|
|
28
28
|
switch (flip) {
|
|
29
29
|
case 1: {
|
|
30
|
-
instruction += `$
|
|
31
|
-
startStatement = `
|
|
30
|
+
instruction += `$P(A) = ${(pA / 100 + '').replace('.', ',')}\\ et\\ P(A \\cap B) = ${(pAB / 100 + '').replace('.', ',')}$.$\\\\$Déterminer $P_A(B)$.`;
|
|
31
|
+
startStatement = `P_A(B)`;
|
|
32
32
|
answer = `${pB_A}`;
|
|
33
33
|
break;
|
|
34
34
|
}
|
|
35
35
|
case 2: {
|
|
36
|
-
instruction += `$
|
|
37
|
-
startStatement = `
|
|
36
|
+
instruction += `$P(B) = ${(pB / 100 + '').replace('.', ',')}\\ et\\ P(B \\cap A) = ${(pAB / 100 + '').replace('.', ',')}$.$\\\\$Déterminer $P_B(A)$.`;
|
|
37
|
+
startStatement = `P_B(A)`;
|
|
38
38
|
answer = `${pA_B}`;
|
|
39
39
|
break;
|
|
40
40
|
}
|
|
41
41
|
case 3: {
|
|
42
|
-
instruction += `$
|
|
43
|
-
startStatement = `
|
|
42
|
+
instruction += `$P(A) = ${(pA / 100 + '').replace('.', ',')}\\ et\\ P_A(B) = ${(pB_A + '').replace('.', ',')}$.$\\\\$Déterminer $P(A \\cap B)$.`;
|
|
43
|
+
startStatement = `P(A \\cap B)`;
|
|
44
44
|
answer = `${pAB / 100}`;
|
|
45
45
|
break;
|
|
46
46
|
}
|
|
47
47
|
case 4: {
|
|
48
|
-
instruction += `$
|
|
49
|
-
startStatement = `
|
|
48
|
+
instruction += `$P(B) = ${(pB / 100 + '').replace('.', ',')}\\ et\\ P_B(A) = ${(pA_B + '').replace('.', ',')}$.$\\\\$Déterminer $P(A \\cap B)$.`;
|
|
49
|
+
startStatement = `P(A \\cap B)`;
|
|
50
50
|
answer = `${pAB / 100}`;
|
|
51
51
|
break;
|
|
52
52
|
}
|
|
53
53
|
case 5: {
|
|
54
|
-
instruction += `$
|
|
55
|
-
startStatement = `
|
|
54
|
+
instruction += `$P(A \\cap B) = ${(pAB / 100 + '').replace('.', ',')}\\ et\\ P_B(A) = ${(pA_B + '').replace('.', ',')}$.$\\\\$Déterminer $P(B)$.`;
|
|
55
|
+
startStatement = `P(B)`;
|
|
56
56
|
answer = `${pB / 100}`;
|
|
57
57
|
break;
|
|
58
58
|
}
|
|
59
59
|
case 6: {
|
|
60
|
-
instruction += `$
|
|
61
|
-
startStatement = `
|
|
60
|
+
instruction += `$P(A \\cap B) = ${(pAB / 100 + '').replace('.', ',')}\\ et\\ P_A(B) = ${(pB_A + '').replace('.', ',')}$.$\\\\$Déterminer $P(A)$.`;
|
|
61
|
+
startStatement = `P(A)`;
|
|
62
62
|
answer = `${pA / 100}`;
|
|
63
63
|
break;
|
|
64
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marginalAndConditionalFrequency.d.ts","sourceRoot":"","sources":["../../../src/exercises/proba/marginalAndConditionalFrequency.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"marginalAndConditionalFrequency.d.ts","sourceRoot":"","sources":["../../../src/exercises/proba/marginalAndConditionalFrequency.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,+BAA+B,EAAE,QAU7C,CAAC;AAEF,wBAAgB,kCAAkC,IAAI,QAAQ,CAmE7D"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getMarginalAndConditionalFrequency = exports.marginalAndConditionalFrequency = void 0;
|
|
4
4
|
const randint_1 = require("../../math/utils/random/randint");
|
|
5
|
-
const
|
|
5
|
+
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
6
|
+
const simplify_1 = require("../../tree/parsers/simplify");
|
|
6
7
|
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
7
8
|
exports.marginalAndConditionalFrequency = {
|
|
8
9
|
id: 'marginalAndConditionalFrequency',
|
|
@@ -47,7 +48,7 @@ function getMarginalAndConditionalFrequency() {
|
|
|
47
48
|
'f_A(D)',
|
|
48
49
|
'f_B(D)',
|
|
49
50
|
];
|
|
50
|
-
|
|
51
|
+
const Calculs = [
|
|
51
52
|
(x1 + x3) / x,
|
|
52
53
|
(x2 + x4) / x,
|
|
53
54
|
(x1 + x2) / x,
|
|
@@ -61,7 +62,7 @@ function getMarginalAndConditionalFrequency() {
|
|
|
61
62
|
x2 / (x2 + x4),
|
|
62
63
|
x4 / (x2 + x4),
|
|
63
64
|
];
|
|
64
|
-
|
|
65
|
+
const calculsNodes = Calculs.map((el) => (0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(el)));
|
|
65
66
|
const question = {
|
|
66
67
|
instruction: `On considère le tableau d'effectifs suivant :
|
|
67
68
|
|
|
@@ -72,7 +73,7 @@ function getMarginalAndConditionalFrequency() {
|
|
|
72
73
|
|
|
73
74
|
Calculer la fréquence ${freqString[rand]}.`,
|
|
74
75
|
startStatement: `${frequences[rand]}`,
|
|
75
|
-
answer:
|
|
76
|
+
answer: calculsNodes[rand].toTex(),
|
|
76
77
|
keys: ['f', 'cap', 'underscore'],
|
|
77
78
|
};
|
|
78
79
|
return question;
|
|
@@ -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;
|
|
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;AAOF,wBAAgB,kBAAkB,IAAI,QAAQ,CAwF7C"}
|
|
@@ -10,12 +10,17 @@ exports.probabilityTree = {
|
|
|
10
10
|
id: 'probabilityTree',
|
|
11
11
|
connector: '=',
|
|
12
12
|
instruction: '',
|
|
13
|
-
label:
|
|
13
|
+
label: "Calculs de probabilités à l'aide d'un arbre pondéré",
|
|
14
14
|
levels: ['1', '0'],
|
|
15
15
|
isSingleStep: false,
|
|
16
16
|
section: 'Probabilités',
|
|
17
17
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getProbabilityTree, nb),
|
|
18
18
|
};
|
|
19
|
+
function pgcd(a, b) {
|
|
20
|
+
while (b)
|
|
21
|
+
[a, b] = [b, a % b];
|
|
22
|
+
return a;
|
|
23
|
+
}
|
|
19
24
|
function getProbabilityTree() {
|
|
20
25
|
const A = (0, randint_1.randint)(2, 9);
|
|
21
26
|
const B = (0, randint_1.randint)(2, 10 - A);
|
|
@@ -74,12 +79,12 @@ function getProbabilityTree() {
|
|
|
74
79
|
'Segment(B,BD)',
|
|
75
80
|
'ShowAxes(false)',
|
|
76
81
|
'ShowGrid(false)',
|
|
77
|
-
`Text("\\scriptsize${
|
|
78
|
-
`Text("\\scriptsize${
|
|
79
|
-
`Text("\\scriptsize${
|
|
80
|
-
`Text("\\scriptsize${
|
|
81
|
-
`Text("\\scriptsize${
|
|
82
|
-
`Text("\\scriptsize${
|
|
82
|
+
`Text("\\scriptsize${A / pgcd(A, A + B)}/${(A + B) / pgcd(A, A + B)}", (0.3, 2.1), true, true)`,
|
|
83
|
+
`Text("\\scriptsize${AC / pgcd(AC, AC + AD)}/${(AC + AD) / pgcd(AC, AC + AD)}", (2.8, 3.5), true, true)`,
|
|
84
|
+
`Text("\\scriptsize${AD / pgcd(AD, AC + AD)}/${(AC + AD) / pgcd(AD, AC + AD)}", (2.8, 1.4), true, true)`,
|
|
85
|
+
`Text("\\scriptsize${B / pgcd(B, A + B)}/${(A + B) / pgcd(B, A + B)}", (0.3, -1.2), true, true)`,
|
|
86
|
+
`Text("\\scriptsize${BC / pgcd(BC, BC + BD)}/${(BC + BD) / pgcd(BC, BC + BD)}", (2.8, -0.6), true, true)`,
|
|
87
|
+
`Text("\\scriptsize${BD / pgcd(BD, BC + BD)}/${(BC + BD) / pgcd(BD, BC + BD)}", (2.8, -2.5), true, true)`,
|
|
83
88
|
'Text("A", (1.85 , 2.5))',
|
|
84
89
|
'Text("B", (1.85 , -2.8))',
|
|
85
90
|
'Text("C", (5.5 , 2.85))',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arithmeticThresholdFind.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticThresholdFind.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"arithmeticThresholdFind.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticThresholdFind.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGpD,eAAO,MAAM,uBAAuB,EAAE,QAUrC,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,QAAQ,CAyBrD"}
|
|
@@ -21,14 +21,13 @@ function getArithmeticThresholdFind() {
|
|
|
21
21
|
let randValue = firstValue;
|
|
22
22
|
const formula = new polynomial_1.Polynomial([firstValue, reason], 'n');
|
|
23
23
|
let instruction = `$(u_n)$ est une suite arithmétique définie par $u_n = ${formula.toString()}$. `;
|
|
24
|
-
let answer = '';
|
|
25
24
|
if (reason > 0) {
|
|
26
25
|
randValue += (0, randint_1.randint)(reason, 100);
|
|
27
|
-
instruction +=
|
|
26
|
+
instruction += `À partir de quel rang a-t-on $u_n > ${randValue}$ ?`;
|
|
28
27
|
}
|
|
29
28
|
else {
|
|
30
29
|
randValue += (0, randint_1.randint)(-100, reason);
|
|
31
|
-
instruction +=
|
|
30
|
+
instruction += `À partir de quel rang a-t-on $u_n < ${randValue}$ ?`;
|
|
32
31
|
}
|
|
33
32
|
const question = {
|
|
34
33
|
instruction,
|
|
@@ -10,4 +10,17 @@ export declare class Point {
|
|
|
10
10
|
toTexWithCoords(): string;
|
|
11
11
|
midpoint(B: Point, name?: string): Point;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Droite{
|
|
15
|
+
* constructor :
|
|
16
|
+
* depuis 2 points : A,B --> Droite
|
|
17
|
+
* depuis 1 point + coeff dir --> Droite
|
|
18
|
+
* avec une équation de droite --> Droite
|
|
19
|
+
*
|
|
20
|
+
* méthodes :
|
|
21
|
+
* toEquation() --> y = 3x+2
|
|
22
|
+
* toCoeffDIr --> a
|
|
23
|
+
|
|
24
|
+
* }
|
|
25
|
+
*/
|
|
13
26
|
//# sourceMappingURL=point.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAM7C,8BAAsB,gBAAgB;CAMrC;AAED,qBAAa,KAAK;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,IAAI,CAAC;IACR,CAAC,EAAE,IAAI,CAAC;gBACI,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI;IAM1C,KAAK,IAAI,MAAM;
|
|
1
|
+
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAM7C,8BAAsB,gBAAgB;CAMrC;AAED,qBAAa,KAAK;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,IAAI,CAAC;IACR,CAAC,EAAE,IAAI,CAAC;gBACI,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI;IAM1C,KAAK,IAAI,MAAM;IAIf,eAAe,IAAI,MAAM;IAIzB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,SAAM,GAAG,KAAK;CAOtC;AAED;;;;;;;;;;;;GAYG"}
|
|
@@ -25,3 +25,16 @@ class Point {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
exports.Point = Point;
|
|
28
|
+
/**
|
|
29
|
+
* Droite{
|
|
30
|
+
* constructor :
|
|
31
|
+
* depuis 2 points : A,B --> Droite
|
|
32
|
+
* depuis 1 point + coeff dir --> Droite
|
|
33
|
+
* avec une équation de droite --> Droite
|
|
34
|
+
*
|
|
35
|
+
* méthodes :
|
|
36
|
+
* toEquation() --> y = 3x+2
|
|
37
|
+
* toCoeffDIr --> a
|
|
38
|
+
|
|
39
|
+
* }
|
|
40
|
+
*/
|