math-exercises 2.0.43 → 2.0.44

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.
@@ -49,7 +49,7 @@ const isAnswerValid = (ans, { answer, power, affineA, affineB }) => {
49
49
  exports.powerCompositionDerivation = {
50
50
  id: "powerCompositionDerivation",
51
51
  connector: "=",
52
- label: "Dérivée de $\\left(ax+b\\right)^n",
52
+ label: "Dérivée de $\\left(ax+b\\right)^n$",
53
53
  levels: ["1reSpé"],
54
54
  isSingleStep: true,
55
55
  sections: ["Dérivation"],
@@ -1 +1 @@
1
- {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../src/math/systems/system.ts"],"names":[],"mappings":"AASA,8BAAsB,iBAAiB;IACrC,MAAM,CAAC,MAAM;IAeb,MAAM,CAAC,UAAU;CAiBlB;AACD,qBAAa,MAAM;IACjB,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;gBAEP,MAAM,EAAE,MAAM,EAAE,EAAE;IAG9B,KAAK;;;;IAwCL,KAAK;CAcN"}
1
+ {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../src/math/systems/system.ts"],"names":[],"mappings":"AASA,8BAAsB,iBAAiB;IACrC,MAAM,CAAC,MAAM;IAeb,MAAM,CAAC,UAAU;CAiBlB;AACD,qBAAa,MAAM;IACjB,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;gBAEP,MAAM,EAAE,MAAM,EAAE,EAAE;IAG9B,KAAK;;;;IAuCL,KAAK;CAcN"}
@@ -52,7 +52,6 @@ class System {
52
52
  throw Error("No solution");
53
53
  const x = new fractionNode_1.FractionNode(new substractNode_1.SubstractNode(this.coeffs[1][2].toTree(), new fractionNode_1.FractionNode((this.coeffs[1][1] * this.coeffs[0][2]).toTree(), this.coeffs[0][1].toTree())), new substractNode_1.SubstractNode(this.coeffs[1][0].toTree(), new fractionNode_1.FractionNode((this.coeffs[1][1] * this.coeffs[0][0]).toTree(), this.coeffs[0][1].toTree()))).simplify();
54
54
  //y = c-ax/b
55
- console.log("x", x.toTex());
56
55
  const y = new fractionNode_1.FractionNode(new substractNode_1.SubstractNode(this.coeffs[0][2].toTree(), new multiplyNode_1.MultiplyNode(this.coeffs[0][0].toTree(), x)), this.coeffs[0][1].toTree()).simplify();
57
56
  return {
58
57
  x,
@@ -63,8 +62,8 @@ class System {
63
62
  const x = new variableNode_1.VariableNode("x");
64
63
  const y = new variableNode_1.VariableNode("y");
65
64
  return `\\left\\{\\begin{matrix}
66
- ${new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(this.coeffs[0][0].toTree(), x), new multiplyNode_1.MultiplyNode(this.coeffs[0][1].toTree(), y)).toTex()}&=&${this.coeffs[0][2]} \\\\
67
- ${new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(this.coeffs[1][0].toTree(), x), new multiplyNode_1.MultiplyNode(this.coeffs[1][1].toTree(), y)).toTex()}&=&${this.coeffs[1][2]}
65
+ ${new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(this.coeffs[0][0].toTree(), x), new multiplyNode_1.MultiplyNode(this.coeffs[0][1].toTree(), y)).toTex()}=${this.coeffs[0][2]} \\\\
66
+ ${new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(this.coeffs[1][0].toTree(), x), new multiplyNode_1.MultiplyNode(this.coeffs[1][1].toTree(), y)).toTex()}=${this.coeffs[1][2]}
68
67
  \\end{matrix}\\right.`;
69
68
  }
70
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-exercises",
3
- "version": "2.0.43",
3
+ "version": "2.0.44",
4
4
  "description": "Math exercises generator for middle school and high school",
5
5
  "main": "lib/index.js",
6
6
  "files": [