math-exercises 2.2.64 → 2.2.65
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/functions/trinoms/coefficientsIdentification.js +1 -1
- package/lib/exercises/math/geometry/perimeters/circleRadiusFromPerimeter.js +1 -1
- package/lib/exercises/math/probaStat/conditionalProbability.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/conditionalProbability.js +2 -1
- package/package.json +1 -1
|
@@ -117,7 +117,7 @@ const getCoefficientsIdentificationQuestion = () => {
|
|
|
117
117
|
exports.coefficientsIdentification = {
|
|
118
118
|
id: "coefficientsIdentification",
|
|
119
119
|
connector: "=",
|
|
120
|
-
label: "Reconnaître les coefficients d'un trinôme exprimé sous forme développée",
|
|
120
|
+
label: "Reconnaître les coefficients $a$, $b$ et $c$ d'un trinôme exprimé sous forme développée",
|
|
121
121
|
isSingleStep: true,
|
|
122
122
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getCoefficientsIdentificationQuestion, nb),
|
|
123
123
|
qcmTimer: 60,
|
|
@@ -57,7 +57,7 @@ const getCorrection = (identifiers) => {
|
|
|
57
57
|
"=",
|
|
58
58
|
new fractionNode_1.FractionNode(identifiers.perimeter.toTree(), new multiplyNode_1.MultiplyNode((2).toTree(), piNode_1.PiNode)).toTex(),
|
|
59
59
|
],
|
|
60
|
-
["", "\\
|
|
60
|
+
["", "\\approx", getAnswer(identifiers)],
|
|
61
61
|
])}
|
|
62
62
|
`;
|
|
63
63
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conditionalProbability.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/conditionalProbability.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAQT,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"conditionalProbability.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/conditionalProbability.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAQT,MAAM,gBAAgB,CAAC;AAMxB,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAyNF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAexD,CAAC"}
|
|
@@ -7,6 +7,7 @@ const getDistinctQuestions_1 = require("../../utils/getDistinctQuestions");
|
|
|
7
7
|
const round_1 = require("../../../math/utils/round");
|
|
8
8
|
const shuffle_1 = require("../../../utils/alea/shuffle");
|
|
9
9
|
const alignTex_1 = require("../../../utils/latex/alignTex");
|
|
10
|
+
const numberVEA_1 = require("../../../exercises/vea/numberVEA");
|
|
10
11
|
const getConditionalProbability = () => {
|
|
11
12
|
let pA, pB, pAB, pA_B, pB_A;
|
|
12
13
|
let pAStr, pBStr, pABStr, pA_BStr, pB_AStr;
|
|
@@ -199,7 +200,7 @@ const getPropositions = (n, { answer }) => {
|
|
|
199
200
|
return (0, shuffle_1.shuffle)(propositions);
|
|
200
201
|
};
|
|
201
202
|
const isAnswerValid = (ans, { answer }) => {
|
|
202
|
-
return ans
|
|
203
|
+
return (0, numberVEA_1.numberVEA)(ans, answer);
|
|
203
204
|
};
|
|
204
205
|
exports.conditionalProbability = {
|
|
205
206
|
id: "conditionalProbability",
|