math-exercises 3.0.205 → 3.0.207
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":"signTableFromVarTableWithZeroes.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/continuity/signTableFromVarTableWithZeroes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;
|
|
1
|
+
{"version":3,"file":"signTableFromVarTableWithZeroes.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/continuity/signTableFromVarTableWithZeroes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAgKF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,WAAW,CAqBjE,CAAC"}
|
|
@@ -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
|
}
|
|
@@ -102,13 +103,22 @@ const getSignTableFromVarTableWithZeroesQuestion = () => {
|
|
|
102
103
|
for (let i = 0; i < 3; i++) {
|
|
103
104
|
const prevY = yValues[i];
|
|
104
105
|
if (nonZeroInterval === i) {
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
if (i === 0) {
|
|
107
|
+
if (prevY < 0) {
|
|
108
|
+
//on doit descendre car on remontera post 0 après
|
|
109
|
+
yValues.push(randint(-15, prevY));
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
//on doit monter car on descendra post 0 après
|
|
113
|
+
yValues.push(randint(prevY + 1, 15));
|
|
114
|
+
}
|
|
108
115
|
}
|
|
109
116
|
else {
|
|
110
|
-
|
|
111
|
-
|
|
117
|
+
const prevPrevY = yValues[i - 1];
|
|
118
|
+
if (prevY < prevPrevY)
|
|
119
|
+
yValues.push(randint(prevY + 1, 15, [0]));
|
|
120
|
+
else
|
|
121
|
+
yValues.push(randint(-15, prevY, [0]));
|
|
112
122
|
}
|
|
113
123
|
}
|
|
114
124
|
else {
|