math-exercises 3.0.111 → 3.0.113

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.
Files changed (31) hide show
  1. package/lib/exercises/math/calcul/mentalCaluls/mentalPercentage.d.ts.map +1 -1
  2. package/lib/exercises/math/calcul/mentalCaluls/mentalPercentage.js +5 -2
  3. package/lib/exercises/math/dataRepresentations/boxPlotReading.d.ts +9 -0
  4. package/lib/exercises/math/dataRepresentations/boxPlotReading.d.ts.map +1 -0
  5. package/lib/exercises/math/dataRepresentations/boxPlotReading.js +133 -0
  6. package/lib/exercises/math/dataRepresentations/boxPlotReadingPercentages.d.ts +11 -0
  7. package/lib/exercises/math/dataRepresentations/boxPlotReadingPercentages.d.ts.map +1 -0
  8. package/lib/exercises/math/dataRepresentations/boxPlotReadingPercentages.js +198 -0
  9. package/lib/exercises/math/dataRepresentations/index.d.ts +2 -0
  10. package/lib/exercises/math/dataRepresentations/index.d.ts.map +1 -1
  11. package/lib/exercises/math/dataRepresentations/index.js +2 -0
  12. package/lib/exercises/math/derivation/tangent/derivativeNumberReading.js +1 -0
  13. package/lib/exercises/math/functions/affines/drawAffineFrom2Points.d.ts +10 -0
  14. package/lib/exercises/math/functions/affines/drawAffineFrom2Points.d.ts.map +1 -0
  15. package/lib/exercises/math/functions/affines/drawAffineFrom2Points.js +151 -0
  16. package/lib/exercises/math/functions/affines/index.d.ts +1 -0
  17. package/lib/exercises/math/functions/affines/index.d.ts.map +1 -1
  18. package/lib/exercises/math/functions/affines/index.js +1 -0
  19. package/lib/exercises/math/index.d.ts +0 -1
  20. package/lib/exercises/math/index.d.ts.map +1 -1
  21. package/lib/exercises/math/index.js +1 -1
  22. package/lib/exercises/math/sequences/arithmetic/arithmeticFindAntecedent.d.ts.map +1 -1
  23. package/lib/exercises/math/sequences/arithmetic/arithmeticFindAntecedent.js +7 -7
  24. package/lib/index.d.ts +318 -643
  25. package/lib/index.d.ts.map +1 -1
  26. package/lib/math/polynomials/polynomial.d.ts.map +1 -1
  27. package/lib/math/polynomials/polynomial.js +4 -1
  28. package/lib/tree/nodes/equations/equalNode.d.ts +1 -1
  29. package/lib/tree/nodes/equations/equalNode.d.ts.map +1 -1
  30. package/lib/tree/nodes/equations/equalNode.js +5 -5
  31. package/package.json +1 -1
@@ -20,7 +20,7 @@ $$
20
20
 
21
21
  Calculer la valeur de $ ${varName} $ pour laquelle $ u_${varName} = ${uTex} $.`;
22
22
  };
23
- const getPropositions = (nb_prop, { answer, a, b, n }) => {
23
+ const getPropositions = (nb, { answer, a, b, n }) => {
24
24
  const propositions = [];
25
25
  addValidProp(propositions, answer);
26
26
  const affineWithN = new Affine(a, b, varName);
@@ -28,16 +28,16 @@ const getPropositions = (nb_prop, { answer, a, b, n }) => {
28
28
  tryToAddWrongProp(propositions, new Affine(a, b).solve(0).toTex());
29
29
  tryToAddWrongProp(propositions, affineWithN.calculate(u).toTree().toTex());
30
30
  tryToAddWrongProp(propositions, new NumberNode(n + 1).toTex());
31
- if (propositions.length < nb_prop) {
31
+ if (propositions.length < nb) {
32
32
  if (n - 1 >= 0) {
33
33
  tryToAddWrongProp(propositions, new NumberNode(n - 1).toTex());
34
34
  }
35
35
  }
36
- while (propositions.length < nb_prop) {
36
+ while (propositions.length < nb) {
37
37
  const wrongAnswer = NumberNodeConstructor.random(0, 20);
38
38
  tryToAddWrongProp(propositions, wrongAnswer.toTex());
39
39
  }
40
- return shuffleProps(propositions, nb_prop);
40
+ return shuffleProps(propositions, nb);
41
41
  };
42
42
  const getAnswer = (identifiers) => {
43
43
  const { n } = identifiers;
@@ -66,13 +66,13 @@ $$
66
66
  ${equationResolutionTex(a.toTree(), b.toTree(), (0).toTree(), u.toTree(), varName)}
67
67
  $$`;
68
68
  };
69
- const getKeys = (identifiers) => {
69
+ const getKeys = () => {
70
70
  return [];
71
71
  };
72
- const isAnswerValid = (ans, { answer, a, b, n }) => {
72
+ const isAnswerValid = (ans, { answer }) => {
73
73
  return numberVEA(ans, answer);
74
74
  };
75
- const getArithmeticFindAntecedentQuestion = (ops) => {
75
+ const getArithmeticFindAntecedentQuestion = () => {
76
76
  const affine = AffineConstructor.random(undefined, {
77
77
  excludes: [0],
78
78
  });