math-exercises 2.1.17 → 2.1.18

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.
@@ -44,8 +44,8 @@ const getHint = (nb) => {
44
44
  const getCorrection = (tenthPower, nb) => {
45
45
  const powerTen = new powerNode_1.PowerNode((10).toTree(), tenthPower.toTree());
46
46
  return `1 . Exprimez $${nb.toTex()}$ en puissance de $10$ : $${powerTen.toTex()}$ \n
47
- 2 . Utilisez la propriété des logarithmes qui stipule que $log(a^{b}) = b*log(a) \\Leftrightarrow \\log(${powerTen.toTex()}) = ${tenthPower}*log(10)
48
- \\Leftrightarrow log(${nb.toTex()}) = ${tenthPower}$.
47
+ 2 . Utilisez la propriété des logarithmes qui stipule que $\\log(a^{b}) = b\\times \\log(a) \\Leftrightarrow \\log(${powerTen.toTex()}) = ${tenthPower}\\times \\log(10)
48
+ \\Leftrightarrow \\log(${nb.toTex()}) = ${tenthPower}$.
49
49
  `;
50
50
  };
51
51
  const isAnswerValid = (ans, { answer, tenthPower }) => {
@@ -78,7 +78,7 @@ const getHint = (sides, angle) => {
78
78
  const adjacent = sides.filter((value) => value !== hypothenus &&
79
79
  [value.charAt(0), value.charAt(1)].includes(angle))[0];
80
80
  const opposite = sides.filter((value) => value !== hypothenus && value !== adjacent[0])[0];
81
- return `Identifier le côté opposé, le côté adjacent et l'hypoténuse, puis utiliesr la bonne formule de trigonométrie.`;
81
+ return `Identifier le côté opposé, le côté adjacent et l'hypoténuse, puis utiliser la bonne formule de trigonométrie.`;
82
82
  };
83
83
  const getCorrection = (sides, sideLengths, randSideQuestion, randSide, angle, angleValue, answer) => {
84
84
  const hypothenus = { name: sides[2], length: sideLengths[2] };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-exercises",
3
- "version": "2.1.17",
3
+ "version": "2.1.18",
4
4
  "description": "Math exercises generator for middle school and high school",
5
5
  "main": "lib/index.js",
6
6
  "files": [