math-exercises 2.2.24 → 2.2.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constanteDerivative.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/constanteDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"constanteDerivative.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/constanteDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAIR,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAIJ,MAAM,0BAA0B,CAAC;AAKlC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAQF,eAAO,MAAM,sBAAsB,EAAE,iBAAiB,CAAC,WAAW,CAgBjE,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,YAAY,CAAC,WAAW,CAmBxE,CAAC;AACF,eAAO,MAAM,gCAAgC,EAAE,GAAG,CAAC,WAAW,CAE7D,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,WAAW,CAgBrD,CAAC"}
|
|
@@ -5,6 +5,12 @@ const exercise_1 = require("../../../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const nombre_1 = require("../../../../math/numbers/nombre");
|
|
7
7
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
8
|
+
const getHint = ({ tex }) => {
|
|
9
|
+
return `$f$ est une fonction constante égale à $${tex}$`;
|
|
10
|
+
};
|
|
11
|
+
const getCorrection = ({ tex }) => {
|
|
12
|
+
return `La fonction $f$ est une fonction constante égale à $${tex}$. Or, la fonction dérivée d'une fonction constante est nulle. Ainsi, pour tout $x\\in \\mathbb{R}$, $f'(x) = 0$.`;
|
|
13
|
+
};
|
|
8
14
|
const getConstanteDerivative = () => {
|
|
9
15
|
const c = nombre_1.NombreConstructor.random();
|
|
10
16
|
const tex = c.toTree().toTex();
|
|
@@ -16,6 +22,8 @@ const getConstanteDerivative = () => {
|
|
|
16
22
|
keys: ["x"],
|
|
17
23
|
answerFormat: "tex",
|
|
18
24
|
identifiers: { tex },
|
|
25
|
+
hint: getHint({ tex }),
|
|
26
|
+
correction: getCorrection({ tex }),
|
|
19
27
|
};
|
|
20
28
|
return question;
|
|
21
29
|
};
|
|
@@ -52,4 +60,7 @@ exports.constanteDerivative = {
|
|
|
52
60
|
getPropositions: exports.getConstanteDerivativePropositions,
|
|
53
61
|
isAnswerValid: exports.isConstanteDerivativeAnswerValid,
|
|
54
62
|
subject: "Mathématiques",
|
|
63
|
+
getHint,
|
|
64
|
+
getCorrection,
|
|
65
|
+
hasHintAndCorrection: true,
|
|
55
66
|
};
|