math-exercises 3.0.204 → 3.0.206
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/continuity/signTableFromVarTableWithZeroes.js +2 -1
- package/lib/exercises/math/functions/continuity/thirdDegreeZeroesFramingWithCalculator.d.ts.map +1 -1
- package/lib/exercises/math/functions/continuity/thirdDegreeZeroesFramingWithCalculator.js +11 -6
- package/package.json +1 -1
|
@@ -29,7 +29,8 @@ const getTable = (identifiers) => {
|
|
|
29
29
|
for (let i = 0; i < xValues.length; i++) {
|
|
30
30
|
xs.push(xValues[i].frenchify());
|
|
31
31
|
const x = xZeroes.find((e) => e > xValues[i] && e < xValues[i + 1]);
|
|
32
|
-
|
|
32
|
+
if (i < xValues.length - 1)
|
|
33
|
+
xs.push(x !== undefined ? x.frenchify() : "\\ ");
|
|
33
34
|
if (x !== undefined)
|
|
34
35
|
arrows[i] = "0" + arrows[i];
|
|
35
36
|
}
|
package/lib/exercises/math/functions/continuity/thirdDegreeZeroesFramingWithCalculator.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thirdDegreeZeroesFramingWithCalculator.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/continuity/thirdDegreeZeroesFramingWithCalculator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;
|
|
1
|
+
{"version":3,"file":"thirdDegreeZeroesFramingWithCalculator.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/continuity/thirdDegreeZeroesFramingWithCalculator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAkMF,eAAO,MAAM,sCAAsC,EAAE,QAAQ,CAAC,WAAW,CAsBxE,CAAC"}
|
|
@@ -15,7 +15,7 @@ const getPropositions = (n, { answer, xValues }) => {
|
|
|
15
15
|
});
|
|
16
16
|
return shuffleProps(propositions, n);
|
|
17
17
|
};
|
|
18
|
-
const
|
|
18
|
+
const _getTable = (identifiers) => {
|
|
19
19
|
const { xValues, coeffs } = identifiers;
|
|
20
20
|
const poly = new Polynomial(coeffs).toTree();
|
|
21
21
|
const [fa, fb] = xValues.map((x) => poly.evaluate({ x }));
|
|
@@ -100,7 +100,7 @@ const getAnswer = (identifiers) => {
|
|
|
100
100
|
return round((xStart + xEnd) / 2, 2).frenchify();
|
|
101
101
|
};
|
|
102
102
|
const getInstruction = (identifiers) => {
|
|
103
|
-
const { coeffs } = identifiers;
|
|
103
|
+
const { coeffs, xValues } = identifiers;
|
|
104
104
|
const poly = new Polynomial(coeffs);
|
|
105
105
|
return `Soit $f$ la fonction définie par :
|
|
106
106
|
|
|
@@ -108,18 +108,23 @@ $$
|
|
|
108
108
|
f(x) = ${poly.toTree().toTex()}
|
|
109
109
|
$$
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
<svg id="varTable">${JSON.stringify(getTable(identifiers))}</svg>
|
|
111
|
+
On admet qu'il existe un nombre réel $\\alpha \\in [${xValues[0].frenchify()}, ${xValues[1].frenchify()}]$ tel que $f(\\alpha) = 0$.
|
|
114
112
|
|
|
115
113
|
Donner une valeur approchée au centième de $\\alpha$.`;
|
|
114
|
+
// return `Soit $f$ la fonction définie par :
|
|
115
|
+
// $$
|
|
116
|
+
// f(x) = ${poly.toTree().toTex()}
|
|
117
|
+
// $$
|
|
118
|
+
// Le tableau de variations de $f$ est le suivant :
|
|
119
|
+
// <svg id="varTable">${JSON.stringify(getTable(identifiers))}</svg>
|
|
120
|
+
// Donner une valeur approchée au centième de $\\alpha$.`;
|
|
116
121
|
};
|
|
117
122
|
const getHint = () => {
|
|
118
123
|
return `Utilise le menu TABLE de la calculatrice. En réduisant peu à peu le pas, tu peux obtenir une valeur approchée au centième de $\\alpha$.`;
|
|
119
124
|
};
|
|
120
125
|
const getCorrection = (identifiers) => {
|
|
121
126
|
const { xValues } = identifiers;
|
|
122
|
-
return `
|
|
127
|
+
return `On sait que $\\alpha$ est compris entre $${xValues[0].frenchify()}$ et $${xValues[1].frenchify()}$.
|
|
123
128
|
|
|
124
129
|
On utilise alors la calculatrice et le menu TABLE. On entre l'expression de la fonction, puis on entre un pas de $0,1$ allant de $${xValues[0].frenchify()}$ à $${xValues[1].frenchify()}$.
|
|
125
130
|
|