math-exercises 3.0.90 → 3.0.91

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.
@@ -100,7 +100,7 @@ ${alignTex([
100
100
  return explanation;
101
101
  };
102
102
  const getKeys = (identifiers) => {
103
- return [];
103
+ return ["x"];
104
104
  };
105
105
  const isAnswerValid = (ans, { answer }) => {
106
106
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"affineSignTable.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/sign/affineSignTable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,EAAE,MAAM,EAAE,EAAE,CAAC;CACvB,CAAC;AAwGF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAkBjD,CAAC"}
1
+ {"version":3,"file":"affineSignTable.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/sign/affineSignTable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,EAAE,MAAM,EAAE,EAAE,CAAC;CACvB,CAAC;AAoGF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAkBjD,CAAC"}
@@ -24,15 +24,11 @@ const getAnswerTable = (identifiers) => {
24
24
  };
25
25
  const getInstruction = (identifiers) => {
26
26
  const affine = AffineConstructor.fromCoeffs(identifiers.affineCoeffs);
27
- const arr = [["a", "b", "c"], "d", "ef", "f"];
28
27
  return `Dresser le tableau de signes de la fonction $f$ définie sur $\\mathbb{R}$ par :
29
28
 
30
29
  $$
31
30
  f(x) = ${affine.toTree().toTex()}
32
- $$
33
-
34
-
35
- <svg id="signTable">${JSON.stringify(arr)}</svg>`;
31
+ $$`;
36
32
  };
37
33
  const getHint = (identifiers) => {
38
34
  return `Résout l'inéquation $f(x)>0$.`;
@@ -27,7 +27,7 @@ const getInstruction = (identifiers) => {
27
27
  const table = [
28
28
  ["x", "-\\infty", "\\ ", xs[0], "\\ ", xs[1], "\\ ", "+\\infty"],
29
29
  [
30
- "",
30
+ " ",
31
31
  "\\ ",
32
32
  "\\ ",
33
33
  firstIncr ? ys[0] : "\\ ",
@@ -38,7 +38,7 @@ const getInstruction = (identifiers) => {
38
38
  ],
39
39
  ["f(x)", "\\ ", vars[0], "\\ ", vars[1], "\\ ", vars[2], "\\ "],
40
40
  [
41
- "",
41
+ " ",
42
42
  "\\ ",
43
43
  "\\ ",
44
44
  firstIncr ? "\\ " : ys[0],
@@ -1,2 +1,2 @@
1
- export * from "./testVarTable.js";
1
+ export {};
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/tests/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/tests/index.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- export * from "./testVarTable.js";
1
+ export {};
package/lib/index.d.ts CHANGED
@@ -2413,12 +2413,6 @@ declare const mathExercises: (Exercise<{
2413
2413
  }, {}> | Exercise<{
2414
2414
  points: number[][];
2415
2415
  labels: string[];
2416
- }, {}> | Exercise<{
2417
- k: number;
2418
- x1: number;
2419
- x2: number;
2420
- C: number;
2421
- initTable: string[][];
2422
2416
  }, {}>)[];
2423
2417
  declare const pcExercises: (Exercise<{
2424
2418
  atomicMass: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAA6B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "math-exercises",
3
3
  "type": "module",
4
- "version": "3.0.90",
4
+ "version": "3.0.91",
5
5
  "description": "Math exercises generator for middle school and high school",
6
6
  "main": "lib/index.js",
7
7
  "files": [