math-exercises 3.0.41 → 3.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/exercises/math/dataRepresentations/index.d.ts +0 -3
- package/lib/exercises/math/dataRepresentations/index.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/index.js +3 -3
- package/lib/exercises/math/dataRepresentations/testGen.d.ts +1 -0
- package/lib/exercises/math/dataRepresentations/testGen.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/testGen.js +12 -3
- package/lib/exercises/math/dataRepresentations/testGenGGB.d.ts +1 -0
- package/lib/exercises/math/dataRepresentations/testGenGGB.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/testGenGGB.js +12 -3
- package/lib/exercises/math/dataRepresentations/testGenStudentGGB.d.ts +1 -0
- package/lib/exercises/math/dataRepresentations/testGenStudentGGB.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/testGenStudentGGB.js +12 -3
- package/lib/index.d.ts +0 -9
- package/lib/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/dataRepresentations/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAElC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/dataRepresentations/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAElC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC"}
|
|
@@ -2,6 +2,6 @@ export * from "./tableReading.js";
|
|
|
2
2
|
// export * from "./barChartReading.js";
|
|
3
3
|
export * from "./functionGraphReading.js";
|
|
4
4
|
export * from "./pieChartReading.js";
|
|
5
|
-
export * from "./testGen.js";
|
|
6
|
-
export * from "./testGenGGB.js";
|
|
7
|
-
export * from "./testGenStudentGGB.js";
|
|
5
|
+
// export * from "./testGen.js";
|
|
6
|
+
// export * from "./testGenGGB.js";
|
|
7
|
+
// export * from "./testGenStudentGGB.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testGen.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/dataRepresentations/testGen.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"testGen.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/dataRepresentations/testGen.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AA8FF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,WAAW,CAgBzC,CAAC"}
|
|
@@ -34,7 +34,8 @@ const getHint = (identifiers) => {
|
|
|
34
34
|
return "voici l'indice";
|
|
35
35
|
};
|
|
36
36
|
const getCorrection = (identifiers) => {
|
|
37
|
-
|
|
37
|
+
const { hasGgbCorr } = identifiers;
|
|
38
|
+
if (hasGgbCorr)
|
|
38
39
|
return `voici la correction et voici des maths
|
|
39
40
|
|
|
40
41
|
$$
|
|
@@ -50,7 +51,11 @@ et du texte après l'image
|
|
|
50
51
|
avec des maths aussi $e^{\\pi i} = -1$
|
|
51
52
|
`;
|
|
52
53
|
else
|
|
53
|
-
return `Voici la correction avec du geogebra
|
|
54
|
+
return `Voici la correction avec du geogebra. Il peut y avoir un peu des maths aussi :
|
|
55
|
+
|
|
56
|
+
$$
|
|
57
|
+
4x^2 +\\frac{2}{3}
|
|
58
|
+
$$`;
|
|
54
59
|
};
|
|
55
60
|
const getCorrectionGGBOptions = (identifiers) => {
|
|
56
61
|
const ggb = new GeogebraConstructor({
|
|
@@ -61,9 +66,11 @@ const getCorrectionGGBOptions = (identifiers) => {
|
|
|
61
66
|
});
|
|
62
67
|
};
|
|
63
68
|
const getTestGenQuestion = (ops) => {
|
|
69
|
+
const hasGgbCorr = coinFlip();
|
|
64
70
|
const identifiers = {
|
|
65
71
|
rand: Math.random(),
|
|
66
72
|
hasTwoAnswers: coinFlip(),
|
|
73
|
+
hasGgbCorr,
|
|
67
74
|
};
|
|
68
75
|
const question = {
|
|
69
76
|
answer: getAnswer(identifiers),
|
|
@@ -72,7 +79,9 @@ const getTestGenQuestion = (ops) => {
|
|
|
72
79
|
answerFormat: "tex",
|
|
73
80
|
hint: getHint(identifiers),
|
|
74
81
|
correction: getCorrection(identifiers),
|
|
75
|
-
correctionGgbOptions:
|
|
82
|
+
correctionGgbOptions: hasGgbCorr
|
|
83
|
+
? getCorrectionGGBOptions(identifiers)
|
|
84
|
+
: undefined,
|
|
76
85
|
identifiers,
|
|
77
86
|
};
|
|
78
87
|
return question;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testGenGGB.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/dataRepresentations/testGenGGB.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"testGenGGB.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/dataRepresentations/testGenGGB.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAwGF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,WAAW,CAiB5C,CAAC"}
|
|
@@ -34,7 +34,8 @@ const getHint = (identifiers) => {
|
|
|
34
34
|
return "voici l'indice";
|
|
35
35
|
};
|
|
36
36
|
const getCorrection = (identifiers) => {
|
|
37
|
-
|
|
37
|
+
const { hasGgbCorr } = identifiers;
|
|
38
|
+
if (hasGgbCorr)
|
|
38
39
|
return `voici la correction et voici des maths
|
|
39
40
|
|
|
40
41
|
$$
|
|
@@ -50,7 +51,11 @@ et du texte après l'image
|
|
|
50
51
|
avec des maths aussi $e^{\\pi i} = -1$
|
|
51
52
|
`;
|
|
52
53
|
else
|
|
53
|
-
return `Voici la correction avec du geogebra
|
|
54
|
+
return `Voici la correction avec du geogebra. Il peut y avoir un peu des maths aussi :
|
|
55
|
+
|
|
56
|
+
$$
|
|
57
|
+
4x^2 +\\frac{2}{3}
|
|
58
|
+
$$`;
|
|
54
59
|
};
|
|
55
60
|
const getGGBOptions = (identifiers) => {
|
|
56
61
|
const ggb = new GeogebraConstructor({
|
|
@@ -69,9 +74,11 @@ const getCorrectionGGBOptions = (identifiers) => {
|
|
|
69
74
|
});
|
|
70
75
|
};
|
|
71
76
|
const getTestGenQuestion = (ops) => {
|
|
77
|
+
const hasGgbCorr = coinFlip();
|
|
72
78
|
const identifiers = {
|
|
73
79
|
rand: Math.random(),
|
|
74
80
|
hasTwoAnswers: coinFlip(),
|
|
81
|
+
hasGgbCorr,
|
|
75
82
|
};
|
|
76
83
|
const question = {
|
|
77
84
|
answer: getAnswer(identifiers),
|
|
@@ -81,7 +88,9 @@ const getTestGenQuestion = (ops) => {
|
|
|
81
88
|
hint: getHint(identifiers),
|
|
82
89
|
ggbOptions: getGGBOptions(identifiers),
|
|
83
90
|
correction: getCorrection(identifiers),
|
|
84
|
-
correctionGgbOptions:
|
|
91
|
+
correctionGgbOptions: hasGgbCorr
|
|
92
|
+
? getCorrectionGGBOptions(identifiers)
|
|
93
|
+
: undefined,
|
|
85
94
|
identifiers,
|
|
86
95
|
};
|
|
87
96
|
return question;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testGenStudentGGB.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/dataRepresentations/testGenStudentGGB.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"testGenStudentGGB.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/dataRepresentations/testGenStudentGGB.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AA6GF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAkBnD,CAAC"}
|
|
@@ -34,7 +34,8 @@ const getHint = (identifiers) => {
|
|
|
34
34
|
return "voici l'indice";
|
|
35
35
|
};
|
|
36
36
|
const getCorrection = (identifiers) => {
|
|
37
|
-
|
|
37
|
+
const { hasGgbCorr } = identifiers;
|
|
38
|
+
if (hasGgbCorr)
|
|
38
39
|
return `voici la correction et voici des maths
|
|
39
40
|
|
|
40
41
|
$$
|
|
@@ -50,7 +51,11 @@ et du texte après l'image
|
|
|
50
51
|
avec des maths aussi $e^{\\pi i} = -1$
|
|
51
52
|
`;
|
|
52
53
|
else
|
|
53
|
-
return `Voici la correction avec du geogebra
|
|
54
|
+
return `Voici la correction avec du geogebra. Il peut y avoir un peu des maths aussi :
|
|
55
|
+
|
|
56
|
+
$$
|
|
57
|
+
4x^2 +\\frac{2}{3}
|
|
58
|
+
$$`;
|
|
54
59
|
};
|
|
55
60
|
const getGGBOptions = (identifiers) => {
|
|
56
61
|
const ggb = new GeogebraConstructor({
|
|
@@ -69,9 +74,11 @@ const getCorrectionGGBOptions = (identifiers) => {
|
|
|
69
74
|
});
|
|
70
75
|
};
|
|
71
76
|
const getTestGenQuestion = (ops) => {
|
|
77
|
+
const hasGgbCorr = coinFlip();
|
|
72
78
|
const identifiers = {
|
|
73
79
|
rand: Math.random(),
|
|
74
80
|
hasTwoAnswers: coinFlip(),
|
|
81
|
+
hasGgbCorr,
|
|
75
82
|
};
|
|
76
83
|
const question = {
|
|
77
84
|
answer: getAnswer(identifiers),
|
|
@@ -81,7 +88,9 @@ const getTestGenQuestion = (ops) => {
|
|
|
81
88
|
hint: getHint(identifiers),
|
|
82
89
|
studentGgbOptions: getGGBOptions(identifiers),
|
|
83
90
|
correction: getCorrection(identifiers),
|
|
84
|
-
correctionGgbOptions:
|
|
91
|
+
correctionGgbOptions: hasGgbCorr
|
|
92
|
+
? getCorrectionGGBOptions(identifiers)
|
|
93
|
+
: undefined,
|
|
85
94
|
identifiers,
|
|
86
95
|
ggbAnswer: ["A(1,2)"],
|
|
87
96
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -1923,15 +1923,6 @@ declare const mathExercises: (Exercise<{
|
|
|
1923
1923
|
}, {}> | Exercise<{
|
|
1924
1924
|
points: number[][];
|
|
1925
1925
|
labels: string[];
|
|
1926
|
-
}, {}> | Exercise<{
|
|
1927
|
-
rand: number;
|
|
1928
|
-
hasTwoAnswers: boolean;
|
|
1929
|
-
}, {}> | Exercise<{
|
|
1930
|
-
rand: number;
|
|
1931
|
-
hasTwoAnswers: boolean;
|
|
1932
|
-
}, {}> | Exercise<{
|
|
1933
|
-
rand: number;
|
|
1934
|
-
hasTwoAnswers: boolean;
|
|
1935
1926
|
}, {}>)[];
|
|
1936
1927
|
declare const pcExercises: (Exercise<{
|
|
1937
1928
|
numbers: number[];
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|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