math-exercises 1.2.1 → 1.2.2
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/package.json +1 -1
- package/src/exercises/calcul/addAndSub.ts +0 -1
- package/src/exercises/calcul/fractions/fractionAndIntegerDivision.js +1 -1
- package/src/exercises/calcul/fractions/fractionAndIntegerProduct.js +1 -1
- package/src/exercises/calcul/fractions/fractionAndIntegerSum.js +1 -1
- package/src/exercises/calculLitteral/distributivity/allIdentities.js +1 -1
- package/src/exercises/calculLitteral/distributivity/allIdentities.ts +1 -1
- package/src/exercises/calculLitteral/distributivity/doubleDistributivity.js +1 -1
- package/src/exercises/calculLitteral/distributivity/firstIdentity.js +1 -1
- package/src/exercises/calculLitteral/distributivity/secondIdentity.js +1 -1
- package/src/exercises/calculLitteral/distributivity/simpleDistributivity.js +1 -1
- package/src/exercises/calculLitteral/distributivity/thirdIdentity.js +1 -1
- package/src/exercises/calculLitteral/factorisation/factoType1Exercise.js +1 -1
- package/src/exercises/powers/powersDivision.js +2 -2
- package/src/exercises/powers/powersPower.js +1 -1
- package/src/exercises/powers/powersProduct.js +1 -1
- package/src/exercises/powers/scientificToDecimal.js +1 -1
- package/src/index.js +0 -5
- package/src/index.ts +0 -2
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { randint } from "../../mathutils/random/randint";
|
|
2
|
-
import { Interval } from "../../sets/intervals/intervals";
|
|
3
2
|
import { latexParse } from "../../tree/latexParser/latexParse";
|
|
4
3
|
import { NumberNode } from "../../tree/nodes/numbers/numberNode";
|
|
5
4
|
import { AddNode } from "../../tree/nodes/operators/addNode";
|
|
@@ -12,7 +12,7 @@ exports.fractionAndIntegerDivision = {
|
|
|
12
12
|
id: "fractionAndIntegerDivision",
|
|
13
13
|
connector: "=",
|
|
14
14
|
instruction: "Calculer la forme irréductible :",
|
|
15
|
-
label: "
|
|
15
|
+
label: "Division d'un entier et d'une fraction",
|
|
16
16
|
levels: ["4", "3", "2", "1"],
|
|
17
17
|
isSingleStep: false,
|
|
18
18
|
section: "Fractions",
|
|
@@ -11,7 +11,7 @@ exports.fractionAndIntegerProduct = {
|
|
|
11
11
|
id: "fractionAndIntegerProduct",
|
|
12
12
|
connector: "=",
|
|
13
13
|
instruction: "Calculer la forme irréductible :",
|
|
14
|
-
label: "
|
|
14
|
+
label: "Produit d'un entier et d'une fraction",
|
|
15
15
|
levels: ["4", "3", "2", "1"],
|
|
16
16
|
isSingleStep: false,
|
|
17
17
|
section: "Fractions",
|
|
@@ -11,7 +11,7 @@ exports.fractionAndIntegerSum = {
|
|
|
11
11
|
id: "fractionAndIntegerSum",
|
|
12
12
|
connector: "=",
|
|
13
13
|
instruction: "Calculer la forme irréductible :",
|
|
14
|
-
label: "
|
|
14
|
+
label: "Somme d'un entier et d'une fraction",
|
|
15
15
|
levels: ["4", "3", "2", "1"],
|
|
16
16
|
isSingleStep: false,
|
|
17
17
|
section: "Fractions",
|
|
@@ -13,7 +13,7 @@ exports.allIdentities = {
|
|
|
13
13
|
label: "Identités remarquables (toutes)",
|
|
14
14
|
levels: ["3", "2"],
|
|
15
15
|
isSingleStep: false,
|
|
16
|
-
section: "Calcul
|
|
16
|
+
section: "Calcul littéral",
|
|
17
17
|
generator: function (nb) { return (0, getDistinctQuestions_1.getDistinctQuestions)(getAllIdentitiesQuestion, nb); }
|
|
18
18
|
};
|
|
19
19
|
function getAllIdentitiesQuestion() {
|
|
@@ -12,7 +12,7 @@ export const allIdentities: Exercise = {
|
|
|
12
12
|
label: "Identités remarquables (toutes)",
|
|
13
13
|
levels: ["3", "2"],
|
|
14
14
|
isSingleStep: false,
|
|
15
|
-
section: "Calcul
|
|
15
|
+
section: "Calcul littéral",
|
|
16
16
|
generator: (nb: number) => getDistinctQuestions(getAllIdentitiesQuestion, nb),
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -15,7 +15,7 @@ exports.doubleDistributivity = {
|
|
|
15
15
|
label: "Distributivité double",
|
|
16
16
|
levels: ["3", "2"],
|
|
17
17
|
isSingleStep: false,
|
|
18
|
-
section: "Calcul
|
|
18
|
+
section: "Calcul littéral",
|
|
19
19
|
generator: function (nb) { return (0, getDistinctQuestions_1.getDistinctQuestions)(getDoubleDistributivityQuestion, nb); }
|
|
20
20
|
};
|
|
21
21
|
function getDoubleDistributivityQuestion() {
|
|
@@ -16,7 +16,7 @@ exports.firstIdentity = {
|
|
|
16
16
|
label: "Identité remarquable $(a+b)^2$",
|
|
17
17
|
levels: ["3", "2"],
|
|
18
18
|
isSingleStep: false,
|
|
19
|
-
section: "Calcul
|
|
19
|
+
section: "Calcul littéral",
|
|
20
20
|
generator: function (nb) { return (0, getDistinctQuestions_1.getDistinctQuestions)(getFirstIdentityQuestion, nb); }
|
|
21
21
|
};
|
|
22
22
|
function getFirstIdentityQuestion() {
|
|
@@ -16,7 +16,7 @@ exports.secondIdentity = {
|
|
|
16
16
|
label: "Identité remarquable $(a-b)^2$",
|
|
17
17
|
levels: ["3", "2"],
|
|
18
18
|
isSingleStep: false,
|
|
19
|
-
section: "Calcul
|
|
19
|
+
section: "Calcul littéral",
|
|
20
20
|
generator: function (nb) { return (0, getDistinctQuestions_1.getDistinctQuestions)(getSecondIdentityQuestion, nb); }
|
|
21
21
|
};
|
|
22
22
|
function getSecondIdentityQuestion() {
|
|
@@ -16,7 +16,7 @@ exports.simpleDistributivity = {
|
|
|
16
16
|
label: "Distributivité simple",
|
|
17
17
|
levels: ["3", "2"],
|
|
18
18
|
isSingleStep: false,
|
|
19
|
-
section: "Calcul
|
|
19
|
+
section: "Calcul littéral",
|
|
20
20
|
generator: function (nb) { return (0, getDistinctQuestions_1.getDistinctQuestions)(getSimpleDistributivityQuestion, nb); }
|
|
21
21
|
};
|
|
22
22
|
function getSimpleDistributivityQuestion() {
|
|
@@ -15,7 +15,7 @@ exports.thirdIdentity = {
|
|
|
15
15
|
label: "Identité remarquable $(a+b)(a-b)$",
|
|
16
16
|
levels: ["3", "2"],
|
|
17
17
|
isSingleStep: false,
|
|
18
|
-
section: "Calcul
|
|
18
|
+
section: "Calcul littéral",
|
|
19
19
|
generator: function (nb) { return (0, getDistinctQuestions_1.getDistinctQuestions)(getThirdIdentityQuestion, nb); }
|
|
20
20
|
};
|
|
21
21
|
function getThirdIdentityQuestion() {
|
|
@@ -19,7 +19,7 @@ exports.factoType1Exercise = {
|
|
|
19
19
|
isSingleStep: false,
|
|
20
20
|
label: "Factorisation du type $(ax+b)(cx+d) \\pm (ax+b)(ex+f)$",
|
|
21
21
|
levels: ["3", "2"],
|
|
22
|
-
section: "Calcul
|
|
22
|
+
section: "Calcul littéral",
|
|
23
23
|
generator: function (nb) { return (0, getDistinctQuestions_1.getDistinctQuestions)(getFactoType1Question, nb); }
|
|
24
24
|
};
|
|
25
25
|
function getFactoType1Question() {
|
|
@@ -15,7 +15,7 @@ exports.powersDivision = {
|
|
|
15
15
|
id: "powersDivision",
|
|
16
16
|
connector: "=",
|
|
17
17
|
instruction: "Calculer :",
|
|
18
|
-
label: "
|
|
18
|
+
label: "Division de puissances",
|
|
19
19
|
levels: ["4", "3", "2", "1"],
|
|
20
20
|
section: "Puissances",
|
|
21
21
|
isSingleStep: true,
|
|
@@ -25,7 +25,7 @@ exports.powersOfTenDivision = {
|
|
|
25
25
|
id: "powersOfTenDivision",
|
|
26
26
|
connector: "=",
|
|
27
27
|
instruction: "Calculer :",
|
|
28
|
-
label: "
|
|
28
|
+
label: "Division de puissances de 10",
|
|
29
29
|
levels: ["4", "3", "2", "1"],
|
|
30
30
|
section: "Puissances",
|
|
31
31
|
isSingleStep: true,
|
|
@@ -14,7 +14,7 @@ exports.powersOfTenPower = {
|
|
|
14
14
|
id: "powersOfTenPower",
|
|
15
15
|
connector: "=",
|
|
16
16
|
instruction: "Calculer :",
|
|
17
|
-
label: "Puissance
|
|
17
|
+
label: "Puissance d'une puissance de 10 ",
|
|
18
18
|
levels: ["4", "3", "2", "1"],
|
|
19
19
|
section: "Puissances",
|
|
20
20
|
isSingleStep: true,
|
|
@@ -17,7 +17,7 @@ exports.powersOfTenProduct = {
|
|
|
17
17
|
instruction: "Calculer :",
|
|
18
18
|
label: "Multiplication de puissances de 10",
|
|
19
19
|
levels: ["4", "3", "2", "1"],
|
|
20
|
-
section: "
|
|
20
|
+
section: "Puissances",
|
|
21
21
|
isSingleStep: true,
|
|
22
22
|
generator: function (nb) { return (0, getDistinctQuestions_1.getDistinctQuestions)(function () { return getPowersProductQuestion(true); }, nb); }
|
|
23
23
|
};
|
|
@@ -16,7 +16,7 @@ exports.scientificToDecimal = {
|
|
|
16
16
|
id: "scientificToDecimal",
|
|
17
17
|
connector: "=",
|
|
18
18
|
instruction: "Donner l'écriture décimale de :",
|
|
19
|
-
label: "Ecriture décimale de $a\\times 10^x",
|
|
19
|
+
label: "Ecriture décimale de $a\\times 10^x$",
|
|
20
20
|
levels: ["5", "4", "3", "2"],
|
|
21
21
|
section: "Puissances",
|
|
22
22
|
isSingleStep: true,
|
package/src/index.js
CHANGED
|
@@ -3,8 +3,3 @@ exports.__esModule = true;
|
|
|
3
3
|
exports.exercises = void 0;
|
|
4
4
|
var exercises_1 = require("./exercises/exercises");
|
|
5
5
|
exports.exercises = exercises_1.exercises;
|
|
6
|
-
var scientificToDecimal_1 = require("./exercises/powers/scientificToDecimal");
|
|
7
|
-
// exercises.forEach((exo) => {
|
|
8
|
-
// console.log(exo.instruction, exo.generator(10));
|
|
9
|
-
// });
|
|
10
|
-
console.log(scientificToDecimal_1.scientificToDecimal);
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { exercises } from "./exercises/exercises";
|
|
2
|
-
import { scientificToDecimal } from "./exercises/powers/scientificToDecimal";
|
|
3
2
|
|
|
4
|
-
console.log(scientificToDecimal.generator(10));
|
|
5
3
|
// exercises.forEach((exo) => {
|
|
6
4
|
// console.log(exo.instruction, exo.generator(10));
|
|
7
5
|
// });
|